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 classConsoles.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 voidaddConsole(@NotNull Consoles.Console console)protected voidbuildMenu(@NotNull Consoles.ConsoleFilter filter, @NotNull ResourceHandle handle)intcompareTo(Consoles.Console other)protected @NotNull StringembedSuffix(@NotNull org.apache.sling.api.SlingHttpServletRequest request, @NotNull String value)@NotNull StringgetContentSrc()@NotNull StringgetDescription()@NotNull StringgetId()@NotNull StringgetLabel()@Nullable Consoles.Console.LinkgetLink()@NotNull StringgetLinkAttributes(@NotNull org.apache.sling.api.SlingHttpServletRequest request)@NotNull Collection<ConsoleModel>getMenuItems(@NotNull BeanContext context)@NotNull StringgetName()@Nullable Consoles.ConsolegetParent()@Nullable StringgetParentId()@NotNull StringgetPath()@NotNull StringgetRedirectUrl(@NotNull org.apache.sling.api.SlingHttpServletRequest request)StringgetStaticUrl(@NotNull org.apache.sling.api.SlingHttpServletRequest request)@NotNull StringgetUrl(@NotNull org.apache.sling.api.SlingHttpServletRequest request)booleanisDeclaredMenu()booleanisDynamicRedirect()booleanisMenu()booleanisValidMenu()booleansupportsPermissions()@NotNull StringtoString(@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:
compareToin 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)
-
-