|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.silverpeas.comment.model.Comment
public class Comment
This object contains the description of document
Field Summary | |
---|---|
static String |
CLASSIFIED_RESOURCETYPE
|
static String |
CONTRIBUTION_TYPE
|
static String |
NEWS_RESOURCETYPE
|
static String |
PHOTO_RESOURCETYPE
|
static String |
PUBLICATION_RESOURCETYPE
|
static String |
SCHEDULEEVENT_RESOURCETYPE
|
static String |
SOUND_RESOURCETYPE
|
static String |
STREAMING_RESOURCETYPE
|
static String |
SUGGESTION_RESOURCETYPE
|
static String |
VIDEO_RESOURCETYPE
|
Constructor Summary | |
---|---|
Comment(CommentPK pk,
String resourceType,
WAPrimaryKey foreign_key,
int owner_id,
String owner,
String message,
Date creation_date,
Date modification_date)
|
|
Comment(CommentPK pk,
String resourceType,
WAPrimaryKey contentPk,
String authorId,
String message,
Date creationDate,
Date modificationDate)
|
Method Summary | |
---|---|
boolean |
canBeAccessedBy(UserDetail user)
Is the specified user can access this comment? |
CommentPK |
getCommentPK()
|
String |
getComponentInstanceId()
Gets the unique identifier of the Silverpeas component instance that manages this content. |
String |
getContributionType()
Gets the type of this content. |
Date |
getCreationDate()
Gets the date at which this content was created. |
UserDetail |
getCreator()
Gets the author that has created this content. |
String |
getDescription()
Gets the description of this content if any. |
WAPrimaryKey |
getForeignKey()
|
String |
getId()
Gets the identifier of this content in the Silverpeas component providing it. |
String |
getMessage()
|
Date |
getModificationDate()
|
String |
getOwner()
|
UserDetail |
getOwnerDetail()
|
int |
getOwnerId()
|
String |
getResourceType()
|
String |
getSilverpeasContentId()
Gets the unique identifier of this content among all the contents managed in the Silverpeas collaborative portal. |
String |
getTitle()
Gets the title of this content if any. |
void |
setCommentPK(CommentPK pk)
|
void |
setCreationDate(Date creation_date)
|
void |
setForeignKey(WAPrimaryKey foreign_key)
|
void |
setMessage(String message)
|
void |
setModificationDate(Date modification_date)
|
void |
setOwnerDetail(UserDetail ownerDetail)
|
void |
setResourceType(String resourceType)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String CONTRIBUTION_TYPE
public static final String PUBLICATION_RESOURCETYPE
public static final String NEWS_RESOURCETYPE
public static final String CLASSIFIED_RESOURCETYPE
public static final String SCHEDULEEVENT_RESOURCETYPE
public static final String SUGGESTION_RESOURCETYPE
public static final String PHOTO_RESOURCETYPE
public static final String VIDEO_RESOURCETYPE
public static final String SOUND_RESOURCETYPE
public static final String STREAMING_RESOURCETYPE
Constructor Detail |
---|
public Comment(CommentPK pk, String resourceType, WAPrimaryKey foreign_key, int owner_id, String owner, String message, Date creation_date, Date modification_date)
public Comment(CommentPK pk, String resourceType, WAPrimaryKey contentPk, String authorId, String message, Date creationDate, Date modificationDate)
Method Detail |
---|
public void setCommentPK(CommentPK pk)
public CommentPK getCommentPK()
public void setResourceType(String resourceType)
public String getResourceType()
public void setForeignKey(WAPrimaryKey foreign_key)
public WAPrimaryKey getForeignKey()
public int getOwnerId()
public String getOwner()
public void setMessage(String message)
public String getMessage()
public void setCreationDate(Date creation_date)
public Date getCreationDate()
SilverpeasContent
getCreationDate
in interface SilverpeasContent
public void setModificationDate(Date modification_date)
public Date getModificationDate()
public UserDetail getOwnerDetail()
public void setOwnerDetail(UserDetail ownerDetail)
public String toString()
toString
in class Object
public UserDetail getCreator()
SilverpeasContent
getCreator
in interface SilverpeasContent
public String getTitle()
SilverpeasContent
getTitle
in interface SilverpeasContent
public String getDescription()
SilverpeasContent
getDescription
in interface SilverpeasContent
public String getId()
SilverpeasContent
getId
in interface SilverpeasContent
public String getComponentInstanceId()
SilverpeasContent
getComponentInstanceId
in interface SilverpeasContent
public String getContributionType()
SilverpeasContent
getContributionType
in interface SilverpeasContent
public boolean canBeAccessedBy(UserDetail user)
canBeAccessedBy
in interface SilverpeasContent
user
- a user in Silverpeas.
public String getSilverpeasContentId()
SilverpeasContent
getSilverpeasContentId
in interface SilverpeasContent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |