Package org.ametys.cms.content.autosave
Class ContentBackupAmetysObject
java.lang.Object
org.ametys.plugins.repository.AbstractAmetysObject
org.ametys.plugins.repository.jcr.SimpleAmetysObject<ContentBackupAmetysObjectFactory>
org.ametys.cms.content.autosave.ContentBackupAmetysObject
- All Implemented Interfaces:
ModelAwareDataAwareAmetysObject
,ModifiableModelAwareDataAwareAmetysObject
,IndexableDataHolder
,ModifiableIndexableDataHolder
,ModelAwareJCRAmetysObject
,AmetysObject
,DataAwareAmetysObject
,ModelAwareDataAwareAmetysObject
,ModifiableModelAwareDataAwareAmetysObject
,DataHolder
,ModelAwareDataHolder
,ModifiableDataHolder
,ModifiableModelAwareDataHolder
,JCRAmetysObject
,ModelAwareJCRAmetysObject
,MetadataAwareAmetysObject
,ModifiableMetadataAwareAmetysObject
,ModifiableAmetysObject
,RemovableAmetysObject
public class ContentBackupAmetysObject
extends SimpleAmetysObject<ContentBackupAmetysObjectFactory>
implements ModelAwareJCRAmetysObject
Implementation of a
This implementation heavily relies on its
ModelAwareJCRAmetysObject
, for content backup.This implementation heavily relies on its
ContentBackupAmetysObjectFactory
counterpart.-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Attribute name data name for values (valid and invalid) datastatic final String
Attribute value data name for values (valid and invalid) datastatic final String
Comments data namestatic final String
Content identifier data namestatic final String
Creator data namestatic final String
Invalid values data namestatic final String
Repeaters data namestatic final String
Temporary date data namestatic final String
Valid values data namestatic final String
Repeater count data namestatic final String
Repeater name data namestatic final String
Repeater prefix data nameFields inherited from interface org.ametys.plugins.repository.data.holder.ModelAwareDataHolder
ALTERNATIVE_SUFFIX, COMMENTS_SUFFIX, STATUS_SUFFIX
-
Constructor Summary
ConstructorDescriptionContentBackupAmetysObject
(javax.jcr.Node node, String parentPath, ContentBackupAmetysObjectFactory factory) Creates a DefaultTraversableAmetysObject. -
Method Summary
Modifier and TypeMethodDescriptionprotected Model
Creates the content backup modelReturns theDataHolder
of thisAmetysObject
.Methods inherited from class org.ametys.plugins.repository.jcr.SimpleAmetysObject
_getFactory, _invalidateName, _invalidateParentPath, getId, getMetadataHolder, getName, getNode, getParent, getParentPath, getPath, needsSave, remove, rename, revertChanges, saveChanges
Methods inherited from class org.ametys.plugins.repository.AbstractAmetysObject
equals, hashCode, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.ametys.plugins.repository.AmetysObject
equals, getId, getName, getParent, getParentPath, getPath, hashCode
Methods inherited from interface org.ametys.plugins.repository.data.ametysobject.DataAwareAmetysObject
copyTo, copyTo, dataToJSON, dataToJSON, dataToSAX, dataToSAX
Methods inherited from interface org.ametys.plugins.repository.jcr.JCRAmetysObject
getNode
Methods inherited from interface org.ametys.cms.data.ametysobject.ModelAwareDataAwareAmetysObject
getSystemPropertyExtensionPoint, indexData, indexData
Methods inherited from interface org.ametys.plugins.repository.data.ametysobject.ModelAwareDataAwareAmetysObject
dataToJSON, dataToJSONForEdition, dataToMap, dataToSAX, dataToSAXForEdition, getComments, getDataNames, getDefinition, getDifferences, getDifferences, getDifferences, getDifferences, getExternalValue, getLocalValue, getModel, getStatus, getValue, getValue, hasComments, hasDefinition, hasDifferences, hasDifferences, hasDifferences, hasDifferences, hasExternalValue, hasExternalValueOrEmpty, hasLocalValue, hasLocalValueOrEmpty, hasValue, hasValueOrEmpty
Methods inherited from interface org.ametys.plugins.repository.data.holder.ModelAwareDataHolder
commentsToSAX, dataToJSON, dataToJSON, dataToJSON, dataToMap, dataToMap, dataToMap, dataToSAX, dataToSAX, dataToSAX, getDataNames, getType, getValue, hasValue, hasValueOrEmpty, isMultiple
Methods inherited from interface org.ametys.plugins.repository.ModifiableAmetysObject
needsSave, rename, revertChanges, saveChanges
Methods inherited from interface org.ametys.plugins.repository.data.holder.ModifiableDataHolder
getRepositoryData
Methods inherited from interface org.ametys.plugins.repository.metadata.ModifiableMetadataAwareAmetysObject
getMetadataHolder
Methods inherited from interface org.ametys.cms.data.ametysobject.ModifiableModelAwareDataAwareAmetysObject
getComposite, getComposite, getExternalComposite, getExternalComposite, getExternalRepeater, getExternalRepeater, getLocalComposite, getLocalComposite, getLocalRepeater, getLocalRepeater, getParentDataHolder, getRepeater, getRepeater, getRootDataHolder
Methods inherited from interface org.ametys.plugins.repository.data.ametysobject.ModifiableModelAwareDataAwareAmetysObject
getRepositoryData, removeExternalizableMetadataIfExists, removeExternalValue, removeLocalValue, removeValue, setComments, setExternalValue, setLocalValue, setStatus, setValue, synchronizeValues, synchronizeValues, synchronizeValues, synchronizeValues
Methods inherited from interface org.ametys.plugins.repository.RemovableAmetysObject
remove
-
Field Details
-
AUTOSAVE_CONTENT_ID
Content identifier data name- See Also:
-
AUTOSAVE_CREATOR
Creator data name- See Also:
-
AUTOSAVE_TEMP_DATE
Temporary date data name- See Also:
-
AUTOSAVE_COMMENTS
Comments data name- See Also:
-
AUTOSAVE_VALUES
Valid values data name- See Also:
-
AUTOSAVE_INVALID_VALUES
Invalid values data name- See Also:
-
AUTOSAVE_REPEATERS
Repeaters data name- See Also:
-
ATTRIBUTE_NAME
Attribute name data name for values (valid and invalid) data- See Also:
-
ATTRIBUTE_VALUE
Attribute value data name for values (valid and invalid) data- See Also:
-
REPEATER_NAME
Repeater name data name- See Also:
-
REPEATER_COUNT
Repeater count data name- See Also:
-
REPEATER_PREFIX
Repeater prefix data name- See Also:
-
-
Constructor Details
-
ContentBackupAmetysObject
public ContentBackupAmetysObject(javax.jcr.Node node, String parentPath, ContentBackupAmetysObjectFactory factory) throws AmetysRepositoryException Creates a DefaultTraversableAmetysObject.- Parameters:
node
- the node backing thisAmetysObject
.parentPath
- the parent path in the Ametys hierarchy.factory
- theDefaultTraversableAmetysObjectFactory
which creates the AmetysObject.- Throws:
AmetysRepositoryException
- if an error occurs.
-
-
Method Details
-
_createContentBackupModel
Creates the content backup model- Returns:
- the created model
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getDataHolder
Description copied from interface:DataAwareAmetysObject
Returns theDataHolder
of thisAmetysObject
.- Specified by:
getDataHolder
in interfaceDataAwareAmetysObject
- Specified by:
getDataHolder
in interfaceModelAwareDataAwareAmetysObject
- Specified by:
getDataHolder
in interfaceModelAwareDataAwareAmetysObject
- Specified by:
getDataHolder
in interfaceModifiableModelAwareDataAwareAmetysObject
- Specified by:
getDataHolder
in interfaceModifiableModelAwareDataAwareAmetysObject
- Returns:
- the
DataHolder
of thisAmetysObject
-