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,java.io.Serializable
public class Blog extends fr.paris.lutece.util.ReferenceItem implements java.io.Serializable, fr.paris.lutece.portal.service.resource.IExtendableResource, fr.paris.lutece.portal.service.rbac.RBACResourceThis is the business class for the object Blog- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPERMISSION_ARCHIVEstatic java.lang.StringPERMISSION_CREATEstatic java.lang.StringPERMISSION_DELETEstatic java.lang.StringPERMISSION_MODIFYstatic java.lang.StringPERMISSION_PUBLISHstatic java.lang.StringPERMISSION_VIEWstatic java.lang.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()java.util.List<BlogPublication>getBlogPublication()Returns the blogc listjava.lang.StringgetContentLabel()Returns the ContentLabeljava.sql.TimestampgetCreationDate()Returns the CreationDatejava.lang.StringgetDescription()Returns the Descriptionjava.util.List<DocContent>getDocContent()Returns the list of DocContentjava.lang.StringgetEditComment()Returns the EditCommentjava.lang.StringgetExtendableResourceDescription()java.lang.StringgetExtendableResourceImageUrl()java.lang.StringgetExtendableResourceName()java.lang.StringgetExtendableResourceType()java.lang.StringgetHtmlContent()Returns the HtmlContentintgetId()Returns the Idjava.lang.StringgetIdExtendableResource()booleangetLocked()Returns the Lockedjava.lang.StringgetName()java.lang.StringgetResourceId()java.lang.StringgetResourceTypeCode()booleangetShareable()Returns the Shareablejava.util.List<Tag>getTag()Returns the tag listjava.sql.TimestampgetUpdateDate()Returns the UpdateDatejava.lang.StringgetUrl()Returns the Urljava.lang.StringgetUser()Returns the Userjava.lang.StringgetUserCreator()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 VersionbooleanisArchived()voidsetArchived(boolean bIsArchived)set the blog is archivedvoidsetAttachedPortletId(int nAttachedPortletId)voidsetBlogPublication(java.util.List<BlogPublication> blogPublication)Sets the BlogPublication listvoidsetContentLabel(java.lang.String strContentLabel)Sets the ContentLabelvoidsetCreationDate(java.sql.Timestamp dateCreationDate)Sets the CreationDatevoidsetDescription(java.lang.String strDescription)Sets the DescriptionvoidsetDocContent(java.util.List<DocContent> docContent)Sets the list DocContentvoidsetEditComment(java.lang.String strEditComment)Sets the EditCommentvoidsetHtmlContent(java.lang.String strHtmlContent)Sets the HtmlContentvoidsetId(int nId)Sets the IdvoidsetLocked(boolean bLocked)LockedvoidsetShareable(boolean bShareable)shareablevoidsetTag(java.util.List<Tag> tag)Sets the tag listvoidsetUpdateDate(java.sql.Timestamp dateUpdateDate)Sets the UpdateDatevoidsetUrl(java.lang.String strUrl)Sets the UrlvoidsetUser(java.lang.String strUser)Sets the UservoidsetUserCreator(java.lang.String strUserCreator)Sets the UserCreatorvoidsetVersion(int nVersion)Sets the Version
-
-
-
Field Detail
-
PROPERTY_RESOURCE_TYPE
public static final java.lang.String PROPERTY_RESOURCE_TYPE
- See Also:
- Constant Field Values
-
PERMISSION_VIEW
public static final java.lang.String PERMISSION_VIEW
- See Also:
- Constant Field Values
-
PERMISSION_CREATE
public static final java.lang.String PERMISSION_CREATE
- See Also:
- Constant Field Values
-
PERMISSION_MODIFY
public static final java.lang.String PERMISSION_MODIFY
- See Also:
- Constant Field Values
-
PERMISSION_DELETE
public static final java.lang.String PERMISSION_DELETE
- See Also:
- Constant Field Values
-
PERMISSION_PUBLISH
public static final java.lang.String PERMISSION_PUBLISH
- See Also:
- Constant Field Values
-
PERMISSION_ARCHIVE
public static final java.lang.String PERMISSION_ARCHIVE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
public int getId()
Returns the Id- Returns:
- The Id
-
getName
public java.lang.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 java.lang.String getContentLabel()
Returns the ContentLabel- Returns:
- The ContentLabel
-
setContentLabel
public void setContentLabel(java.lang.String strContentLabel)
Sets the ContentLabel- Parameters:
strContentLabel- The ContentLabel
-
getCreationDate
public java.sql.Timestamp getCreationDate()
Returns the CreationDate- Returns:
- The CreationDate
-
setCreationDate
public void setCreationDate(java.sql.Timestamp dateCreationDate)
Sets the CreationDate- Parameters:
dateCreationDate- The CreationDate
-
getUpdateDate
public java.sql.Timestamp getUpdateDate()
Returns the UpdateDate- Returns:
- The UpdateDate
-
setUpdateDate
public void setUpdateDate(java.sql.Timestamp dateUpdateDate)
Sets the UpdateDate- Parameters:
dateUpdateDate- The UpdateDate
-
getHtmlContent
public java.lang.String getHtmlContent()
Returns the HtmlContent- Returns:
- The HtmlContent
-
setHtmlContent
public void setHtmlContent(java.lang.String strHtmlContent)
Sets the HtmlContent- Parameters:
strHtmlContent- The HtmlContent
-
getUser
public java.lang.String getUser()
Returns the User- Returns:
- The User
-
setUser
public void setUser(java.lang.String strUser)
Sets the User- Parameters:
strUser- The User
-
getUserCreator
public java.lang.String getUserCreator()
Returns the UserCreator- Returns:
- The UserCreator
-
setUserCreator
public void setUserCreator(java.lang.String strUserCreator)
Sets the UserCreator- Parameters:
strUserCreator- The UserCreator
-
setAttachedPortletId
public void setAttachedPortletId(int nAttachedPortletId)
-
getAttachedPortletId
public int getAttachedPortletId()
-
getEditComment
public java.lang.String getEditComment()
Returns the EditComment- Returns:
- The EditComment
-
setEditComment
public void setEditComment(java.lang.String strEditComment)
Sets the EditComment- Parameters:
strEditComment- The EditComment
-
getDescription
public java.lang.String getDescription()
Returns the Description- Returns:
- The Description
-
setDescription
public void setDescription(java.lang.String strDescription)
Sets the Description- Parameters:
strDescription- The Description
-
getDocContent
public java.util.List<DocContent> getDocContent()
Returns the list of DocContent- Returns:
- The DocContent
-
setDocContent
public void setDocContent(java.util.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 java.lang.String getUrl()
Returns the Url- Returns:
- The Url
-
setUrl
public void setUrl(java.lang.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-
-
getTag
public java.util.List<Tag> getTag()
Returns the tag list- Returns:
- The tag list
-
setTag
public void setTag(java.util.List<Tag> tag)
Sets the tag list- Parameters:
tag- list The tag list
-
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 java.util.List<BlogPublication> getBlogPublication()
Returns the blogc list- Returns:
- The BlogPublication list
-
setBlogPublication
public void setBlogPublication(java.util.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 java.lang.String getExtendableResourceDescription()
- Specified by:
getExtendableResourceDescriptionin interfacefr.paris.lutece.portal.service.resource.IExtendableResource
-
getExtendableResourceImageUrl
public java.lang.String getExtendableResourceImageUrl()
- Specified by:
getExtendableResourceImageUrlin interfacefr.paris.lutece.portal.service.resource.IExtendableResource
-
getExtendableResourceName
public java.lang.String getExtendableResourceName()
- Specified by:
getExtendableResourceNamein interfacefr.paris.lutece.portal.service.resource.IExtendableResource
-
getExtendableResourceType
public java.lang.String getExtendableResourceType()
- Specified by:
getExtendableResourceTypein interfacefr.paris.lutece.portal.service.resource.IExtendableResource
-
getIdExtendableResource
public java.lang.String getIdExtendableResource()
- Specified by:
getIdExtendableResourcein interfacefr.paris.lutece.portal.service.resource.IExtendableResource
-
getResourceId
public java.lang.String getResourceId()
- Specified by:
getResourceIdin interfacefr.paris.lutece.portal.service.rbac.RBACResource
-
getResourceTypeCode
public java.lang.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
-
isArchived
public boolean isArchived()
- Returns:
- the boolean value of the blog is archived
-
setArchived
public void setArchived(boolean bIsArchived)
set the blog is archived- Parameters:
bIsArchived-
-
-