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 Summary
Nested Classes Modifier and Type Class Description static class
SynchronizableValue.Mode
The value write mode.
-
Field Summary
Fields Modifier and Type Field Description private List<DataComment>
_comments
private ExternalizableDataProvider.ExternalizableDataStatus
_externalizableDataStatus
private Object
_externalValue
private SynchronizableValue.Mode
_mode
private Object
_value
-
Constructor Summary
Constructors Constructor Description SynchronizableValue(Object value)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<DataComment>
getComments()
Retrieves the comments associated with the valueExternalizableDataProvider.ExternalizableDataStatus
getExternalizableStatus()
Retrieves the externalizable status of the valueObject
getExternalValue()
Retrieves the external valueSynchronizableValue.Mode
getMode()
Retrieves the write mode for the valueObject
getValue()
Retrieves the synchronizable valuevoid
setComments(List<DataComment> comments)
Set the comments associated to the valuevoid
setExternalizableStatus(ExternalizableDataProvider.ExternalizableDataStatus externalizableDataStatus)
Sets the externalizable status of the value If not set, the status of the value won't be updatedvoid
setExternalValue(Object externalValue)
Sets the external valuevoid
setMode(SynchronizableValue.Mode mode)
Set the write mode for the valuevoid
setValue(Object value)
Sets the synchronizable value
-
-
-
Field Detail
-
_externalValue
private Object _externalValue
-
_externalizableDataStatus
private ExternalizableDataProvider.ExternalizableDataStatus _externalizableDataStatus
-
_comments
private List<DataComment> _comments
-
_mode
private SynchronizableValue.Mode _mode
-
-
Constructor Detail
-
SynchronizableValue
public SynchronizableValue(Object value)
Constructor.- Parameters:
value
- the actual value.
-
-
Method Detail
-
getValue
public Object getValue()
Retrieves the synchronizable value- Returns:
- the synchronizable value
-
setValue
public void setValue(Object value)
Sets the synchronizable value- Parameters:
value
- the synchronizable value to set
-
getExternalValue
public Object getExternalValue()
Retrieves the external value- Returns:
- the external value
-
setExternalValue
public void setExternalValue(Object externalValue)
Sets the external value- Parameters:
externalValue
- the external value to set
-
getExternalizableStatus
public ExternalizableDataProvider.ExternalizableDataStatus getExternalizableStatus()
Retrieves the externalizable status of the value- Returns:
- the externalizable status of the value
-
setExternalizableStatus
public 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
-
getComments
public List<DataComment> getComments()
Retrieves the comments associated with the value- Returns:
- the comments associated with the value
-
setComments
public void setComments(List<DataComment> comments)
Set the comments associated to the value- Parameters:
comments
- the comment
-
getMode
public SynchronizableValue.Mode getMode()
Retrieves the write mode for the value- Returns:
- the write mode for the value
-
setMode
public void setMode(SynchronizableValue.Mode mode)
Set the write mode for the value- Parameters:
mode
- the write mode
-
-