Class CategoryService.CategoryDisplay
java.lang.Object
fr.paris.lutece.plugins.document.service.category.CategoryService.CategoryDisplay
- All Implemented Interfaces:
Serializable
- Enclosing class:
- CategoryService
This class defines a CategoryDisplay object intended to be used in
freemarker templates. It provides the Category object and other information.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if Document is linked to this CategoryGet the Category objectintGet the number of linked documentsGet the icon urlvoidsetAssigned(boolean bAssigned) Set the assigned value (true if document is linked to this Category)voidsetCategory(Category category) Set the Category objectvoidsetCountLinkedDocuments(int nCountLinkedDocuments) Set the number of linked documentsvoidsetIconUrl(String strIconUrl) Set the icon url
-
Constructor Details
-
CategoryDisplay
public CategoryDisplay()
-
-
Method Details
-
getCategory
Get the Category object- Returns:
- The Category object
-
setCategory
Set the Category object- Parameters:
category- The Category object to set
-
getCountLinkedDocuments
public int getCountLinkedDocuments()Get the number of linked documents- Returns:
- The number of linked documents
-
setCountLinkedDocuments
public void setCountLinkedDocuments(int nCountLinkedDocuments) Set the number of linked documents- Parameters:
nCountLinkedDocuments- The number of linked documents
-
getIconUrl
Get the icon url- Returns:
- The icon url
-
setIconUrl
Set the icon url- Parameters:
strIconUrl- The url to set
-
getAssigned
public boolean getAssigned()Return true if Document is linked to this Category- Returns:
- true if Document is linked, false else
-
setAssigned
public void setAssigned(boolean bAssigned) Set the assigned value (true if document is linked to this Category)- Parameters:
bAssigned- true if document if assigned
-