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:
AmetysObject
,DataAwareAmetysObject
,ModelAwareDataAwareAmetysObject
,ModifiableModelAwareDataAwareAmetysObject
,DataHolder
,ModelAwareDataHolder
,ModifiableDataHolder
,ModifiableModelAwareDataHolder
,JCRAmetysObject
,ModelAwareJCRAmetysObject
,MetadataAwareAmetysObject
,ModifiableMetadataAwareAmetysObject
,ModifiableAmetysObject
,RemovableAmetysObject
public class ContentBackupAmetysObject extends SimpleAmetysObject<ContentBackupAmetysObjectFactory> implements ModelAwareJCRAmetysObject
Implementation of aModelAwareJCRAmetysObject
, for content backup.
This implementation heavily relies on itsContentBackupAmetysObjectFactory
counterpart.
-
-
Field Summary
Fields Modifier and Type Field Description static String
ATTRIBUTE_NAME
Attribute name data name for values (valid and invalid) datastatic String
ATTRIBUTE_VALUE
Attribute value data name for values (valid and invalid) datastatic String
AUTOSAVE_COMMENTS
Comments data namestatic String
AUTOSAVE_CONTENT_ID
Content identifier data namestatic String
AUTOSAVE_CREATOR
Creator data namestatic String
AUTOSAVE_INVALID_VALUES
Invalid values data namestatic String
AUTOSAVE_REPEATERS
Repeaters data namestatic String
AUTOSAVE_TEMP_DATE
Temporary date data namestatic String
AUTOSAVE_VALUES
Valid values data namestatic String
REPEATER_COUNT
Repeater count data namestatic String
REPEATER_NAME
Repeater name data namestatic String
REPEATER_PREFIX
Repeater prefix data name-
Fields inherited from interface org.ametys.plugins.repository.data.holder.ModelAwareDataHolder
ALTERNATIVE_SUFFIX, COMMENTS_SUFFIX, STATUS_SUFFIX
-
-
Constructor Summary
Constructors Constructor Description ContentBackupAmetysObject(Node node, String parentPath, ContentBackupAmetysObjectFactory factory)
Creates a DefaultTraversableAmetysObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Model
_createContentBackupModel()
Creates the content backup modelModifiableModelAwareDataHolder
getDataHolder()
Returns 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, dataToSAX, dataToSAX
-
Methods inherited from interface org.ametys.plugins.repository.jcr.JCRAmetysObject
getNode
-
Methods inherited from interface org.ametys.plugins.repository.data.ametysobject.ModelAwareDataAwareAmetysObject
getComments, getDataNames, getDefinition, getExternalValue, getLocalValue, getModel, getStatus, getValue, getValue, hasComments, hasDefinition, hasExternalValue, hasExternalValueOrEmpty, hasLocalValue, hasLocalValueOrEmpty, hasValue, hasValueOrEmpty
-
Methods inherited from interface org.ametys.plugins.repository.data.holder.ModelAwareDataHolder
commentsToSAX, dataToMap, dataToMap, dataToMap, dataToMap, dataToSAX, dataToSAX, dataToSAX, dataToSAX, dataToSAXForEdition, 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.metadata.ModifiableMetadataAwareAmetysObject
getMetadataHolder
-
Methods inherited from interface org.ametys.plugins.repository.data.ametysobject.ModifiableModelAwareDataAwareAmetysObject
getComposite, getComposite, getExternalComposite, getExternalComposite, getExternalRepeater, getExternalRepeater, getLocalComposite, getLocalComposite, getLocalRepeater, getLocalRepeater, getParentDataHolder, getRepeater, getRepeater, getRepositoryData, getRootDataHolder, removeExternalizableMetadataIfExists, removeExternalValue, removeLocalValue, removeValue, setComments, setExternalValue, setLocalValue, setStatus, setValue, synchronizeValues, synchronizeValues, synchronizeValues, synchronizeValues
-
Methods inherited from interface org.ametys.plugins.repository.RemovableAmetysObject
remove
-
-
-
-
Field Detail
-
AUTOSAVE_CONTENT_ID
public static final String AUTOSAVE_CONTENT_ID
Content identifier data name- See Also:
- Constant Field Values
-
AUTOSAVE_CREATOR
public static final String AUTOSAVE_CREATOR
Creator data name- See Also:
- Constant Field Values
-
AUTOSAVE_TEMP_DATE
public static final String AUTOSAVE_TEMP_DATE
Temporary date data name- See Also:
- Constant Field Values
-
AUTOSAVE_COMMENTS
public static final String AUTOSAVE_COMMENTS
Comments data name- See Also:
- Constant Field Values
-
AUTOSAVE_VALUES
public static final String AUTOSAVE_VALUES
Valid values data name- See Also:
- Constant Field Values
-
AUTOSAVE_INVALID_VALUES
public static final String AUTOSAVE_INVALID_VALUES
Invalid values data name- See Also:
- Constant Field Values
-
AUTOSAVE_REPEATERS
public static final String AUTOSAVE_REPEATERS
Repeaters data name- See Also:
- Constant Field Values
-
ATTRIBUTE_NAME
public static final String ATTRIBUTE_NAME
Attribute name data name for values (valid and invalid) data- See Also:
- Constant Field Values
-
ATTRIBUTE_VALUE
public static final String ATTRIBUTE_VALUE
Attribute value data name for values (valid and invalid) data- See Also:
- Constant Field Values
-
REPEATER_NAME
public static final String REPEATER_NAME
Repeater name data name- See Also:
- Constant Field Values
-
REPEATER_COUNT
public static final String REPEATER_COUNT
Repeater count data name- See Also:
- Constant Field Values
-
REPEATER_PREFIX
public static final String REPEATER_PREFIX
Repeater prefix data name- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ContentBackupAmetysObject
public ContentBackupAmetysObject(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 Detail
-
_createContentBackupModel
protected Model _createContentBackupModel() throws AmetysRepositoryException
Creates the content backup model- Returns:
- the created model
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getDataHolder
public ModifiableModelAwareDataHolder getDataHolder()
Description copied from interface:DataAwareAmetysObject
Returns theDataHolder
of thisAmetysObject
.- Specified by:
getDataHolder
in interfaceDataAwareAmetysObject
- Specified by:
getDataHolder
in interfaceModelAwareDataAwareAmetysObject
- Specified by:
getDataHolder
in interfaceModifiableModelAwareDataAwareAmetysObject
- Returns:
- the
DataHolder
of thisAmetysObject
-
-