Class SynchronizableValue
- java.lang.Object
- 
- org.ametys.plugins.repository.data.holder.values.SynchronizableValue
 
- 
 public class SynchronizableValue extends Object Wrapper for a synchronizable value Contains the value itself and indicates if it is the external value
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classSynchronizableValue.ModeThe value write mode.
 - 
Field SummaryFields Modifier and Type Field Description private List<DataComment>_commentsprivate ExternalizableDataProvider.ExternalizableDataStatus_externalizableDataStatusprivate Object_externalValueprivate SynchronizableValue.Mode_modeprivate Object_value
 - 
Constructor SummaryConstructors Constructor Description SynchronizableValue(Object value)Constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description List<DataComment>getComments()Retrieves the comments associated with the valueExternalizableDataProvider.ExternalizableDataStatusgetExternalizableStatus()Retrieves the externalizable status of the valueObjectgetExternalValue()Retrieves the external valueSynchronizableValue.ModegetMode()Retrieves the write mode for the valueObjectgetValue()Retrieves the synchronizable valuevoidsetComments(List<DataComment> comments)Set the comments associated to the valuevoidsetExternalizableStatus(ExternalizableDataProvider.ExternalizableDataStatus externalizableDataStatus)Sets the externalizable status of the value If not set, the status of the value won't be updatedvoidsetExternalValue(Object externalValue)Sets the external valuevoidsetMode(SynchronizableValue.Mode mode)Set the write mode for the valuevoidsetValue(Object value)Sets the synchronizable value
 
- 
- 
- 
Field Detail- 
_externalValueprivate Object _externalValue 
 - 
_externalizableDataStatusprivate ExternalizableDataProvider.ExternalizableDataStatus _externalizableDataStatus 
 - 
_commentsprivate List<DataComment> _comments 
 - 
_modeprivate SynchronizableValue.Mode _mode 
 
- 
 - 
Constructor Detail- 
SynchronizableValuepublic SynchronizableValue(Object value) Constructor.- Parameters:
- value- the actual value.
 
 
- 
 - 
Method Detail- 
getValuepublic Object getValue() Retrieves the synchronizable value- Returns:
- the synchronizable value
 
 - 
setValuepublic void setValue(Object value) Sets the synchronizable value- Parameters:
- value- the synchronizable value to set
 
 - 
getExternalValuepublic Object getExternalValue() Retrieves the external value- Returns:
- the external value
 
 - 
setExternalValuepublic void setExternalValue(Object externalValue) Sets the external value- Parameters:
- externalValue- the external value to set
 
 - 
getExternalizableStatuspublic ExternalizableDataProvider.ExternalizableDataStatus getExternalizableStatus() Retrieves the externalizable status of the value- Returns:
- the externalizable status of the value
 
 - 
setExternalizableStatuspublic void setExternalizableStatus(ExternalizableDataProvider.ExternalizableDataStatus externalizableDataStatus) Sets the externalizable status of the value If not set, the status of the value won't be updated- Parameters:
- externalizableDataStatus- the status to set
 
 - 
getCommentspublic List<DataComment> getComments() Retrieves the comments associated with the value- Returns:
- the comments associated with the value
 
 - 
setCommentspublic void setComments(List<DataComment> comments) Set the comments associated to the value- Parameters:
- comments- the comment
 
 - 
getModepublic SynchronizableValue.Mode getMode() Retrieves the write mode for the value- Returns:
- the write mode for the value
 
 - 
setModepublic void setMode(SynchronizableValue.Mode mode) Set the write mode for the value- Parameters:
- mode- the write mode
 
 
- 
 
-