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

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

public class CLCurationWrapper
extends Object


Constructor Summary
CLCurationWrapper(String owner, String codelistId, org.gcube.common.core.scope.GCUBEScope scope)
           
 
Method Summary
 void edit(String fieldId)
           
 void edit(String fieldId, org.gcube.common.dbinterface.types.Type type)
           
static CLCurationWrapper get(String id)
           
static Iterator<CLCurationWrapper> getAll()
           
static Iterator<CLCurationWrapper> getByUser(String user)
           
 org.gcube.contentmanagement.codelistmanager.managers.CodeListCuration getCodelist()
           
 String getCodelistId()
           
 String getCodesAsJson(org.gcube.common.dbinterface.Limit limit, org.gcube.common.dbinterface.Order order)
           
 org.gcube.contentmanagement.codelistmanager.entities.TableField getColumnInEditMode()
           
 String getDataAsJson(org.gcube.common.dbinterface.queries.Select query)
           
 Hashtable<String,org.gcube.contentmanagement.codelistmanager.entities.TableField> getEditModeColumnsDefinition()
           
 org.gcube.contentmanagement.timeseriesservice.stubs.types.Status getEditStatus()
           
 int getErrorCount()
           
 String getOwner()
           
 String getParentId()
           
 org.gcube.common.core.scope.GCUBEScope getScope()
           
 int getSize()
           
 org.gcube.contentmanagement.timeseriesservice.stubs.types.Status getStatus()
           
 boolean isUnderEditing()
           
 boolean remove()
           
 void removeAllErrors()
           
 void removeEdit()
           
 void replaceValue(String fieldId, int row, Object value)
           
 void saveEdit()
           
 void setOwner(String owner)
           
 void setScope(org.gcube.common.core.scope.GCUBEScope scope)
           
 void setStatus(org.gcube.contentmanagement.timeseriesservice.stubs.types.Status status)
           
 boolean store()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CLCurationWrapper

public CLCurationWrapper(String owner,
                         String codelistId,
                         org.gcube.common.core.scope.GCUBEScope scope)
Method Detail

getParentId

public String getParentId()
Returns:
the parentId

getStatus

public org.gcube.contentmanagement.timeseriesservice.stubs.types.Status getStatus()
Returns:
the status

setStatus

public void setStatus(org.gcube.contentmanagement.timeseriesservice.stubs.types.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 org.gcube.contentmanagement.timeseriesservice.stubs.types.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.