Class ContentConsistencyResult
java.lang.Object
org.ametys.plugins.repository.AbstractAmetysObject
org.ametys.plugins.repository.jcr.SimpleAmetysObject<ContentConsistencyResultFactory>
org.ametys.cms.content.consistency.ContentConsistencyResult
- All Implemented Interfaces:
AmetysObject,DataAwareAmetysObject,ModelAwareDataAwareAmetysObject,ModifiableModelAwareDataAwareAmetysObject,DataHolder,ModelAwareDataHolder,ModifiableDataHolder,ModifiableModelAwareDataHolder,JCRAmetysObject,MetadataAwareAmetysObject,ModifiableMetadataAwareAmetysObject,ModifiableAmetysObject,RemovableAmetysObject
public class ContentConsistencyResult
extends SimpleAmetysObject<ContentConsistencyResultFactory>
implements ModifiableModelAwareDataAwareAmetysObject
Simple object representing the result of a consistency check.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringJCR node type for content consistency resultstatic final Stringdata path for the content idstatic final Stringdata path for the content typesstatic final Stringdata path for the contextstatic final Stringdata path for the creation datestatic final Stringdata path for the creatorstatic final Stringdata path for the date of the checkstatic final Stringdata path for the last contributorstatic final Stringdata path for the content last major validation datestatic final Stringdata path for the last major validatorstatic final Stringdata path for the content last modification datestatic final Stringdata path for the content last validation datestatic final Stringdata path for the last validatorstatic final Stringdata path for the not found errorstatic final Stringdata path for the server errorstatic final Stringdata path for the success checksstatic final Stringdata path for the titlestatic final Stringdata path for the unauthorized errorstatic final Stringdata path for the unknown errorstatic final Stringdata path for the workflow stepFields inherited from interface org.ametys.plugins.repository.data.holder.ModelAwareDataHolder
ALTERNATIVE_SUFFIX, COMMENTS_SUFFIX, STATUS_SUFFIX -
Constructor Summary
ConstructorsConstructorDescriptionContentConsistencyResult(javax.jcr.Node node, String parentPath, ContentConsistencyResultFactory factory) Creates anContentConsistencyResult. -
Method Summary
Modifier and TypeMethodDescriptionGet the content idString[]Get the content typesGet the creation dateGet the creatorReturns theDataHolderof thisAmetysObject.getDate()Get the result dateGet the last contributorGet the last major validation dateGet the last major validatorGet the last modification dateGet the last validation dateGet the last validatorlongGet the not found countlongGet the server error countlongGet the success countgetTitle()Get the titlelongGet the unauthorized countlongGet the unknown countlongGet the workflow steptoJSON()Serialize the result to a JSON objectMethods 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, dataToJSON, dataToJSON, dataToSAX, dataToSAXMethods inherited from interface org.ametys.plugins.repository.data.ametysobject.ModelAwareDataAwareAmetysObject
dataToJSON, dataToJSONForEdition, dataToMap, dataToSAX, dataToSAXForEdition, getComments, getDataNames, getDefinition, getExternalValue, getLocalValue, getModel, getStatus, getValue, getValue, hasComments, hasDefinition, 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.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
-
Field Details
-
SERVER_ERROR
data path for the server error- See Also:
-
NOT_FOUND
data path for the not found error- See Also:
-
UNAUTHORIZED
data path for the unauthorized error- See Also:
-
UNKNOWN
data path for the unknown error- See Also:
-
SUCCESS
data path for the success checks- See Also:
-
DATE
data path for the date of the check- See Also:
-
WORKFLOW_STEP
data path for the workflow step- See Also:
-
CONTENT_TYPES
data path for the content types- See Also:
-
TITLE
data path for the title- See Also:
-
CONTENT_ID
data path for the content id- See Also:
-
CREATOR
data path for the creator- See Also:
-
LAST_MAJOR_VALIDATOR
data path for the last major validator- See Also:
-
LAST_VALIDATOR
data path for the last validator- See Also:
-
LAST_CONTRIBUTOR
data path for the last contributor- See Also:
-
CONTEXT
data path for the context- See Also:
-
CREATION_DATE
data path for the creation date- See Also:
-
LAST_MAJOR_VALIDATION_DATE
data path for the content last major validation date- See Also:
-
LAST_VALIDATION_DATE
data path for the content last validation date- See Also:
-
LAST_MODIFICATION_DATE
data path for the content last modification date- See Also:
-
CONTENT_CONSISTENCY_RESULT_NODETYPE
JCR node type for content consistency result- See Also:
-
-
Constructor Details
-
ContentConsistencyResult
public ContentConsistencyResult(javax.jcr.Node node, String parentPath, ContentConsistencyResultFactory factory) Creates anContentConsistencyResult.- Parameters:
node- the node backing this resultparentPath- the parentPath in the Ametys hierarchyfactory- the factory which created the activity
-
-
Method Details
-
getContentId
Get the content id- Returns:
- the content Id
-
getDate
Get the result date- Returns:
- the date
-
getUnauthorizedCount
Get the unauthorized count- Returns:
- the count
-
getUnknownCount
Get the unknown count- Returns:
- the unknown count
-
getSuccessCount
Get the success count- Returns:
- the success count
-
getNotFoundCount
Get the not found count- Returns:
- the count
-
getServerErrorCount
Get the server error count- Returns:
- the count
-
getTitle
Get the title- Returns:
- the title
-
getContentTypes
Get the content types- Returns:
- the content types
-
getCreator
Get the creator- Returns:
- the creator
-
getCreationDate
Get the creation date- Returns:
- the content creation date
-
getLastMajorValidator
Get the last major validator- Returns:
- the last major validator
-
getLastMajorValidationDate
Get the last major validation date- Returns:
- the last content major validation date
-
getLastValidator
Get the last validator- Returns:
- the last validator
-
getLastValidationDate
Get the last validation date- Returns:
- the last content validation date
-
getLastContributor
Get the last contributor- Returns:
- the last contributor
-
getLastModificationDate
Get the last modification date- Returns:
- the content last modification date
-
getWorkflowStep
Get the workflow step- Returns:
- the workflow step
-
toJSON
Serialize the result to a JSON object- Returns:
- the result as JSON
-
getDataHolder
Description copied from interface:DataAwareAmetysObjectReturns theDataHolderof thisAmetysObject.- Specified by:
getDataHolderin interfaceDataAwareAmetysObject- Specified by:
getDataHolderin interfaceModelAwareDataAwareAmetysObject- Specified by:
getDataHolderin interfaceModifiableModelAwareDataAwareAmetysObject- Returns:
- the
DataHolderof thisAmetysObject
-