Class Chapter
java.lang.Object
fr.paris.lutece.plugins.wiki.business.item.AbstractWikiItem
fr.paris.lutece.plugins.wiki.business.item.impl.Chapter
- All Implemented Interfaces:
fr.paris.lutece.portal.service.rbac.RBACResource,Serializable,Cloneable
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Clone the wiki itemGet all allowed child item typesGet all allowed parent item typesGet the child item typeintgetOrder()Get the orderGet the resource typebooleanhasOrder()Check if the wiki item has an ordervoidsetOrder(int order) Set the orderbooleanCheck if this wiki item type supports content in revisionsMethods inherited from class fr.paris.lutece.plugins.wiki.business.item.AbstractWikiItem
getBreadcrumb, getChildren, getCode, getCurrentRevision, getDateCreation, getEditRole, getIcon, getId, getIdParent, getParent, getParentViewUrl, getResourceId, getResourceTypeCode, getType, getViewRole, getViewUrl, isPublished, setChildren, setCode, setCurrentRevision, setDateCreation, setDateModification, setEditRole, setIcon, setId, setIdParent, setIsPublished, setType, setViewRole
-
Field Details
-
RESOURCE_TYPE
- See Also:
-
-
Constructor Details
-
Chapter
public Chapter()Constructor -
Chapter
Copy constructor- Parameters:
chapter- the chapter to copy
-
-
Method Details
-
getResourceType
Get the resource type- Specified by:
getResourceTypein classAbstractWikiItem- Returns:
- the resource type
-
getOrder
public int getOrder()Get the order- Overrides:
getOrderin classAbstractWikiItem- Returns:
- the order
-
setOrder
public void setOrder(int order) Set the order- Overrides:
setOrderin classAbstractWikiItem- Parameters:
order- the order
-
hasOrder
public boolean hasOrder()Check if the wiki item has an order- Overrides:
hasOrderin classAbstractWikiItem- Returns:
- true if has order, false otherwise
-
getChildType
Get the child item type- Overrides:
getChildTypein classAbstractWikiItem- Returns:
- the child item type or null if no children
-
getAllowedChildTypes
Get all allowed child item types- Specified by:
getAllowedChildTypesin classAbstractWikiItem- Returns:
- the set of allowed child item types, empty set if no children allowed
-
getAllowedParentTypes
Get all allowed parent item types- Specified by:
getAllowedParentTypesin classAbstractWikiItem- 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- Overrides:
supportsContentin classAbstractWikiItem- Returns:
- true if content is supported, false otherwise
-
clone
Clone the wiki item- Overrides:
clonein classAbstractWikiItem- Returns:
- a copy of the wiki item
-