public class CmsLegacyAppConfiguration extends java.lang.Object implements I_CmsWorkplaceAppConfiguration
DEFAULT_PRIORIY
Constructor and Description |
---|
CmsLegacyAppConfiguration(I_CmsToolHandler toolHandler)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAppCategory()
Gets the id of the app category in which this app should be displayed (null for the root category).
|
I_CmsWorkplaceApp |
getAppInstance()
Returns a new app instance.
|
java.lang.String |
getButtonStyle()
Returns the button style.
|
java.lang.String |
getHelpText(java.util.Locale locale)
Gets the help text for the app in the given locale.
|
com.vaadin.server.Resource |
getIcon()
Returns the app icon resource.
|
java.lang.String |
getId()
Returns the unique app id.
|
java.lang.String |
getName(java.util.Locale locale)
Returns the display name of the app.
|
int |
getOrder()
Gets an integer used to sort apps in a category.
|
int |
getPriority()
Gets the priority of the app configuration.
|
CmsAppVisibilityStatus |
getVisibility(CmsObject cms)
Returns the visibility status of the app for the given user context.
|
public CmsLegacyAppConfiguration(I_CmsToolHandler toolHandler)
toolHandler
- the tool handlerpublic java.lang.String getAppCategory()
I_CmsWorkplaceAppConfiguration
getAppCategory
in interface I_CmsWorkplaceAppConfiguration
I_CmsWorkplaceAppConfiguration.getAppCategory()
public I_CmsWorkplaceApp getAppInstance()
I_CmsWorkplaceAppConfiguration
getAppInstance
in interface I_CmsWorkplaceAppConfiguration
I_CmsWorkplaceAppConfiguration.getAppInstance()
public java.lang.String getButtonStyle()
I_CmsWorkplaceAppConfiguration
getButtonStyle
in interface I_CmsWorkplaceAppConfiguration
I_CmsWorkplaceAppConfiguration.getButtonStyle()
public java.lang.String getHelpText(java.util.Locale locale)
I_CmsWorkplaceAppConfiguration
getHelpText
in interface I_CmsWorkplaceAppConfiguration
locale
- the locale to useI_CmsWorkplaceAppConfiguration.getHelpText(java.util.Locale)
public com.vaadin.server.Resource getIcon()
I_CmsWorkplaceAppConfiguration
getIcon
in interface I_CmsWorkplaceAppConfiguration
I_CmsWorkplaceAppConfiguration.getIcon()
public java.lang.String getId()
I_CmsWorkplaceAppConfiguration
getId
in interface I_CmsWorkplaceAppConfiguration
I_CmsWorkplaceAppConfiguration.getId()
public java.lang.String getName(java.util.Locale locale)
I_CmsWorkplaceAppConfiguration
getName
in interface I_CmsWorkplaceAppConfiguration
locale
- the user localeI_CmsWorkplaceAppConfiguration.getName(java.util.Locale)
public int getOrder()
I_CmsWorkplaceAppConfiguration
getOrder
in interface I_CmsWorkplaceAppConfiguration
I_CmsWorkplaceAppConfiguration.getOrder()
public int getPriority()
I_CmsWorkplaceAppConfiguration
Between two apps with the same id and different priorities, the one with the higher priority will override the one with the lower priority.
getPriority
in interface I_CmsWorkplaceAppConfiguration
I_CmsWorkplaceAppConfiguration.getPriority()
public CmsAppVisibilityStatus getVisibility(CmsObject cms)
I_CmsWorkplaceAppConfiguration
getVisibility
in interface I_CmsWorkplaceAppConfiguration
cms
- the user contextI_CmsWorkplaceAppConfiguration.getVisibility(org.opencms.file.CmsObject)