Package org.opencms.ui.apps.dbmanager
Class CmsDbManagerFolder
java.lang.Object
org.opencms.ui.apps.dbmanager.CmsDbManagerFolder
- All Implemented Interfaces:
I_CmsAppCategory
,I_CmsFolderAppCategory
,I_CmsHasOrder
Class for the app folder.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final CmsCssIcon
The app icon resource (size 32x32).static final String
Folder id. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the button style.getHelpText
(Locale locale) Gets the help text for the app in the given locale.com.vaadin.server.Resource
getIcon()
Returns the app icon resource.getId()
Returns the id.Gets the user readable name for the category for a given locale.int
getOrder()
Gets an integer used to sort items.Returns the parentId.int
Returns the priority.getVisibility
(CmsObject cms) Returns the visibility status of the app for the given user context.
-
Field Details
-
ID
Folder id.- See Also:
-
ICON
The app icon resource (size 32x32).
-
-
Constructor Details
-
CmsDbManagerFolder
public CmsDbManagerFolder()
-
-
Method Details
-
getButtonStyle
Description copied from interface:I_CmsFolderAppCategory
Returns the button style.- Specified by:
getButtonStyle
in interfaceI_CmsFolderAppCategory
- Returns:
- the button style
- See Also:
-
getHelpText
Description copied from interface:I_CmsFolderAppCategory
Gets the help text for the app in the given locale.- Specified by:
getHelpText
in interfaceI_CmsFolderAppCategory
- Parameters:
locale
- the locale to use- Returns:
- the help text
- See Also:
-
getIcon
Description copied from interface:I_CmsFolderAppCategory
Returns the app icon resource.- Specified by:
getIcon
in interfaceI_CmsFolderAppCategory
- Returns:
- the icon resource
- See Also:
-
getId
Description copied from interface:I_CmsAppCategory
Returns the id.- Specified by:
getId
in interfaceI_CmsAppCategory
- Returns:
- the id
- See Also:
-
getName
Description copied from interface:I_CmsAppCategory
Gets the user readable name for the category for a given locale.- Specified by:
getName
in interfaceI_CmsAppCategory
- Parameters:
locale
- the locale for which to get the name- Returns:
- the localized name
- See Also:
-
getOrder
Description copied from interface:I_CmsHasOrder
Gets an integer used to sort items.- Specified by:
getOrder
in interfaceI_CmsHasOrder
- Returns:
- the integer used as a sort key
- See Also:
-
getParentId
Description copied from interface:I_CmsAppCategory
Returns the parentId.App categories can be nested. The method must return the id of the parent category if the category is nested. If it is on top level,
null
should be returned.- Specified by:
getParentId
in interfaceI_CmsAppCategory
- Returns:
- the parentId
- See Also:
-
getPriority
Description copied from interface:I_CmsAppCategory
Returns the priority.If more than one category with the same id is present, the one with higher priority is shown. The other categories with this id are discarded.
- Specified by:
getPriority
in interfaceI_CmsAppCategory
- Returns:
- the priority
- See Also:
-
getVisibility
Description copied from interface:I_CmsFolderAppCategory
Returns the visibility status of the app for the given user context.- Specified by:
getVisibility
in interfaceI_CmsFolderAppCategory
- Parameters:
cms
- the user context- Returns:
- the visibility status
- See Also:
-