Class RepositoryDataContext
java.lang.Object
org.ametys.runtime.model.type.DataContext
org.ametys.plugins.repository.model.RepositoryDataContext
- Direct Known Subclasses:
IndexableDataContext
Object that gives some context for repository data manipulation
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a new instance of aRepositoryDataContextprotectedRepositoryDataContext(DataContext context) Creates a new instance of aRepositoryDataContextfrom anotherDataContext -
Method Summary
Modifier and TypeMethodDescriptionCreates a new instance of aRepositoryDataContext, with the current context valuesRetrieves the externalizable databooleanCheck if the current data is externalizablestatic RepositoryDataContextCreates a new instance of aRepositoryDataContextstatic RepositoryDataContextnewInstance(DataContext context) Creates a new instance of aRepositoryDataContextfrom anotherDataContext.<T extends RepositoryDataContext>
TwithExternalizableData(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, getViewItem, renderEmptyValues, withDataPath, withEmptyValues, withFullDataPath, withLocale, withModelItem, withObjectId, withRootObjectId, withViewItem
-
Constructor Details
-
RepositoryDataContext
protected RepositoryDataContext()Creates a new instance of aRepositoryDataContext -
RepositoryDataContext
Creates a new instance of aRepositoryDataContextfrom anotherDataContext- Parameters:
context- the data context to copy
-
-
Method Details
-
newInstance
Creates a new instance of aRepositoryDataContext- Returns:
- the created instance
-
newInstance
Creates a new instance of aRepositoryDataContextfrom anotherDataContext. It can be the same implementation or another one, but it will be casted to the current implementation.- Parameters:
context- the data context to copy- Returns:
- the created instance
-
cloneContext
Creates a new instance of aRepositoryDataContext, with the current context values- Overrides:
cloneContextin classDataContext- Returns:
- the created instance
-
getExternalizableData
Retrieves the externalizable data- Returns:
- the externalizable data
-
isDataExternalizable
Check if the current data is externalizable- Returns:
trueif the data is externalizable,falseotherwise
-
withExternalizableData
Sets the externalizable data- Parameters:
externalizableData- the externalizable data to set- Returns:
- the current
RepositoryDataContext
-