Package com.enonic.xp.admin.widget
Class WidgetDescriptor
- java.lang.Object
-
- com.enonic.xp.descriptor.Descriptor
-
- com.enonic.xp.admin.widget.WidgetDescriptor
-
@PublicApi public class WidgetDescriptor extends Descriptor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWidgetDescriptor.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WidgetDescriptor.Buildercreate()PrincipalKeysgetAllowedPrincipals()Map<String,String>getConfig()StringgetDescription()StringgetDescriptionI18nKey()StringgetDisplayName()StringgetDisplayNameI18nKey()IcongetIcon()Set<String>getInterfaces()StringgetKeyString()StringgetUrl()booleanhasInterface(String interfaceName)booleanisAccessAllowed(PrincipalKeys principalKeys)-
Methods inherited from class com.enonic.xp.descriptor.Descriptor
getApplicationKey, getKey, getName
-
-
-
-
Method Detail
-
getUrl
public String getUrl()
-
getKeyString
public String getKeyString()
-
getDisplayName
public String getDisplayName()
-
getDisplayNameI18nKey
public String getDisplayNameI18nKey()
-
getDescription
public String getDescription()
-
getDescriptionI18nKey
public String getDescriptionI18nKey()
-
getIcon
public Icon getIcon()
-
hasInterface
public boolean hasInterface(String interfaceName)
-
getAllowedPrincipals
public PrincipalKeys getAllowedPrincipals()
-
isAccessAllowed
public boolean isAccessAllowed(PrincipalKeys principalKeys)
-
create
public static WidgetDescriptor.Builder create()
-
-