Class JCRPost
java.lang.Object
org.ametys.plugins.repository.AbstractAmetysObject
org.ametys.plugins.repository.jcr.SimpleAmetysObject<F>
org.ametys.plugins.repository.jcr.DefaultAmetysObject<JCRPostFactory>
org.ametys.plugins.explorer.threads.jcr.JCRPost
- All Implemented Interfaces:
ModifiablePost,Post,ACLAmetysObject,AmetysObject,JCRAmetysObject,MetadataAwareAmetysObject,ModifiableMetadataAwareAmetysObject,ModifiableACLAmetysObject,ModifiableAmetysObject,RemovableAmetysObject,DataAndVersionAwareAmetysObject,ModifiableDataAwareVersionableAmetysObject,VersionableAmetysObject,VersionAwareAmetysObject
Class representing of post, backed by a JCR node.
-
Field Summary
Fields inherited from class org.ametys.plugins.repository.jcr.DefaultAmetysObject
PROTECTED_PROPERTIES -
Constructor Summary
ConstructorsConstructorDescriptionJCRPost(javax.jcr.Node node, String parentPath, JCRPostFactory factory) Creates anJCRPost. -
Method Summary
Modifier and TypeMethodDescriptionGet the author of the postGet the content of the postGet the post's creation date.Get the post's last modification date.voidsetAuthor(UserIdentity author) Set the author of this post.voidsetCreationDate(Date startDate) Set the post's creation date.voidsetLastModified(Date date) Set the post's modification date.Methods inherited from class org.ametys.plugins.repository.jcr.DefaultAmetysObject
addAllowedGroups, addAllowedProfilesForAnonymous, addAllowedProfilesForAnyConnectedUser, addAllowedUsers, addDeniedGroups, addDeniedProfilesForAnonymous, addDeniedProfilesForAnyConnectedUser, addDeniedUsers, addLabel, checkpoint, copyNode, disallowInheritance, getAllLabels, getAllRevisions, getBaseNode, getBaseVersion, getLabels, getLabels, getNode, getProfilesForAnonymousAndAnyConnectedUser, getProfilesForGroups, getProfilesForUsers, getRevision, getRevisionTimestamp, getRevisionTimestamp, getUnversionedDataHolder, getVersionHistory, isInheritanceDisallowed, removeAllowedGroups, removeAllowedGroups, removeAllowedProfilesForAnonymous, removeAllowedProfilesForAnyConnectedUser, removeAllowedUsers, removeAllowedUsers, removeDeniedGroups, removeDeniedGroups, removeDeniedProfilesForAnonymous, removeDeniedProfilesForAnyConnectedUser, removeDeniedUsers, removeDeniedUsers, removeLabel, restoreFromLabel, restoreFromNode, restoreFromRevision, switchToLabel, switchToRevisionMethods inherited from class org.ametys.plugins.repository.jcr.SimpleAmetysObject
_getFactory, _invalidateName, _invalidateParentPath, getId, getMetadataHolder, getName, 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.ModifiableAmetysObject
needsSave, rename, revertChanges, saveChanges
-
Constructor Details
-
JCRPost
Creates anJCRPost.- Parameters:
node- the node backing thisAmetysObjectparentPath- the parentPath in the Ametys hierarchyfactory- the JCRPostFactory which created the AmetysObject
-
-
Method Details
-
getContent
Description copied from interface:ModifiablePostGet the content of the post- Specified by:
getContentin interfaceModifiablePost- Specified by:
getContentin interfacePost- Returns:
- The content of the post
-
getAuthor
Description copied from interface:PostGet the author of the post -
setAuthor
Description copied from interface:ModifiablePostSet the author of this post.- Specified by:
setAuthorin interfaceModifiablePost- Parameters:
author- the author
-
getCreationDate
Description copied from interface:PostGet the post's creation date.- Specified by:
getCreationDatein interfacePost- Returns:
- the post's creation date.
-
setCreationDate
Description copied from interface:ModifiablePostSet the post's creation date.- Specified by:
setCreationDatein interfaceModifiablePost- Parameters:
startDate- the post's creation date.
-
getLastModified
Description copied from interface:PostGet the post's last modification date.- Specified by:
getLastModifiedin interfacePost- Returns:
- the post's last modification date.
-
setLastModified
Description copied from interface:ModifiablePostSet the post's modification date.- Specified by:
setLastModifiedin interfaceModifiablePost- Parameters:
date- the last modification date to set.
-