|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.silverpeas.publication.web.PublicationEntity
public class PublicationEntity
Web entity representing a publication that can be serialized into a given media type (JSON, XML).
Method Summary | |
---|---|
static PublicationEntity |
fromPublicationDetail(PublicationDetail publication,
URI uri)
Creates a new publication entity from the specified publication. |
protected List<AttachmentEntity> |
getAttachments()
|
String |
getComponentId()
Gets the identifier of the Silverpeas component instance which the publication belongs to. |
String |
getDescription()
|
String |
getId()
Gets the unique identifier of the publication. |
int |
getImportance()
|
String |
getKeywords()
|
String |
getName()
|
Date |
getUpdateDate()
|
URI |
getURI()
Gets the URI at which this resource is published and can be accessed. |
protected void |
setAttachments(List<AttachmentEntity> attachments)
|
void |
setCreator(UserDetail user)
|
void |
setDescription(String description)
|
void |
setImportance(int importance)
|
void |
setKeywords(String keywords)
|
void |
setName(String name)
|
void |
setUpdateDate(Date updateDate)
|
void |
setUri(URI uri)
|
PublicationDetail |
toPublicationDetail()
|
PublicationEntity |
withAttachments(Collection<SimpleDocument> attachmentDetails)
|
PublicationEntity |
withSharedContent(SharingContext context)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public URI getURI()
Exposable
getURI
in interface Exposable
public String getId()
public String getComponentId()
public static PublicationEntity fromPublicationDetail(PublicationDetail publication, URI uri)
publication
- the publication to entitify.public PublicationEntity withAttachments(Collection<SimpleDocument> attachmentDetails)
public PublicationEntity withSharedContent(SharingContext context)
public void setUri(URI uri)
public void setName(String name)
public String getName()
public void setDescription(String description)
public String getDescription()
public void setKeywords(String keywords)
public String getKeywords()
public int getImportance()
public void setImportance(int importance)
public void setUpdateDate(Date updateDate)
public Date getUpdateDate()
public void setCreator(UserDetail user)
protected void setAttachments(List<AttachmentEntity> attachments)
protected List<AttachmentEntity> getAttachments()
public PublicationDetail toPublicationDetail()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |