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
ModifierConstructorDescriptionprotected
Creates a new instance of aRepositoryDataContext
protected
RepositoryDataContext
(DataContext context) Creates a new instance of aRepositoryDataContext
from anotherDataContext
-
Method Summary
Modifier and TypeMethodDescriptionCreates 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
static RepositoryDataContext
newInstance
(DataContext context) Creates a new instance of aRepositoryDataContext
from 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 aRepositoryDataContext
from 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 aRepositoryDataContext
from 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:
cloneContext
in classDataContext
- Returns:
- the created instance
-
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
-