|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stratelia.webactiv.kmelia.model.KmeliaPublication
public class KmeliaPublication
A publication as defined in a Kmelia component. A publication in Kmelia can be positionned in the PDC, it can have attachments and it can be commented.
Field Summary | |
---|---|
boolean |
read
|
Method Summary | |
---|---|
static KmeliaPublication |
aKmeliaPublicationFromCompleteDetail(com.stratelia.webactiv.util.publication.model.CompletePublication detail)
Gets the Kmelia publication from the specified complete publication detail. |
static KmeliaPublication |
aKmeliaPublicationFromDetail(com.stratelia.webactiv.util.publication.model.PublicationDetail detail)
Gets the Kmelia publication from the specified publication detail. |
static KmeliaPublication |
aKmeliaPublicationFromDetail(com.stratelia.webactiv.util.publication.model.PublicationDetail detail,
int rank)
|
static KmeliaPublication |
aKmeliaPublicationWithPk(com.stratelia.webactiv.util.publication.model.PublicationPK pk)
Gets the Kmelia publication with the specified primary key identifying it uniquely. |
KmeliaPublication |
asAlias()
Sets this Kmelia publication as an alias one. |
boolean |
canBeAccessedBy(com.stratelia.webactiv.beans.admin.UserDetail user)
Is the specified user can access this publication? |
boolean |
equals(Object obj)
|
List<com.silverpeas.comment.model.Comment> |
getComments()
Gets the comments on this publication. |
com.stratelia.webactiv.util.publication.model.CompletePublication |
getCompleteDetail()
Gets the complete detail about this publication. |
String |
getComponentInstanceId()
|
String |
getContributionType()
|
Date |
getCreationDate()
|
com.stratelia.webactiv.beans.admin.UserDetail |
getCreator()
Gets the creator of this publication (the initial author). |
String |
getDescription()
|
com.stratelia.webactiv.util.publication.model.PublicationDetail |
getDetail()
Gets the details about this publication. |
String |
getId()
Gets the unique identifier of this publication. |
com.stratelia.webactiv.beans.admin.UserDetail |
getLastModifier()
Gets the user that has lastly modified this publication. |
int |
getNbAccess()
|
int |
getNumberOfComments()
Get the number of comments on this publication |
List<com.stratelia.silverpeas.pdc.model.ClassifyPosition> |
getPDCPositions()
Gets the positions in the PDC of this publication. |
com.stratelia.webactiv.util.publication.model.PublicationPK |
getPk()
Gets the primary key of this publication. |
int |
getRank()
|
String |
getSilverpeasContentId()
|
String |
getTitle()
|
String |
getURL()
Gets the complete URL at which this publication is located. |
int |
hashCode()
|
boolean |
isAlias()
Is this publication an alias of an existing Kmelia publication? |
void |
setRank(int rank)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public boolean read
Method Detail |
---|
public static KmeliaPublication aKmeliaPublicationWithPk(com.stratelia.webactiv.util.publication.model.PublicationPK pk)
pk
- the primary key of the publication to get.
public static KmeliaPublication aKmeliaPublicationFromDetail(com.stratelia.webactiv.util.publication.model.PublicationDetail detail)
detail
- the detail about the publication to get.
public static KmeliaPublication aKmeliaPublicationFromDetail(com.stratelia.webactiv.util.publication.model.PublicationDetail detail, int rank)
public static KmeliaPublication aKmeliaPublicationFromCompleteDetail(com.stratelia.webactiv.util.publication.model.CompletePublication detail)
detail
- the complete detail about the publication to get.
public KmeliaPublication asAlias()
public boolean isAlias()
public com.stratelia.webactiv.util.publication.model.PublicationPK getPk()
public String getId()
getId
in interface com.silverpeas.SilverpeasContent
public String getURL()
public com.stratelia.webactiv.util.publication.model.PublicationDetail getDetail()
public com.stratelia.webactiv.util.publication.model.CompletePublication getCompleteDetail()
public com.stratelia.webactiv.beans.admin.UserDetail getCreator()
getCreator
in interface com.silverpeas.SilverpeasContent
public com.stratelia.webactiv.beans.admin.UserDetail getLastModifier()
public List<com.silverpeas.comment.model.Comment> getComments()
public List<com.stratelia.silverpeas.pdc.model.ClassifyPosition> getPDCPositions()
public int getNbAccess()
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String getComponentInstanceId()
getComponentInstanceId
in interface com.silverpeas.SilverpeasContent
public String getSilverpeasContentId()
getSilverpeasContentId
in interface com.silverpeas.SilverpeasContent
public Date getCreationDate()
getCreationDate
in interface com.silverpeas.SilverpeasContent
public String getTitle()
getTitle
in interface com.silverpeas.SilverpeasContent
public String getDescription()
getDescription
in interface com.silverpeas.SilverpeasContent
public String getContributionType()
getContributionType
in interface com.silverpeas.SilverpeasContent
public boolean canBeAccessedBy(com.stratelia.webactiv.beans.admin.UserDetail user)
canBeAccessedBy
in interface com.silverpeas.SilverpeasContent
user
- a user in Silverpeas.
public void setRank(int rank)
public int getRank()
public int getNumberOfComments()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |