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.plugins.repository.jcr.SimpleModelAwareAmetysObject<ContentBackupAmetysObjectFactory>
org.ametys.cms.repository.SimpleIndexableAmetysObject<ContentBackupAmetysObjectFactory>
org.ametys.cms.content.autosave.ContentBackupAmetysObject
- All Implemented Interfaces:
IndexableAmetysObject,ModifiableIndexableAmetysObject,IndexableDataHolder,ModifiableIndexableDataHolder,IndexableJCRAmetysObject,AmetysObject,ModelAwareAmetysObject,ModifiableModelAwareAmetysObject,DataHolder,ModelAwareDataHolder,ModifiableDataHolder,ModifiableModelAwareDataHolder,JCRAmetysObject,ModelAwareJCRAmetysObject,MetadataAwareAmetysObject,ModifiableMetadataAwareAmetysObject,ModifiableAmetysObject,RemovableAmetysObject
public class ContentBackupAmetysObject
extends SimpleIndexableAmetysObject<ContentBackupAmetysObjectFactory>
Implementation of a
This implementation heavily relies on its
IndexableJCRAmetysObject, 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 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, STATUS_SUFFIX -
Constructor Summary
ConstructorsConstructorDescriptionContentBackupAmetysObject(javax.jcr.Node node, String parentPath, ContentBackupAmetysObjectFactory factory) Creates a DefaultTraversableAmetysObject. -
Method Summary
Methods inherited from class org.ametys.cms.repository.SimpleIndexableAmetysObject
getComposite, getComposite, getDataHolder, getExternalComposite, getExternalComposite, getExternalRepeater, getExternalRepeater, getLocalComposite, getLocalComposite, getLocalRepeater, getLocalRepeater, getParentDataHolder, getRepeater, getRepeater, getRootDataHolder, indexDataMethods inherited from class org.ametys.plugins.repository.jcr.SimpleModelAwareAmetysObject
dataToJSON, dataToJSON, dataToJSONForEdition, dataToMap, dataToSAX, dataToSAX, dataToSAXForEdition, getDefinition, getDifferences, getDifferences, getDifferences, getDifferences, getExternalValue, getLocalValue, getModel, getModelItemTypeExtensionPoint, getRepositoryData, getStatus, getType, getValueOfType, getValueOfTypeOrDefault, getValueOrDefault, getValueWithMultiValuedPathSegments, hasDefinition, hasDifferences, hasDifferences, hasDifferences, hasDifferences, hasExternalValue, hasExternalValueOrEmpty, hasLocalValue, hasLocalValueOrEmpty, hasValue, hasValue, hasValueOrEmpty, isMultiple, isMultiple, removeExternalizableMetadataIfExists, removeExternalValue, removeLocalValue, removeValue, setExternalValue, setLocalValue, setStatus, setValue, setValue, synchronizeValues, synchronizeValues, synchronizeValues, synchronizeValuesMethods 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
dataToJSON, dataToSAX, equals, getDataNames, getValue, getValueOrDefault, 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.holder.DataHolder
copyTo, copyTo, dataToJSON, dataToJSON, dataToSAX, dataToSAX, getValue, getValueOrDefault, hasValue, hasValueOrEmptyMethods inherited from interface org.ametys.cms.data.ametysobject.IndexableAmetysObject
getSystemPropertyExtensionPoint, indexDataMethods inherited from interface org.ametys.plugins.repository.jcr.JCRAmetysObject
getNodeMethods inherited from interface org.ametys.plugins.repository.data.ametysobject.ModelAwareAmetysObject
getModelMethods inherited from interface org.ametys.plugins.repository.data.holder.ModelAwareDataHolder
dataToJSON, dataToJSON, dataToJSON, dataToJSON, dataToJSONForEdition, dataToMap, dataToMap, dataToMap, dataToMap, dataToSAX, dataToSAX, dataToSAX, dataToSAX, dataToSAXForEdition, getDataNames, getDefinition, getDifferences, getDifferences, getDifferences, getDifferences, getExternalValue, getLocalValue, getModelItemTypeExtensionPoint, getStatus, getType, getValueOfType, getValueOfTypeOrDefault, getValueOrDefault, getValueWithMultiValuedPathSegments, hasDefinition, hasDifferences, hasDifferences, hasDifferences, hasDifferences, hasExternalValue, hasExternalValueOrEmpty, hasLocalValue, hasLocalValueOrEmpty, hasValue, isMultiple, isMultipleMethods inherited from interface org.ametys.plugins.repository.ModifiableAmetysObject
needsSave, rename, revertChanges, saveChangesMethods inherited from interface org.ametys.plugins.repository.data.holder.ModifiableDataHolder
getRepositoryData, removeValue, synchronizeValuesMethods inherited from interface org.ametys.plugins.repository.metadata.ModifiableMetadataAwareAmetysObject
getMetadataHolderMethods inherited from interface org.ametys.plugins.repository.data.holder.ModifiableModelAwareDataHolder
removeExternalizableMetadataIfExists, removeExternalValue, removeLocalValue, setExternalValue, setLocalValue, setStatus, setValue, setValue, 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_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.
-