Class RepositoryDataContext
java.lang.Object
org.ametys.runtime.model.type.DataContext
org.ametys.plugins.repository.model.RepositoryDataContext
Object that gives some context for repository data manipulation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
_cloneContextData
(DataContext context) Clone the data of the current context in the given oneCreates a new instance of aRepositoryDataContext
, with the current context valuesRetrieves the externalizable databoolean
Check if the current data is externalizablestatic RepositoryDataContext
Creates a new instance of aRepositoryDataContext
withExternalizableData
(Set<String> externalizableData) Sets the externalizable dataMethods inherited from class org.ametys.runtime.model.type.DataContext
addSegmentToDataPath, addSuffixToLastSegment, getDataPath, getDataPathLastSegment, getFullDataPath, getLocale, getModelItem, getObjectId, getRootObjectId, renderEmptyValues, withDataPath, withEmptyValues, withFullDataPath, withLocale, withModelItem, withObjectId, withRootObjectId
-
Constructor Details
-
RepositoryDataContext
protected RepositoryDataContext()Creates a new instance of aRepositoryDataContext
-
-
Method Details
-
newInstance
Creates a new instance of aRepositoryDataContext
- Returns:
- the created instance
-
cloneContext
Creates a new instance of aRepositoryDataContext
, with the current context values- Overrides:
cloneContext
in classDataContext
- Returns:
- the created instance
-
_cloneContextData
Description copied from class:DataContext
Clone the data of the current context in the given one- Overrides:
_cloneContextData
in classDataContext
- Parameters:
context
- the clone
-
getExternalizableData
Retrieves the externalizable data- Returns:
- the externalizable data
-
isDataExternalizable
Check if the current data is externalizable- Returns:
true
if the data is externalizable,false
otherwise
-
withExternalizableData
Sets the externalizable data- Parameters:
externalizableData
- the externalizable data to set- Returns:
- the current
RepositoryDataContext
-