Package com.composum.sling.nodes.console
Class ConsoleModel
- java.lang.Object
-
- com.composum.sling.core.AbstractSlingBean
-
- com.composum.sling.nodes.console.ConsoleSlingBean
-
- com.composum.sling.nodes.console.ConsolePage
-
- com.composum.sling.nodes.console.ConsoleModel
-
- All Implemented Interfaces:
com.composum.sling.core.bean.RestrictedBean
,com.composum.sling.core.SlingBean
public class ConsoleModel extends ConsolePage
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
ConsoleModel.LinkModel
-
Field Summary
Fields Modifier and Type Field Description protected Consoles.Console
console
-
Fields inherited from class com.composum.sling.nodes.console.ConsolePage
SERVICE_KEY
-
-
Constructor Summary
Constructors Constructor Description ConsoleModel()
ConsoleModel(com.composum.sling.core.BeanContext context)
ConsoleModel(com.composum.sling.core.BeanContext context, Consoles.Console console)
ConsoleModel(com.composum.sling.core.BeanContext context, org.apache.sling.api.resource.Resource resource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull String
getContentSrc()
@NotNull String
getDataSet()
@NotNull String
getDescription()
@NotNull String
getId()
@NotNull String
getLabel()
@NotNull ConsoleModel.LinkModel
getLink()
@NotNull String
getLinkAttributes()
@NotNull Collection<ConsoleModel>
getMenuItems()
@NotNull String
getName()
@NotNull String
getPath()
@NotNull String
getStaticUrl()
@NotNull String
getUrl()
void
initialize(com.composum.sling.core.BeanContext context, org.apache.sling.api.resource.Resource resource)
boolean
isMenu()
boolean
isSupportsPermissions()
boolean
isValidMenu()
@NotNull String
toString()
-
Methods inherited from class com.composum.sling.nodes.console.ConsolePage
getCurrentUser, getLogoutUrl, getSystemPermission, getURL, getUserPermission, getWorkspaceName
-
Methods inherited from class com.composum.sling.core.AbstractSlingBean
executeQuery, findBeans, findNodes, findNodes, findPathList, getContentResource, getDomId, getHasTitle, getInherited, getInherited, getNode, getParent, getParent, getPermissible, getProperty, getProperty, getQueryManager, getRequest, getResolver, getResource, getResponse, getServiceKey, getSession, getSling, getStringId, getTitle, getType, getUsername, initialize, isPermissible, isReadAllowed, isWriteAllowed, toString
-
-
-
-
Field Detail
-
console
protected Consoles.Console console
-
-
Constructor Detail
-
ConsoleModel
public ConsoleModel(com.composum.sling.core.BeanContext context, Consoles.Console console)
-
ConsoleModel
public ConsoleModel(com.composum.sling.core.BeanContext context, org.apache.sling.api.resource.Resource resource)
-
ConsoleModel
public ConsoleModel(com.composum.sling.core.BeanContext context)
-
ConsoleModel
public ConsoleModel()
-
-
Method Detail
-
initialize
public void initialize(com.composum.sling.core.BeanContext context, org.apache.sling.api.resource.Resource resource)
- Specified by:
initialize
in interfacecom.composum.sling.core.SlingBean
- Overrides:
initialize
in classConsoleSlingBean
-
getId
@NotNull public @NotNull String getId()
- Overrides:
getId
in classcom.composum.sling.core.AbstractSlingBean
-
getName
@NotNull public @NotNull String getName()
- Specified by:
getName
in interfacecom.composum.sling.core.SlingBean
- Overrides:
getName
in classcom.composum.sling.core.AbstractSlingBean
-
getPath
@NotNull public @NotNull String getPath()
- Specified by:
getPath
in interfacecom.composum.sling.core.SlingBean
- Overrides:
getPath
in classcom.composum.sling.core.AbstractSlingBean
-
getLabel
@NotNull public @NotNull String getLabel()
-
isSupportsPermissions
public boolean isSupportsPermissions()
-
getDescription
@NotNull public @NotNull String getDescription()
-
getContentSrc
@NotNull public @NotNull String getContentSrc()
-
getUrl
@NotNull public @NotNull String getUrl()
- Overrides:
getUrl
in classcom.composum.sling.core.AbstractSlingBean
-
getStaticUrl
@NotNull public @NotNull String getStaticUrl()
-
getLink
@NotNull public @NotNull ConsoleModel.LinkModel getLink()
-
getLinkAttributes
@NotNull public @NotNull String getLinkAttributes()
-
isMenu
public boolean isMenu()
-
isValidMenu
public boolean isValidMenu()
-
getMenuItems
@NotNull public @NotNull Collection<ConsoleModel> getMenuItems()
-
toString
@NotNull public @NotNull String toString()
- Overrides:
toString
in classcom.composum.sling.core.AbstractSlingBean
-
getDataSet
@NotNull public @NotNull String getDataSet()
-
-