org.gcube.contentmanagement.timeseriesservice.impl.codelist.wrappers
Class CLCurationWrapper

java.lang.Object
  extended by org.gcube.contentmanagement.timeseriesservice.impl.codelist.wrappers.CLCurationWrapper


Constructor Summary
CLCurationWrapper(java.lang.String owner, java.lang.String codelistId, GCUBEScope scope)
          
Method Summary
 void edit(java.lang.String fieldId)
          
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CLCurationWrapper

public CLCurationWrapper(java.lang.String owner,
                         java.lang.String codelistId,
                         GCUBEScope scope)
Method Detail

getParentId

public java.lang.String getParentId()
Returns:
the parentId

getStatus

public State getStatus()
Returns:
the status

setStatus

public void setStatus(State status)
Parameters:
status - the status to set

getOwner

public java.lang.String getOwner()
Returns:
the owner

setOwner

public void setOwner(java.lang.String owner)
Parameters:
owner - the owner to set

getCodelistId

public java.lang.String getCodelistId()
Returns:
the codelistId

getScope

public GCUBEScope getScope()
Returns:
the scope

setScope

public void setScope(GCUBEScope scope)
Parameters:
scope - the scope to set

getCodelist

public CodeListCuration getCodelist()
                             throws java.lang.Exception
Returns:
the codelistId
Throws:
java.lang.Exception

edit

public void edit(java.lang.String fieldId)
          throws java.lang.Exception
Throws:
java.lang.Exception

edit

public void edit(java.lang.String fieldId,
                 Type type)
          throws java.lang.Exception
Throws:
java.lang.Exception

getEditStatus

public State getEditStatus()

isUnderEditing

public boolean isUnderEditing()

removeEdit

public void removeEdit()
                throws NotInEditModeException,
                       java.lang.Exception
Throws:
NotInEditModeException
java.lang.Exception

saveEdit

public void saveEdit()
              throws NotInEditModeException,
                     EditNotFinishedException,
                     java.lang.Exception
Throws:
NotInEditModeException
EditNotFinishedException
java.lang.Exception

remove

public boolean remove()

store

public boolean store()

get

public static CLCurationWrapper get(java.lang.String id)
                             throws java.lang.Exception
Throws:
java.lang.Exception

getDataAsJson

public java.lang.String getDataAsJson(Select query)
                               throws java.lang.Exception
Throws:
java.lang.Exception

replaceValue

public void replaceValue(java.lang.String fieldId,
                         int row,
                         java.lang.Object value)
                  throws NotInEditModeException,
                         java.lang.Exception
Throws:
NotInEditModeException
java.lang.Exception

getColumnInEditMode

public TableField getColumnInEditMode()
                               throws NotInEditModeException,
                                      java.lang.Exception
Throws:
NotInEditModeException
java.lang.Exception

getEditModeColumnsDefinition

public java.util.Hashtable<java.lang.String,TableField> getEditModeColumnsDefinition()
                                                                              throws java.lang.Exception
Throws:
java.lang.Exception

getErrorCount

public int getErrorCount()
                  throws NotInEditModeException,
                         java.lang.Exception
Throws:
NotInEditModeException
java.lang.Exception

removeAllErrors

public void removeAllErrors()
                     throws NotInEditModeException,
                            java.lang.Exception
Throws:
NotInEditModeException
java.lang.Exception

getSize

public int getSize()
            throws java.lang.Exception
Throws:
java.lang.Exception

getCodesAsJson

public java.lang.String getCodesAsJson(Limit limit,
                                       Order order)
                                throws java.lang.Exception
Throws:
java.lang.Exception

getByUser

public static java.util.Iterator<CLCurationWrapper> getByUser(java.lang.String user)
                                                       throws java.lang.Exception
Throws:
java.lang.Exception

getAll

public static java.util.Iterator<CLCurationWrapper> getAll()
                                                    throws java.lang.Exception
Throws:
java.lang.Exception