Class Blog
- java.lang.Object
-
- fr.paris.lutece.util.ReferenceItem
-
- fr.paris.lutece.plugins.blog.business.Blog
-
- All Implemented Interfaces:
fr.paris.lutece.portal.service.rbac.RBACResource,fr.paris.lutece.portal.service.resource.IExtendableResource,Serializable
public class Blog extends fr.paris.lutece.util.ReferenceItem implements Serializable, fr.paris.lutece.portal.service.resource.IExtendableResource, fr.paris.lutece.portal.service.rbac.RBACResource
This is the business class for the object Blog- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringPERMISSION_CREATEstatic StringPERMISSION_DELETEstatic StringPERMISSION_MODIFYstatic StringPERMISSION_PUBLISHstatic StringPERMISSION_VIEWstatic StringPROPERTY_RESOURCE_TYPE
-
Constructor Summary
Constructors Constructor Description Blog()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBlogPublication(BlogPublication blogPublication)Sets the BlogPublication listvoidaddContent(DocContent docContent)Sets the docConetnt listvoidaddTag(Tag tag)Sets the tag listvoiddeleteBlogPublication(BlogPublication blogPublication)delet the BlogPublicationvoiddeleteDocContent(int nIdDoc)delet the docContentvoiddeleteTag(Tag tag)delet the tagintgetAttachedPortletId()List<BlogPublication>getBlogPublication()Returns the blogc listStringgetContentLabel()Returns the ContentLabelTimestampgetCreationDate()Returns the CreationDateStringgetDescription()Returns the DescriptionList<DocContent>getDocContent()Returns the list of DocContentStringgetEditComment()Returns the EditCommentStringgetExtendableResourceDescription()StringgetExtendableResourceImageUrl()StringgetExtendableResourceName()StringgetExtendableResourceType()StringgetHtmlContent()Returns the HtmlContentintgetId()Returns the IdStringgetIdExtendableResource()booleangetLocked()Returns the LockedStringgetName()StringgetResourceId()StringgetResourceTypeCode()booleangetShareable()Returns the ShareableList<Tag>getTag()Returns the tag listTimestampgetUpdateDate()Returns the UpdateDateStringgetUrl()Returns the UrlStringgetUser()Returns the UserStringgetUserCreator()Returns the UserCreatorfr.paris.lutece.portal.business.user.AdminUsergetUserCreatorInfos()Return the user creator informationsfr.paris.lutece.portal.business.user.AdminUsergetUserInfos()Return the user informationsintgetVersion()Returns the VersionvoidsetAttachedPortletId(int nAttachedPortletId)voidsetBlogPublication(List<BlogPublication> blogPublication)Sets the BlogPublication listvoidsetContentLabel(String strContentLabel)Sets the ContentLabelvoidsetCreationDate(Timestamp dateCreationDate)Sets the CreationDatevoidsetDescription(String strDescription)Sets the DescriptionvoidsetDocContent(List<DocContent> docContent)Sets the list DocContentvoidsetEditComment(String strEditComment)Sets the EditCommentvoidsetHtmlContent(String strHtmlContent)Sets the HtmlContentvoidsetId(int nId)Sets the IdvoidsetLocked(boolean bLocked)LockedvoidsetShareable(boolean bShareable)shareablevoidsetTag(List<Tag> tag)Sets the tag listvoidsetUpdateDate(Timestamp dateUpdateDate)Sets the UpdateDatevoidsetUrl(String strUrl)Sets the UrlvoidsetUser(String strUser)Sets the UservoidsetUserCreator(String strUserCreator)Sets the UserCreatorvoidsetVersion(int nVersion)Sets the Version
-
-
-
Field Detail
-
PROPERTY_RESOURCE_TYPE
public static final String PROPERTY_RESOURCE_TYPE
- See Also:
- Constant Field Values
-
PERMISSION_VIEW
public static final String PERMISSION_VIEW
- See Also:
- Constant Field Values
-
PERMISSION_CREATE
public static final String PERMISSION_CREATE
- See Also:
- Constant Field Values
-
PERMISSION_MODIFY
public static final String PERMISSION_MODIFY
- See Also:
- Constant Field Values
-
PERMISSION_DELETE
public static final String PERMISSION_DELETE
- See Also:
- Constant Field Values
-
PERMISSION_PUBLISH
public static final String PERMISSION_PUBLISH
- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
public int getId()
Returns the Id- Returns:
- The Id
-
getName
public String getName()
- Overrides:
getNamein classfr.paris.lutece.util.ReferenceItem
-
setId
public void setId(int nId)
Sets the Id- Parameters:
nId- The Id
-
getVersion
public int getVersion()
Returns the Version- Returns:
- The Version
-
setVersion
public void setVersion(int nVersion)
Sets the Version- Parameters:
nVersion- The Version
-
getContentLabel
public String getContentLabel()
Returns the ContentLabel- Returns:
- The ContentLabel
-
setContentLabel
public void setContentLabel(String strContentLabel)
Sets the ContentLabel- Parameters:
strContentLabel- The ContentLabel
-
getCreationDate
public Timestamp getCreationDate()
Returns the CreationDate- Returns:
- The CreationDate
-
setCreationDate
public void setCreationDate(Timestamp dateCreationDate)
Sets the CreationDate- Parameters:
dateCreationDate- The CreationDate
-
getUpdateDate
public Timestamp getUpdateDate()
Returns the UpdateDate- Returns:
- The UpdateDate
-
setUpdateDate
public void setUpdateDate(Timestamp dateUpdateDate)
Sets the UpdateDate- Parameters:
dateUpdateDate- The UpdateDate
-
getHtmlContent
public String getHtmlContent()
Returns the HtmlContent- Returns:
- The HtmlContent
-
setHtmlContent
public void setHtmlContent(String strHtmlContent)
Sets the HtmlContent- Parameters:
strHtmlContent- The HtmlContent
-
getUser
public String getUser()
Returns the User- Returns:
- The User
-
setUser
public void setUser(String strUser)
Sets the User- Parameters:
strUser- The User
-
getUserCreator
public String getUserCreator()
Returns the UserCreator- Returns:
- The UserCreator
-
setUserCreator
public void setUserCreator(String strUserCreator)
Sets the UserCreator- Parameters:
strUserCreator- The UserCreator
-
setAttachedPortletId
public void setAttachedPortletId(int nAttachedPortletId)
-
getAttachedPortletId
public int getAttachedPortletId()
-
getEditComment
public String getEditComment()
Returns the EditComment- Returns:
- The EditComment
-
setEditComment
public void setEditComment(String strEditComment)
Sets the EditComment- Parameters:
strEditComment- The EditComment
-
getDescription
public String getDescription()
Returns the Description- Returns:
- The Description
-
setDescription
public void setDescription(String strDescription)
Sets the Description- Parameters:
strDescription- The Description
-
getDocContent
public List<DocContent> getDocContent()
Returns the list of DocContent- Returns:
- The DocContent
-
setDocContent
public void setDocContent(List<DocContent> docContent)
Sets the list DocContent- Parameters:
docContent- the list DocContent
-
addContent
public void addContent(DocContent docContent)
Sets the docConetnt list- Parameters:
docContent- list The docContent list
-
deleteDocContent
public void deleteDocContent(int nIdDoc)
delet the docContent- Parameters:
nIdDoc- The docContent Id
-
getUrl
public String getUrl()
Returns the Url- Returns:
- The Url
-
setUrl
public void setUrl(String strUrl)
Sets the Url- Parameters:
strUrl- The Url
-
getShareable
public boolean getShareable()
Returns the Shareable- Returns:
- The Shareable
-
setShareable
public void setShareable(boolean bShareable)
shareable- Parameters:
bShareable-
-
getLocked
public boolean getLocked()
Returns the Locked- Returns:
- The Locked
-
setLocked
public void setLocked(boolean bLocked)
Locked- Parameters:
bLocked-
-
addTag
public void addTag(Tag tag)
Sets the tag list- Parameters:
tag- list The tag list
-
deleteTag
public void deleteTag(Tag tag)
delet the tag- Parameters:
tag- The tag
-
getBlogPublication
public List<BlogPublication> getBlogPublication()
Returns the blogc list- Returns:
- The BlogPublication list
-
setBlogPublication
public void setBlogPublication(List<BlogPublication> blogPublication)
Sets the BlogPublication list- Parameters:
blogPublication- list The blogPublication list
-
addBlogPublication
public void addBlogPublication(BlogPublication blogPublication)
Sets the BlogPublication list- Parameters:
blogPublication- list The BlogPublication list
-
deleteBlogPublication
public void deleteBlogPublication(BlogPublication blogPublication)
delet the BlogPublication- Parameters:
blogPublication- The BlogPublication
-
getExtendableResourceDescription
public String getExtendableResourceDescription()
- Specified by:
getExtendableResourceDescriptionin interfacefr.paris.lutece.portal.service.resource.IExtendableResource
-
getExtendableResourceImageUrl
public String getExtendableResourceImageUrl()
- Specified by:
getExtendableResourceImageUrlin interfacefr.paris.lutece.portal.service.resource.IExtendableResource
-
getExtendableResourceName
public String getExtendableResourceName()
- Specified by:
getExtendableResourceNamein interfacefr.paris.lutece.portal.service.resource.IExtendableResource
-
getExtendableResourceType
public String getExtendableResourceType()
- Specified by:
getExtendableResourceTypein interfacefr.paris.lutece.portal.service.resource.IExtendableResource
-
getIdExtendableResource
public String getIdExtendableResource()
- Specified by:
getIdExtendableResourcein interfacefr.paris.lutece.portal.service.resource.IExtendableResource
-
getResourceId
public String getResourceId()
- Specified by:
getResourceIdin interfacefr.paris.lutece.portal.service.rbac.RBACResource
-
getResourceTypeCode
public String getResourceTypeCode()
- Specified by:
getResourceTypeCodein interfacefr.paris.lutece.portal.service.rbac.RBACResource
-
getUserInfos
public fr.paris.lutece.portal.business.user.AdminUser getUserInfos()
Return the user informations- Returns:
- AdminUser
-
getUserCreatorInfos
public fr.paris.lutece.portal.business.user.AdminUser getUserCreatorInfos()
Return the user creator informations- Returns:
- AdminUser
-
-