Package com.composum.sling.nodes.console
Class Consoles.Console
- java.lang.Object
-
- com.composum.sling.nodes.console.Consoles.Console
-
- All Implemented Interfaces:
Serializable
,Comparable<Consoles.Console>
- Enclosing class:
- Consoles
public class Consoles.Console extends Object implements Comparable<Consoles.Console>, Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
Consoles.Console.Link
-
Constructor Summary
Constructors Constructor Description Console(@NotNull Consoles.ConsoleFilter filter, @NotNull ResourceHandle handle)
Console(@NotNull Consoles.ConsoleFilter filter, @NotNull ResourceHandle handle, boolean isMenu)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addConsole(@NotNull Consoles.Console console)
protected void
buildMenu(@NotNull Consoles.ConsoleFilter filter, @NotNull ResourceHandle handle)
int
compareTo(Consoles.Console other)
protected @NotNull String
embedSuffix(@NotNull org.apache.sling.api.SlingHttpServletRequest request, @NotNull String value)
@NotNull String
getContentSrc()
@NotNull String
getDescription()
@NotNull String
getId()
@NotNull String
getLabel()
@Nullable Consoles.Console.Link
getLink()
@NotNull String
getLinkAttributes(@NotNull org.apache.sling.api.SlingHttpServletRequest request)
@NotNull Collection<ConsoleModel>
getMenuItems(@NotNull BeanContext context)
@NotNull String
getName()
@Nullable Consoles.Console
getParent()
@Nullable String
getParentId()
@NotNull String
getPath()
@NotNull String
getRedirectUrl(@NotNull org.apache.sling.api.SlingHttpServletRequest request)
String
getStaticUrl(@NotNull org.apache.sling.api.SlingHttpServletRequest request)
@NotNull String
getUrl(@NotNull org.apache.sling.api.SlingHttpServletRequest request)
boolean
isDeclaredMenu()
boolean
isDynamicRedirect()
boolean
isMenu()
boolean
isValidMenu()
boolean
supportsPermissions()
@NotNull String
toString(@NotNull BeanContext context)
-
-
-
Constructor Detail
-
Console
public Console(@NotNull @NotNull Consoles.ConsoleFilter filter, @NotNull @NotNull ResourceHandle handle)
-
Console
public Console(@NotNull @NotNull Consoles.ConsoleFilter filter, @NotNull @NotNull ResourceHandle handle, boolean isMenu)
-
-
Method Detail
-
isDynamicRedirect
public boolean isDynamicRedirect()
-
supportsPermissions
public boolean supportsPermissions()
-
getLabel
@NotNull public @NotNull String getLabel()
-
getId
@NotNull public @NotNull String getId()
-
getName
@NotNull public @NotNull String getName()
-
getPath
@NotNull public @NotNull String getPath()
-
getDescription
@NotNull public @NotNull String getDescription()
-
getContentSrc
@NotNull public @NotNull String getContentSrc()
-
embedSuffix
@NotNull protected @NotNull String embedSuffix(@NotNull @NotNull org.apache.sling.api.SlingHttpServletRequest request, @NotNull @NotNull String value)
-
getRedirectUrl
@NotNull public @NotNull String getRedirectUrl(@NotNull @NotNull org.apache.sling.api.SlingHttpServletRequest request)
-
getUrl
@NotNull public @NotNull String getUrl(@NotNull @NotNull org.apache.sling.api.SlingHttpServletRequest request)
-
getStaticUrl
public String getStaticUrl(@NotNull @NotNull org.apache.sling.api.SlingHttpServletRequest request)
-
getLinkAttributes
@NotNull public @NotNull String getLinkAttributes(@NotNull @NotNull org.apache.sling.api.SlingHttpServletRequest request)
-
getLink
@Nullable public @Nullable Consoles.Console.Link getLink()
-
compareTo
public int compareTo(Consoles.Console other)
- Specified by:
compareTo
in interfaceComparable<Consoles.Console>
-
getParentId
@Nullable public @Nullable String getParentId()
-
getParent
@Nullable public @Nullable Consoles.Console getParent()
-
isMenu
public boolean isMenu()
-
isDeclaredMenu
public boolean isDeclaredMenu()
-
isValidMenu
public boolean isValidMenu()
-
getMenuItems
@NotNull public @NotNull Collection<ConsoleModel> getMenuItems(@NotNull @NotNull BeanContext context)
-
addConsole
protected void addConsole(@NotNull @NotNull Consoles.Console console)
-
buildMenu
protected void buildMenu(@NotNull @NotNull Consoles.ConsoleFilter filter, @NotNull @NotNull ResourceHandle handle)
-
toString
@NotNull public @NotNull String toString(@NotNull @NotNull BeanContext context)
-
-