public class JCRPost extends DefaultAmetysObject<JCRPostFactory> implements ModifiablePost
| Modifier and Type | Field and Description |
|---|---|
private static String |
METADATA_AUTHOR |
private static String |
METADATA_CONTENT |
private static String |
METADATA_CREATIONDATE |
private static String |
METADATA_LASTMODIFIED |
PROTECTED_PROPERTIES| Constructor and Description |
|---|
JCRPost(Node node,
String parentPath,
JCRPostFactory factory)
Creates an
JCRPost. |
| Modifier and Type | Method and Description |
|---|---|
UserIdentity |
getAuthor()
Get the author of the post
|
ModifiableRichText |
getContent()
Get the content of the post
|
Date |
getCreationDate()
Get the post's creation date.
|
Date |
getLastModified()
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.
|
addAllowedGroups, addAllowedProfilesForAnonymous, addAllowedProfilesForAnyConnectedUser, addAllowedUsers, addDeniedGroups, addDeniedProfilesForAnonymous, addDeniedProfilesForAnyConnectedUser, addDeniedUsers, addLabel, checkpoint, copyNode, getAllLabels, getAllowedGroups, getAllowedProfilesForAnonymous, getAllowedProfilesForAnyConnectedUser, getAllowedProfilesForGroups, getAllowedProfilesForUser, getAllowedProfilesForUsers, getAllowedUsers, getAllRevisions, getBaseNode, getBaseVersion, getDeniedGroups, getDeniedProfilesForAnonymous, getDeniedProfilesForAnyConnectedUser, getDeniedProfilesForGroups, getDeniedProfilesForUser, getDeniedProfilesForUsers, getDeniedUsers, getLabels, getLabels, getNode, getRevision, getRevisionTimestamp, getRevisionTimestamp, getUnversionedMetadataHolder, getVersionHistory, removeAllowedGroups, removeAllowedGroups, removeAllowedProfilesForAnonymous, removeAllowedProfilesForAnyConnectedUser, removeAllowedUsers, removeAllowedUsers, removeDeniedGroups, removeDeniedGroups, removeDeniedProfilesForAnonymous, removeDeniedProfilesForAnyConnectedUser, removeDeniedUsers, removeDeniedUsers, removeLabel, restoreFromLabel, restoreFromNode, restoreFromRevision, switchToLabel, switchToRevision_getFactory, _invalidateName, _invalidateParentPath, getId, getMetadataHolder, getName, getParent, getParentPath, getPath, needsSave, remove, rename, revertChanges, saveChangesequals, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetMetadataHolderneedsSave, rename, revertChanges, saveChangesequals, getId, getName, getParent, getParentPath, getPath, hashCodeprivate static final String METADATA_CONTENT
private static final String METADATA_AUTHOR
private static final String METADATA_CREATIONDATE
private static final String METADATA_LASTMODIFIED
public JCRPost(Node node, String parentPath, JCRPostFactory factory)
JCRPost.node - the node backing this AmetysObjectparentPath - the parentPath in the Ametys hierarchyfactory - the JCRPostFactory which created the AmetysObjectpublic ModifiableRichText getContent()
ModifiablePostgetContent in interface ModifiablePostgetContent in interface Postpublic UserIdentity getAuthor()
Postpublic void setAuthor(UserIdentity author)
ModifiablePostsetAuthor in interface ModifiablePostauthor - the authorpublic Date getCreationDate()
PostgetCreationDate in interface Postpublic void setCreationDate(Date startDate)
ModifiablePostsetCreationDate in interface ModifiablePoststartDate - the post's creation date.public Date getLastModified()
PostgetLastModified in interface Postpublic void setLastModified(Date date)
ModifiablePostsetLastModified in interface ModifiablePostdate - the last modification date to set.