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
Modifier and TypeFieldDescriptionstatic final String
data path for the content idstatic final String
data path for the content typesstatic final String
data path for the contextstatic final String
data path for the date of the checkstatic final String
data path for the last contributorstatic final String
data path for the not found errorstatic final String
data path for the server errorstatic final String
data path for the success checksstatic final String
data path for the titlestatic final String
data path for the unauthorized errorstatic final String
data path for the unknown errorstatic final String
data path for the workflow stepFields inherited from interface org.ametys.plugins.repository.data.holder.ModelAwareDataHolder
ALTERNATIVE_SUFFIX, COMMENTS_SUFFIX, STATUS_SUFFIX
-
Constructor Summary
ConstructorDescriptionContentConsistencyResult
(javax.jcr.Node node, String parentPath, ContentConsistencyResultFactory factory) Creates anContentConsistencyResult
. -
Method Summary
Modifier and TypeMethodDescriptionGet the content idString[]
Get the content typesReturns theDataHolder
of thisAmetysObject
.getDate()
Get the result dateGet the last contributorlong
Get the not found countlong
Get the server error countlong
Get the success countgetTitle()
Get the titlelong
Get the unauthorized countlong
Get the unknown countlong
Get 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, 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, dataToJSON, dataToJSON, dataToSAX, dataToSAX
Methods 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, 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.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:
-
LAST_CONTRIBUTOR
data path for the last contributor- See Also:
-
CONTEXT
data path for the context- 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
-
getLastContributor
Get the last contributor- Returns:
- the last contributor
-
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: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
-