|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.common.core.utils.handlers.GCUBEServiceClientImpl
org.gcube.common.core.state.GCUBEStatefulResource<org.gcube.common.core.state.GCUBEWSResourceKey>
org.gcube.common.core.state.GCUBEWSResource
org.gcube.contentmanagement.timeseriesservice.impl.curation.state.CurationResource
public class CurationResource
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.gcube.common.core.state.GCUBEStatefulResource |
|---|
org.gcube.common.core.state.GCUBEStatefulResource.LOCK, org.gcube.common.core.state.GCUBEStatefulResource.TaskContext |
| Field Summary | |
|---|---|
static String |
ID_COLUMN_SUFFIX
|
protected static String |
RP_ID
|
protected static String |
RP_SOURCEID
|
protected static String |
RP_SOURCENAME
|
protected static String |
RP_TITLE
|
protected static String[] |
RPNames
|
| Fields inherited from class org.gcube.common.core.state.GCUBEStatefulResource |
|---|
logger, uuidGen |
| Constructor Summary | |
|---|---|
CurationResource()
|
|
| Method Summary | |
|---|---|
Iterator<Rule> |
applyableRules(String fieldId)
|
Iterator<Rule> |
applyedRules(String fieldID)
|
void |
applyRules(org.gcube.contentmanagement.timeseriesservice.stubs.types.RuleItem[] rules,
String fieldId)
|
long |
checkDimension(String dimensionId,
String fieldId,
String keyId)
checks how many errors there will be in edit mode for a specific dimension setting |
long |
checkRules(String fieldId,
org.gcube.contentmanagement.timeseriesservice.stubs.types.FilterCondition[] filters)
checks how many errors there will be in edit mode for applying a specific rule |
long |
checkTypeChange(String fieldId,
org.gcube.common.dbinterface.types.Type newType)
checks how many errors there will be in edit mode for applying a specific rule |
void |
closeEditing()
allows user to exit from edit mode |
org.gcube.contentmanagement.timeseriesservice.stubs.types.ColumnDefinition |
columnInEditMode()
returns which column is actually in edit mode |
void |
editColumn(String fieldId,
org.gcube.common.dbinterface.types.Type type)
allows user to enter in edit mode for type checking |
void |
editDimension(String fieldId,
String codelistId,
String keyId)
allows user to enter in edit mode form dimension checking |
void |
editRules(String fieldId)
allows user to enter in edit mode for rules checking |
org.gcube.contentmanagement.timeseriesservice.stubs.types.ColumnDefinition[] |
getColumnDefinition()
|
long |
getCount(boolean onlyErrors)
returns the count entries for this resource |
String |
getDataAsJson(org.gcube.common.dbinterface.queries.Select query,
boolean onlyErrors)
returns the entries of the resource as JSon |
Edit |
getFieldEditor()
|
Map<String,int[]> |
getFieldLenght()
|
CurationHistory |
getHistory()
|
String |
getId()
Returns the id. |
ImportResource |
getImportResource()
retrieves the import resource |
org.gcube.contentmanagement.timeseriesservice.stubs.types.Status |
getInitializeEditingState()
|
String |
getPossibleValues(String word)
|
String[] |
getPropertyNames()
|
String |
getSourceId()
|
String |
getSourceName()
|
org.gcube.common.dbinterface.tables.SimpleTable |
getTable()
|
String |
getTitle()
|
long |
getTotalLine()
|
org.gcube.contentmanagement.timeseriesservice.stubs.types.Status |
getUnderCreationState()
|
org.gcube.contentmanagement.timeseriesservice.stubs.types.GuessDimensionArray |
guess(String fieldId)
perform the guessing for a selected field id |
protected void |
initialise(Object... initParameters)
|
boolean |
isUnderEdit()
|
void |
modifyEntryId(String fieldId,
String newId,
long rowId)
|
void |
modifyEntryValue(String fieldId,
String newValue,
long rowId)
|
protected void |
onRemove()
|
void |
remove()
|
void |
removeAllErrors()
remove all the rows with wrong field (only in edit mode) |
void |
removeAllRules(String fieldId)
|
void |
removeColumn(String fieldId)
removes a column |
void |
removeError(long rowId)
remove a row with a wrong field (only in edit mode) |
void |
replaceById(String oldId,
String newId,
String fieldId)
|
void |
replaceByValue(String oldValue,
String newValue,
String fieldId)
|
void |
saveColumnDefinition()
|
void |
setColumn(org.gcube.contentmanagement.timeseriesservice.stubs.types.EntryType columnType,
String fieldId)
|
void |
setColumnDefinition(org.gcube.contentmanagement.timeseriesservice.stubs.types.ColumnDefinition[] columnDefinition)
|
void |
setFieldEditor(Edit fieldEditor)
|
void |
setFieldLenght(Map<String,int[]> fieldLenght)
|
void |
setHistory(CurationHistory history)
|
void |
setId(String id)
|
void |
setLabel(String fieldId,
String label)
|
void |
setProperties(String title,
String description,
String publisher,
String rights)
|
void |
setSourceId(String sourceId)
|
void |
setSourceName(String sourceName)
|
void |
setTable(org.gcube.common.dbinterface.tables.SimpleTable table)
|
void |
setTitle(String title)
|
void |
setTotalLine(int totalLine)
sets the total resource entries number |
void |
setUnderCreationState(org.gcube.contentmanagement.timeseriesservice.stubs.types.Status underCreationState)
|
void |
setUnderCreationState(String underCreationState)
|
| Methods inherited from class org.gcube.common.core.state.GCUBEWSResource |
|---|
getCurrentTime, getEPR, getPorttypeContext, getProperty, getPublisher, getResourcePropertySet, getServiceContext, getTerminationTime, getTopicList, getTopicNames, initialise, initialiseContainers, inScope, load, publish, setPortTypeContext, setTerminationTime, unpublish |
| Methods inherited from class org.gcube.common.core.state.GCUBEStatefulResource |
|---|
getID, getLock, getScheduledTasks, getScope, launchTask, setID, setPersistenceDelegate, stopTask, store |
| Methods inherited from class org.gcube.common.core.utils.handlers.GCUBEServiceClientImpl |
|---|
getPortTypeMap, setPortTypeMap |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.globus.wsrf.PersistenceCallback |
|---|
store |
| Field Detail |
|---|
public static final String ID_COLUMN_SUFFIX
protected static final String RP_ID
protected static final String RP_SOURCEID
protected static final String RP_SOURCENAME
protected static final String RP_TITLE
protected static String[] RPNames
| Constructor Detail |
|---|
public CurationResource()
| Method Detail |
|---|
public String[] getPropertyNames()
getPropertyNames in class org.gcube.common.core.state.GCUBEWSResource
protected void initialise(Object... initParameters)
throws Exception
initialise in class org.gcube.common.core.state.GCUBEWSResourceException
public ImportResource getImportResource()
throws org.globus.wsrf.NoSuchResourceException,
org.globus.wsrf.ResourceException
org.globus.wsrf.NoSuchResourceException - -
org.globus.wsrf.ResourceException - -
public void editDimension(String fieldId,
String codelistId,
String keyId)
throws Exception
fieldId - field iddimensionId - dimension idkeyName - key name
Exception - -
public void editRules(String fieldId)
throws Exception
fieldId - field iddimensionId - dimension idkeyName - key name
Exception - -
public void editColumn(String fieldId,
org.gcube.common.dbinterface.types.Type type)
throws Exception
fieldId - field iddimensionId - dimension idkeyName - key name
Exception - -
public long getCount(boolean onlyErrors)
throws Exception
onlyErrors - if true returns only the wrong entries
Exception - -
public String getDataAsJson(org.gcube.common.dbinterface.queries.Select query,
boolean onlyErrors)
throws Exception
query - the queryonlyErrors - true if the user wants only the wrong entry
Exception - -
public String getId()
throws org.globus.wsrf.ResourceException
org.globus.wsrf.ResourceException
public String getSourceId()
throws org.globus.wsrf.ResourceException
org.globus.wsrf.ResourceException
public String getSourceName()
throws org.globus.wsrf.ResourceException
org.globus.wsrf.ResourceException
public String getTitle()
throws org.globus.wsrf.ResourceException
org.globus.wsrf.ResourceException
public void setTitle(String title)
throws org.globus.wsrf.ResourceException
id -
org.globus.wsrf.ResourceException
public void setId(String id)
throws org.globus.wsrf.ResourceException
id -
org.globus.wsrf.ResourceException
public void setSourceId(String sourceId)
throws org.globus.wsrf.ResourceException
sourceId -
org.globus.wsrf.ResourceException
public void setSourceName(String sourceName)
throws org.globus.wsrf.ResourceException
sourceName -
org.globus.wsrf.ResourceExceptionpublic org.gcube.common.dbinterface.tables.SimpleTable getTable()
public boolean isUnderEdit()
public Edit getFieldEditor()
public void setFieldEditor(Edit fieldEditor)
fieldEditor - public org.gcube.contentmanagement.timeseriesservice.stubs.types.ColumnDefinition[] getColumnDefinition()
public void setColumnDefinition(org.gcube.contentmanagement.timeseriesservice.stubs.types.ColumnDefinition[] columnDefinition)
columnDefinition -
public void saveColumnDefinition()
throws Exception
Exception
public org.gcube.contentmanagement.timeseriesservice.stubs.types.GuessDimensionArray guess(String fieldId)
throws Exception
fieldId - field idlimit - the query limit
Exception - -
public void setLabel(String fieldId,
String label)
throws Exception
fieldId - field idlabel - the labeltype - the type
Exception - -public void remove()
public org.gcube.contentmanagement.timeseriesservice.stubs.types.Status getUnderCreationState()
public void setUnderCreationState(org.gcube.contentmanagement.timeseriesservice.stubs.types.Status underCreationState)
underCreationState - public void setUnderCreationState(String underCreationState)
underCreationState - public Map<String,int[]> getFieldLenght()
public void setFieldLenght(Map<String,int[]> fieldLenght)
fieldLenght -
public org.gcube.contentmanagement.timeseriesservice.stubs.types.Status getInitializeEditingState()
throws Exception
Exception - -
protected void onRemove()
throws org.globus.wsrf.ResourceException
onRemove in class org.gcube.common.core.state.GCUBEStatefulResource<org.gcube.common.core.state.GCUBEWSResourceKey>org.globus.wsrf.ResourceException
public void setColumn(org.gcube.contentmanagement.timeseriesservice.stubs.types.EntryType columnType,
String fieldId)
throws Exception
columnType - column typefieldId - field iddataType - data type
Exception - -
public void replaceById(String oldId,
String newId,
String fieldId)
throws Exception
oldId - old idnewId - new idfieldId - field id
Exception - -
public void replaceByValue(String oldValue,
String newValue,
String fieldId)
throws Exception
oldValue - old valuenewValue - new valuefieldId - field id
Exception - -
public org.gcube.contentmanagement.timeseriesservice.stubs.types.ColumnDefinition columnInEditMode()
throws Exception
Exception - -public long getTotalLine()
public void setTotalLine(int totalLine)
totalLine -
public void removeColumn(String fieldId)
throws Exception
fieldId - the field id
Exception - -
public long checkDimension(String dimensionId,
String fieldId,
String keyId)
throws Exception
dimensionId - dimension idfieldId - field idkeyName - key name
Exception - -
public long checkRules(String fieldId,
org.gcube.contentmanagement.timeseriesservice.stubs.types.FilterCondition[] filters)
throws Exception
fieldId - field idfilters - list of the filter representing the applied rules
Exception - -
public long checkTypeChange(String fieldId,
org.gcube.common.dbinterface.types.Type newType)
throws Exception
fieldId - field idfilters - list of the filter representing the applied rules
Exception - -
public void closeEditing()
throws Exception
Exception - -
public void modifyEntryValue(String fieldId,
String newValue,
long rowId)
throws Exception
fieldId - field idnewValue - new valuerowId - row id
org.gcube.common.core.faults.GCUBEFault - -
Exception
public String getPossibleValues(String word)
throws Exception
Exception
public void modifyEntryId(String fieldId,
String newId,
long rowId)
throws Exception
fieldId - field idnewId - new idrowId - row id
org.gcube.common.core.faults.GCUBEFault - -
Exception
public void removeAllErrors()
throws Exception
Exception - -
public void removeError(long rowId)
throws Exception
rowId - the row id
Exception - -public CurationHistory getHistory()
public void setHistory(CurationHistory history)
public void setTable(org.gcube.common.dbinterface.tables.SimpleTable table)
public void applyRules(org.gcube.contentmanagement.timeseriesservice.stubs.types.RuleItem[] rules,
String fieldId)
throws Exception
Exception
public Iterator<Rule> applyedRules(String fieldID)
throws Exception
Exception
public Iterator<Rule> applyableRules(String fieldId)
throws Exception
Exception
public void removeAllRules(String fieldId)
throws Exception
Exception
public void setProperties(String title,
String description,
String publisher,
String rights)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||