org.gcube.contentmanagement.timeseriesservice.impl.editing
Class RuleEditor

java.lang.Object
  extended by org.gcube.contentmanagement.timeseriesservice.impl.editing.EditProxy
      extended by org.gcube.contentmanagement.timeseriesservice.impl.editing.Edit
          extended by org.gcube.contentmanagement.timeseriesservice.impl.editing.RuleEditor
All Implemented Interfaces:
java.io.Serializable

public class RuleEditor
extends Edit

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.gcube.contentmanagement.timeseriesservice.impl.editing.Edit
Edit.TYPE
 
Constructor Summary
RuleEditor(java.lang.String resourceId, java.lang.String fieldId, SimpleTable resourceTable, int[] fieldLength, boolean withoutError, java.util.List<Rule> rules, ColumnDefinition[] columnsDefinition, java.lang.String... rowIdLabel)
           
 
Method Summary
 long check()
           
 java.util.List<ErrorPair> getDistinctErrors()
           
 java.lang.String getPossibleValues(java.lang.String word)
           
 ColumnDefinition getTemporaryColumnDefinition(ColumnDefinition oldColumnDefinition)
           
 void modifyDistinctEntryId(java.lang.String fieldId, java.lang.String newId, long rowId, java.lang.String dimensionId, java.lang.String keyName)
           
 void modifyDistinctEntryValue(java.lang.String fieldId, long rowId, java.lang.String newValue)
           
 void modifyEntryId(java.lang.String fieldId, java.lang.String newId, long rowId)
           
 void replaceDistinctIds(java.lang.String fieldId, java.lang.String oldId, java.lang.String newId, java.lang.String keyName)
           
 void replaceDistinctValue(java.lang.String fieldId, java.lang.String newValue, java.lang.String oldValue)
           
 void replaceEntryValueWithId(java.lang.String oldValue, java.lang.String newId, java.lang.String fieldId)
           
 void replaceIds(java.lang.String fieldId, java.lang.String oldId, java.lang.String newId)
           
 void replaceValue(int rowId, java.lang.Object value)
           
 
Methods inherited from class org.gcube.contentmanagement.timeseriesservice.impl.editing.Edit
dismiss, errorCount, getEditorType, getFieldId, getFieldLength, getHistoryItems, getIsUnderInitialization, getResultAsJson, initialize, removeAllErrors, removeSingleError, save, setHistoryItems, setIsUnderInitialization, totalCount
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleEditor

public RuleEditor(java.lang.String resourceId,
                  java.lang.String fieldId,
                  SimpleTable resourceTable,
                  int[] fieldLength,
                  boolean withoutError,
                  java.util.List<Rule> rules,
                  ColumnDefinition[] columnsDefinition,
                  java.lang.String... rowIdLabel)
Method Detail

check

public long check()
           throws java.lang.Exception
Specified by:
check in class Edit
Throws:
java.lang.Exception

replaceValue

public void replaceValue(int rowId,
                         java.lang.Object value)
                  throws java.lang.Exception
Specified by:
replaceValue in class EditProxy
Throws:
java.lang.Exception

modifyEntryId

public void modifyEntryId(java.lang.String fieldId,
                          java.lang.String newId,
                          long rowId)
                   throws java.lang.Exception
Specified by:
modifyEntryId in class EditProxy
Throws:
java.lang.Exception

modifyDistinctEntryId

public void modifyDistinctEntryId(java.lang.String fieldId,
                                  java.lang.String newId,
                                  long rowId,
                                  java.lang.String dimensionId,
                                  java.lang.String keyName)
                           throws java.lang.Exception
Specified by:
modifyDistinctEntryId in class EditProxy
Throws:
java.lang.Exception

modifyDistinctEntryValue

public void modifyDistinctEntryValue(java.lang.String fieldId,
                                     long rowId,
                                     java.lang.String newValue)
                              throws java.lang.Exception
Specified by:
modifyDistinctEntryValue in class EditProxy
Throws:
java.lang.Exception

replaceIds

public void replaceIds(java.lang.String fieldId,
                       java.lang.String oldId,
                       java.lang.String newId)
                throws java.lang.Exception
Specified by:
replaceIds in class EditProxy
Throws:
java.lang.Exception

replaceDistinctValue

public void replaceDistinctValue(java.lang.String fieldId,
                                 java.lang.String newValue,
                                 java.lang.String oldValue)
                          throws java.lang.Exception
Specified by:
replaceDistinctValue in class EditProxy
Throws:
java.lang.Exception

replaceDistinctIds

public void replaceDistinctIds(java.lang.String fieldId,
                               java.lang.String oldId,
                               java.lang.String newId,
                               java.lang.String keyName)
                        throws java.lang.Exception
Specified by:
replaceDistinctIds in class EditProxy
Throws:
java.lang.Exception

replaceEntryValueWithId

public void replaceEntryValueWithId(java.lang.String oldValue,
                                    java.lang.String newId,
                                    java.lang.String fieldId)
                             throws java.lang.Exception
Specified by:
replaceEntryValueWithId in class EditProxy
Throws:
java.lang.Exception

getDistinctErrors

public java.util.List<ErrorPair> getDistinctErrors()
                                            throws java.lang.Exception
Specified by:
getDistinctErrors in class EditProxy
Throws:
java.lang.Exception

getPossibleValues

public java.lang.String getPossibleValues(java.lang.String word)
                                   throws java.lang.Exception
Specified by:
getPossibleValues in class EditProxy
Throws:
java.lang.Exception

getTemporaryColumnDefinition

public ColumnDefinition getTemporaryColumnDefinition(ColumnDefinition oldColumnDefinition)
                                              throws java.lang.Exception
Specified by:
getTemporaryColumnDefinition in class EditProxy
Throws:
java.lang.Exception