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:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBlogPublication(BlogPublication blogPublication) Sets the BlogPublication listvoidaddContent(DocContent docContent) Sets the docConetnt listvoidSets the tag listvoiddeleteBlogPublication(BlogPublication blogPublication) delet the BlogPublicationvoiddeleteDocContent(int nIdDoc) delet the docContentvoiddelet the tagintReturns the blogc listReturns the ContentLabelReturns the CreationDateReturns the DescriptionReturns the list of DocContentReturns the EditCommentReturns the HtmlContentintgetId()Returns the IdbooleanReturns the LockedgetName()booleanReturns the ShareablegetTag()Returns the tag listReturns the UpdateDategetUrl()Returns the UrlgetUser()Returns the UserReturns the UserCreatorfr.paris.lutece.portal.business.user.AdminUserReturn the user creator informationsfr.paris.lutece.portal.business.user.AdminUserReturn the user informationsintReturns the VersionbooleanvoidsetArchived(boolean bIsArchived) set the blog is archivedvoidsetAttachedPortletId(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) shareablevoidSets the tag listvoidsetUpdateDate(Timestamp dateUpdateDate) Sets the UpdateDatevoidSets the UrlvoidSets the UservoidsetUserCreator(String strUserCreator) Sets the UserCreatorvoidsetVersion(int nVersion) Sets the VersionMethods inherited from class fr.paris.lutece.util.ReferenceItem
getCode, isChecked, setChecked, setCode, setName, toString
-
Field Details
-
PROPERTY_RESOURCE_TYPE
- See Also:
-
PERMISSION_VIEW
- See Also:
-
PERMISSION_CREATE
- See Also:
-
PERMISSION_MODIFY
- See Also:
-
PERMISSION_DELETE
- See Also:
-
PERMISSION_PUBLISH
- See Also:
-
PERMISSION_ARCHIVE
- See Also:
-
-
Constructor Details
-
Blog
public Blog()
-
-
Method Details
-
getId
public int getId()Returns the Id- Returns:
- The Id
-
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
Returns the ContentLabel- Returns:
- The ContentLabel
-
setContentLabel
Sets the ContentLabel- Parameters:
strContentLabel- The ContentLabel
-
getCreationDate
Returns the CreationDate- Returns:
- The CreationDate
-
setCreationDate
Sets the CreationDate- Parameters:
dateCreationDate- The CreationDate
-
getUpdateDate
Returns the UpdateDate- Returns:
- The UpdateDate
-
setUpdateDate
Sets the UpdateDate- Parameters:
dateUpdateDate- The UpdateDate
-
getHtmlContent
Returns the HtmlContent- Returns:
- The HtmlContent
-
setHtmlContent
Sets the HtmlContent- Parameters:
strHtmlContent- The HtmlContent
-
getUser
Returns the User- Returns:
- The User
-
setUser
Sets the User- Parameters:
strUser- The User
-
getUserCreator
Returns the UserCreator- Returns:
- The UserCreator
-
setUserCreator
Sets the UserCreator- Parameters:
strUserCreator- The UserCreator
-
setAttachedPortletId
public void setAttachedPortletId(int nAttachedPortletId) -
getAttachedPortletId
public int getAttachedPortletId() -
getEditComment
Returns the EditComment- Returns:
- The EditComment
-
setEditComment
Sets the EditComment- Parameters:
strEditComment- The EditComment
-
getDescription
Returns the Description- Returns:
- The Description
-
setDescription
Sets the Description- Parameters:
strDescription- The Description
-
getDocContent
Returns the list of DocContent- Returns:
- The DocContent
-
setDocContent
Sets the list DocContent- Parameters:
docContent- the list DocContent
-
addContent
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
Returns the Url- Returns:
- The Url
-
setUrl
Sets the Url- Parameters:
strUrl- The Url
-
getLocked
public boolean getLocked()Returns the Locked- Returns:
- The Locked
-
setLocked
public void setLocked(boolean bLocked) Locked- Parameters:
bLocked-
-
getTag
Returns the tag list- Returns:
- The tag list
-
setTag
Sets the tag list- Parameters:
tag- list The tag list
-
addTag
Sets the tag list- Parameters:
tag- list The tag list
-
deleteTag
delet the tag- Parameters:
tag- The tag
-
getBlogPublication
Returns the blogc list- Returns:
- The BlogPublication list
-
setBlogPublication
Sets the BlogPublication list- Parameters:
blogPublication- list The blogPublication list
-
addBlogPublication
Sets the BlogPublication list- Parameters:
blogPublication- list The BlogPublication list
-
deleteBlogPublication
delet the BlogPublication- Parameters:
blogPublication- The BlogPublication
-
getExtendableResourceDescription
- Specified by:
getExtendableResourceDescriptionin interfacefr.paris.lutece.portal.service.resource.IExtendableResource
-
getExtendableResourceImageUrl
- Specified by:
getExtendableResourceImageUrlin interfacefr.paris.lutece.portal.service.resource.IExtendableResource
-
getExtendableResourceName
- Specified by:
getExtendableResourceNamein interfacefr.paris.lutece.portal.service.resource.IExtendableResource
-
getExtendableResourceType
- Specified by:
getExtendableResourceTypein interfacefr.paris.lutece.portal.service.resource.IExtendableResource
-
getIdExtendableResource
- Specified by:
getIdExtendableResourcein interfacefr.paris.lutece.portal.service.resource.IExtendableResource
-
getResourceId
- Specified by:
getResourceIdin interfacefr.paris.lutece.portal.service.rbac.RBACResource
-
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-
-