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
FieldsModifier and TypeFieldDescriptionstatic final StringAttribute name data name for values (valid and invalid) datastatic final StringAttribute value data name for values (valid and invalid) datastatic final StringComments data namestatic final StringContent identifier data namestatic final StringCreator data namestatic final StringInvalid values data namestatic final StringRepeaters data namestatic final StringTemporary date data namestatic final StringValid values data namestatic final StringRepeater count data namestatic final StringRepeater name data namestatic final StringRepeater prefix data nameFields inherited from interface org.ametys.plugins.repository.data.holder.ModelAwareDataHolder
ALTERNATIVE_SUFFIX, COMMENTS_SUFFIX, STATUS_SUFFIX -
Constructor Summary
ConstructorsConstructorDescriptionContentBackupAmetysObject(javax.jcr.Node node, String parentPath, ContentBackupAmetysObjectFactory factory) Creates a DefaultTraversableAmetysObject. -
Method Summary
Modifier and TypeMethodDescriptionprotected ModelCreates the content backup modelReturns theDataHolderof 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, saveChangesMethods inherited from class org.ametys.plugins.repository.AbstractAmetysObject
equals, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.ametys.plugins.repository.AmetysObject
equals, getId, getName, getParent, getParentPath, getPath, hashCodeMethods inherited from interface org.ametys.plugins.repository.data.ametysobject.DataAwareAmetysObject
copyTo, copyTo, dataToJSON, dataToJSON, dataToSAX, dataToSAXMethods inherited from interface org.ametys.plugins.repository.jcr.JCRAmetysObject
getNodeMethods inherited from interface org.ametys.cms.data.ametysobject.ModelAwareDataAwareAmetysObject
getSystemPropertyExtensionPoint, indexData, indexDataMethods 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, hasValueOrEmptyMethods 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, isMultipleMethods inherited from interface org.ametys.plugins.repository.ModifiableAmetysObject
needsSave, rename, revertChanges, saveChangesMethods inherited from interface org.ametys.plugins.repository.data.holder.ModifiableDataHolder
getRepositoryDataMethods inherited from interface org.ametys.plugins.repository.metadata.ModifiableMetadataAwareAmetysObject
getMetadataHolderMethods inherited from interface org.ametys.cms.data.ametysobject.ModifiableModelAwareDataAwareAmetysObject
getComposite, getComposite, getExternalComposite, getExternalComposite, getExternalRepeater, getExternalRepeater, getLocalComposite, getLocalComposite, getLocalRepeater, getLocalRepeater, getParentDataHolder, getRepeater, getRepeater, getRootDataHolderMethods inherited from interface org.ametys.plugins.repository.data.ametysobject.ModifiableModelAwareDataAwareAmetysObject
getRepositoryData, removeExternalizableMetadataIfExists, removeExternalValue, removeLocalValue, removeValue, setComments, setExternalValue, setLocalValue, setStatus, setValue, synchronizeValues, synchronizeValues, synchronizeValues, synchronizeValuesMethods 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- theDefaultTraversableAmetysObjectFactorywhich 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:DataAwareAmetysObjectReturns theDataHolderof thisAmetysObject.- Specified by:
getDataHolderin interfaceDataAwareAmetysObject- Specified by:
getDataHolderin interfaceModelAwareDataAwareAmetysObject- Specified by:
getDataHolderin interfaceModelAwareDataAwareAmetysObject- Specified by:
getDataHolderin interfaceModifiableModelAwareDataAwareAmetysObject- Specified by:
getDataHolderin interfaceModifiableModelAwareDataAwareAmetysObject- Returns:
- the
DataHolderof thisAmetysObject
-