Class SynchronizableValue
java.lang.Object
org.ametys.plugins.repository.data.holder.values.SynchronizableValue
Wrapper for a synchronizable value
Contains the value itself and indicates if it is the external value
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves the comments associated with the valueRetrieves the externalizable status of the valueRetrieves the external valuegetMode()
Retrieves the write mode for the valuegetValue()
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
Set the write mode for the valuevoid
Sets the synchronizable value
-
Constructor Details
-
SynchronizableValue
Constructor.- Parameters:
value
- the actual value.
-
-
Method Details
-
getValue
Retrieves the synchronizable value- Returns:
- the synchronizable value
-
setValue
Sets the synchronizable value- Parameters:
value
- the synchronizable value to set
-
getExternalValue
Retrieves the external value- Returns:
- the external value
-
setExternalValue
Sets the external value- Parameters:
externalValue
- the external value to set
-
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
Retrieves the comments associated with the value- Returns:
- the comments associated with the value
-
setComments
Set the comments associated to the value- Parameters:
comments
- the comment
-
getMode
Retrieves the write mode for the value- Returns:
- the write mode for the value
-
setMode
Set the write mode for the value- Parameters:
mode
- the write mode
-