public class CurationResource
extends org.gcube.common.core.state.GCUBEWSResource
| Modifier and Type | Field and Description |
|---|---|
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 |
| Constructor and Description |
|---|
CurationResource() |
| Modifier and Type | Method and Description |
|---|---|
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) |
getCurrentTime, getEPR, getPorttypeContext, getProperty, getPublisher, getResourcePropertySet, getServiceContext, getTerminationTime, getTopicList, getTopicNames, initialise, initialiseContainers, inScope, load, publish, setPortTypeContext, setTerminationTime, unpublishgetID, getLock, getScheduledTasks, getScope, launchTask, setID, setPersistenceDelegate, stopTask, storegetPortTypeMap, setPortTypeMappublic 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
public String[] getPropertyNames()
getPropertyNames in class org.gcube.common.core.state.GCUBEWSResourceprotected void initialise(Object... initParameters) throws Exception
initialise in class org.gcube.common.core.state.GCUBEWSResourceExceptionpublic 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 nameException - -public void editRules(String fieldId) throws Exception
fieldId - field iddimensionId - dimension idkeyName - key nameException - -public void editColumn(String fieldId, org.gcube.common.dbinterface.types.Type type) throws Exception
fieldId - field iddimensionId - dimension idkeyName - key nameException - -public long getCount(boolean onlyErrors)
throws Exception
onlyErrors - if true returns only the wrong entriesException - -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 entryException - -public String getId() throws org.globus.wsrf.ResourceException
org.globus.wsrf.ResourceExceptionpublic String getSourceId() throws org.globus.wsrf.ResourceException
org.globus.wsrf.ResourceExceptionpublic String getSourceName() throws org.globus.wsrf.ResourceException
org.globus.wsrf.ResourceExceptionpublic String getTitle() throws org.globus.wsrf.ResourceException
org.globus.wsrf.ResourceExceptionpublic void setTitle(String title) throws org.globus.wsrf.ResourceException
id - org.globus.wsrf.ResourceExceptionpublic void setId(String id) throws org.globus.wsrf.ResourceException
id - org.globus.wsrf.ResourceExceptionpublic void setSourceId(String sourceId) throws org.globus.wsrf.ResourceException
sourceId - org.globus.wsrf.ResourceExceptionpublic 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 org.gcube.contentmanagement.timeseriesservice.stubs.types.GuessDimensionArray guess(String fieldId) throws Exception
fieldId - field idlimit - the query limitException - -public void setLabel(String fieldId, String label) throws Exception
fieldId - field idlabel - the labeltype - the typeException - -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 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.ResourceExceptionpublic void setColumn(org.gcube.contentmanagement.timeseriesservice.stubs.types.EntryType columnType,
String fieldId)
throws Exception
columnType - column typefieldId - field iddataType - data typeException - -public void replaceById(String oldId, String newId, String fieldId) throws Exception
oldId - old idnewId - new idfieldId - field idException - -public void replaceByValue(String oldValue, String newValue, String fieldId) throws Exception
oldValue - old valuenewValue - new valuefieldId - field idException - -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 idException - -public long checkDimension(String dimensionId, String fieldId, String keyId) throws Exception
dimensionId - dimension idfieldId - field idkeyName - key nameException - -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 rulesException - -public long checkTypeChange(String fieldId, org.gcube.common.dbinterface.types.Type newType) throws Exception
fieldId - field idfilters - list of the filter representing the applied rulesException - -public void closeEditing()
throws Exception
Exception - -public void modifyEntryValue(String fieldId, String newValue, long rowId) throws Exception
fieldId - field idnewValue - new valuerowId - row idorg.gcube.common.core.faults.GCUBEFault - -Exceptionpublic void modifyEntryId(String fieldId, String newId, long rowId) throws Exception
fieldId - field idnewId - new idrowId - row idorg.gcube.common.core.faults.GCUBEFault - -Exceptionpublic void removeAllErrors()
throws Exception
Exception - -public void removeError(long rowId)
throws Exception
rowId - the row idException - -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
Exceptionpublic Iterator<Rule> applyableRules(String fieldId) throws Exception
ExceptionCopyright © 2015. All Rights Reserved.