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
ConstructorDescriptionJCRPost
(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.void
setAuthor
(UserIdentity author) Set the author of this post.void
setCreationDate
(Date startDate) Set the post's creation date.void
setLastModified
(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, switchToRevision
Methods inherited from class org.ametys.plugins.repository.jcr.SimpleAmetysObject
_getFactory, _invalidateName, _invalidateParentPath, getId, getMetadataHolder, getName, 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.ModifiableAmetysObject
needsSave, rename, revertChanges, saveChanges
-
Constructor Details
-
JCRPost
Creates anJCRPost
.- Parameters:
node
- the node backing thisAmetysObject
parentPath
- the parentPath in the Ametys hierarchyfactory
- the JCRPostFactory which created the AmetysObject
-
-
Method Details
-
getContent
Description copied from interface:ModifiablePost
Get the content of the post- Specified by:
getContent
in interfaceModifiablePost
- Specified by:
getContent
in interfacePost
- Returns:
- The content of the post
-
getAuthor
Description copied from interface:Post
Get the author of the post -
setAuthor
Description copied from interface:ModifiablePost
Set the author of this post.- Specified by:
setAuthor
in interfaceModifiablePost
- Parameters:
author
- the author
-
getCreationDate
Description copied from interface:Post
Get the post's creation date.- Specified by:
getCreationDate
in interfacePost
- Returns:
- the post's creation date.
-
setCreationDate
Description copied from interface:ModifiablePost
Set the post's creation date.- Specified by:
setCreationDate
in interfaceModifiablePost
- Parameters:
startDate
- the post's creation date.
-
getLastModified
Description copied from interface:Post
Get the post's last modification date.- Specified by:
getLastModified
in interfacePost
- Returns:
- the post's last modification date.
-
setLastModified
Description copied from interface:ModifiablePost
Set the post's modification date.- Specified by:
setLastModified
in interfaceModifiablePost
- Parameters:
date
- the last modification date to set.
-