org.gcube.contentmanagement.timeseriesservice.impl.codelist.wrappers
Class CLCurationWrapper
java.lang.Object
org.gcube.contentmanagement.timeseriesservice.impl.codelist.wrappers.CLCurationWrapper
public class CLCurationWrapper
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLCurationWrapper
public CLCurationWrapper(String owner,
String codelistId,
org.gcube.common.core.scope.GCUBEScope scope)
getParentId
public String getParentId()
- Returns:
- the parentId
getStatus
public Status getStatus()
- Returns:
- the status
setStatus
public void setStatus(Status status)
- Parameters:
status - the status to set
getOwner
public String getOwner()
- Returns:
- the owner
setOwner
public void setOwner(String owner)
- Parameters:
owner - the owner to set
getCodelistId
public String getCodelistId()
- Returns:
- the codelistId
getScope
public org.gcube.common.core.scope.GCUBEScope getScope()
- Returns:
- the scope
setScope
public void setScope(org.gcube.common.core.scope.GCUBEScope scope)
- Parameters:
scope - the scope to set
getCodelist
public org.gcube.contentmanagement.codelistmanager.managers.CodeListCuration getCodelist()
throws Exception
- Returns:
- the codelistId
- Throws:
Exception
edit
public void edit(String fieldId)
throws Exception
- Throws:
Exception
edit
public void edit(String fieldId,
org.gcube.common.dbinterface.types.Type type)
throws Exception
- Throws:
Exception
getEditStatus
public Status getEditStatus()
isUnderEditing
public boolean isUnderEditing()
removeEdit
public void removeEdit()
throws NotInEditModeException,
Exception
- Throws:
NotInEditModeException
Exception
saveEdit
public void saveEdit()
throws NotInEditModeException,
EditNotFinishedException,
Exception
- Throws:
NotInEditModeException
EditNotFinishedException
Exception
remove
public boolean remove()
store
public boolean store()
get
public static CLCurationWrapper get(String id)
throws Exception
- Throws:
Exception
getDataAsJson
public String getDataAsJson(org.gcube.common.dbinterface.queries.Select query)
throws Exception
- Throws:
Exception
replaceValue
public void replaceValue(String fieldId,
int row,
Object value)
throws NotInEditModeException,
Exception
- Throws:
NotInEditModeException
Exception
getColumnInEditMode
public org.gcube.contentmanagement.codelistmanager.entities.TableField getColumnInEditMode()
throws NotInEditModeException,
Exception
- Throws:
NotInEditModeException
Exception
getEditModeColumnsDefinition
public Hashtable<String,org.gcube.contentmanagement.codelistmanager.entities.TableField> getEditModeColumnsDefinition()
throws Exception
- Throws:
Exception
getErrorCount
public int getErrorCount()
throws NotInEditModeException,
Exception
- Throws:
NotInEditModeException
Exception
removeAllErrors
public void removeAllErrors()
throws NotInEditModeException,
Exception
- Throws:
NotInEditModeException
Exception
getSize
public int getSize()
throws Exception
- Throws:
Exception
getCodesAsJson
public String getCodesAsJson(org.gcube.common.dbinterface.Limit limit,
org.gcube.common.dbinterface.Order order)
throws Exception
- Throws:
Exception
getByUser
public static Iterator<CLCurationWrapper> getByUser(String user)
throws Exception
- Throws:
Exception
getAll
public static Iterator<CLCurationWrapper> getAll()
throws Exception
- Throws:
Exception
Copyright © 2012. All Rights Reserved.