Class AbstractWikiItem
java.lang.Object
fr.paris.lutece.plugins.wiki.business.item.AbstractWikiItem
- All Implemented Interfaces:
fr.paris.lutece.portal.service.rbac.RBACResource,Serializable,Cloneable
public abstract class AbstractWikiItem
extends Object
implements fr.paris.lutece.portal.service.rbac.RBACResource, Serializable, Cloneable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Clone the wiki itemabstract Set<WikiItemType>Get all allowed child item typesabstract Set<WikiItemType>Get all allowed parent item typesGet the full breadcrumb path of this item (e.g.Get the list of childrenGet the child item typegetCode()Get the wiki item codeGet the current revisionGet the creation dateGet the edit rolegetIcon()intgetId()Get the wiki item idGet the parent idintgetOrder()Get the orderGet the parent wiki itemGet the view URL for the parent of this itemGet the resource id for RBACabstract StringGet the resource typeGet the resource type code for RBACgetType()Get the wiki item typeGet the view roleGet the view URL for this itembooleanhasOrder()Check if the wiki item has an orderbooleanCheck if the wiki item is publishedvoidsetChildren(List<AbstractWikiItem> listChildren) Set the list of childrenvoidSet the wiki item codevoidsetCurrentRevision(Revision currentRevision) Set the current revisionvoidsetDateCreation(Timestamp dateCreation) Set the creation datevoidsetDateModification(Timestamp dateModification) Set the modification datevoidsetEditRole(String strEditRole) Set the edit rolevoidvoidsetId(int nId) Set the wiki item idvoidsetIdParent(Integer nIdParent) Set the parent idvoidsetIsPublished(boolean bIsPublished) Set the published statusvoidsetOrder(int order) Set the ordervoidsetType(WikiItemType type) Set the wiki item typevoidsetViewRole(String strViewRole) Set the view rolebooleanCheck if this wiki item type supports content in revisions
-
Constructor Details
-
AbstractWikiItem
public AbstractWikiItem()Default constructor
-
-
Method Details
-
getId
public int getId()Get the wiki item id- Returns:
- the wiki item id
-
setId
public void setId(int nId) Set the wiki item id- Parameters:
nId- the wiki item id
-
getCode
Get the wiki item code- Returns:
- the wiki item code
-
setCode
Set the wiki item code- Parameters:
strCode- the wiki item code
-
getIcon
-
setIcon
-
isPublished
public boolean isPublished()Check if the wiki item is published- Returns:
- true if published, false otherwise
-
setIsPublished
public void setIsPublished(boolean bIsPublished) Set the published status- Parameters:
bIsPublished- the published status
-
getViewRole
Get the view role- Returns:
- the view role
-
setViewRole
Set the view role- Parameters:
strViewRole- the view role
-
getEditRole
Get the edit role- Returns:
- the edit role
-
setEditRole
Set the edit role- Parameters:
strEditRole- the edit role
-
getType
Get the wiki item type- Returns:
- the wiki item type
-
setType
Set the wiki item type- Parameters:
type- the wiki item type
-
getIdParent
Get the parent id- Returns:
- the parent id
-
setIdParent
Set the parent id- Parameters:
nIdParent- the parent id
-
getDateCreation
Get the creation date- Returns:
- the creation date
-
setDateCreation
Set the creation date- Parameters:
dateCreation- the creation date
-
setDateModification
Set the modification date- Parameters:
dateModification- the modification date
-
getCurrentRevision
Get the current revision- Returns:
- the current revision
-
setCurrentRevision
Set the current revision- Parameters:
currentRevision- the current revision
-
getChildren
Get the list of children- Returns:
- the list of children
-
setChildren
Set the list of children- Parameters:
listChildren- the list of children
-
getOrder
public int getOrder()Get the order- Returns:
- the order
-
setOrder
public void setOrder(int order) Set the order- Parameters:
order- the order
-
hasOrder
public boolean hasOrder()Check if the wiki item has an order- Returns:
- true if has order, false otherwise
-
getParent
Get the parent wiki item- Returns:
- the parent wiki item or null if no parent
-
getBreadcrumb
Get the full breadcrumb path of this item (e.g. "Space > Category > Book > Chapter")- Returns:
- the breadcrumb path
-
getResourceTypeCode
Get the resource type code for RBAC- Specified by:
getResourceTypeCodein interfacefr.paris.lutece.portal.service.rbac.RBACResource- Returns:
- the resource type code
-
getResourceId
Get the resource id for RBAC- Specified by:
getResourceIdin interfacefr.paris.lutece.portal.service.rbac.RBACResource- Returns:
- the resource id
-
getResourceType
Get the resource type- Returns:
- the resource type
-
getChildType
Get the child item type- Returns:
- the child item type or null if no children
-
getAllowedChildTypes
Get all allowed child item types- Returns:
- the set of allowed child item types, empty set if no children allowed
-
getAllowedParentTypes
Get all allowed parent item types- Returns:
- the set of allowed parent item types, empty set if no parent allowed
-
supportsContent
public boolean supportsContent()Check if this wiki item type supports content in revisions- Returns:
- true if content is supported, false otherwise
-
getViewUrl
Get the view URL for this item- Returns:
- the view URL
-
getParentViewUrl
Get the view URL for the parent of this item- Returns:
- the parent view URL
-
clone
Clone the wiki item- Returns:
- a copy of the wiki item
-