Package com.composum.sling.nodes.browser
Class BrowserViews
- java.lang.Object
-
- com.composum.sling.nodes.browser.BrowserViews
-
- All Implemented Interfaces:
HttpUtil.CachableInstance,Serializable
public class BrowserViews extends Object implements HttpUtil.CachableInstance
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classBrowserViews.ResourceContextclassBrowserViews.View
-
Field Summary
Fields Modifier and Type Field Description protected List<BrowserViews.View>browserViewsprotected longcreatedstatic intDEFAULT_RANKstatic StringNN_CONTENTstatic StringNN_PATTERNstatic StringNN_TABSstatic StringNN_TOOLBARstatic StringPN_CONDITIONstatic StringPN_CSSstatic StringPN_DESCRIPTIONstatic StringPN_ENABLEDstatic StringPN_GROUPstatic StringPN_HREFstatic StringPN_ICONstatic StringPN_IDstatic StringPN_KEYstatic StringPN_LABELstatic StringPN_PLACEHOLDERstatic StringPN_RANKstatic StringPN_RESOURCE_TYPEstatic StringPN_TARGETstatic StringPN_TITLEstatic StringPN_TYPEstatic StringQUERY_BASEstatic StringQUERY_RULEstatic StringSA_INSTANCEstatic StringTYPE_BUTTONstatic StringTYPE_LINKstatic StringTYPE_TEXT
-
Constructor Summary
Constructors Modifier Constructor Description protectedBrowserViews(@NotNull org.apache.sling.api.SlingHttpServletRequest request)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfindBrowserViews(@NotNull org.apache.sling.api.resource.ResourceResolver resolver, @NotNull Map<String,BrowserViews.View> viewMap, @NotNull String query)longgetCreated()static @NotNull BrowserViewsgetInstance(@NotNull org.apache.sling.api.SlingHttpServletRequest request)static @Nullable BrowserViews.ViewgetView(@NotNull BeanContext context, @NotNull org.apache.sling.api.resource.Resource resource)
-
-
-
Field Detail
-
SA_INSTANCE
public static final String SA_INSTANCE
-
PN_ID
public static final String PN_ID
- See Also:
- Constant Field Values
-
PN_RANK
public static final String PN_RANK
- See Also:
- Constant Field Values
-
DEFAULT_RANK
public static final int DEFAULT_RANK
- See Also:
- Constant Field Values
-
NN_PATTERN
public static final String NN_PATTERN
- See Also:
- Constant Field Values
-
NN_TABS
public static final String NN_TABS
- See Also:
- Constant Field Values
-
NN_TOOLBAR
public static final String NN_TOOLBAR
- See Also:
- Constant Field Values
-
NN_CONTENT
public static final String NN_CONTENT
- See Also:
- Constant Field Values
-
PN_CONDITION
public static final String PN_CONDITION
- See Also:
- Constant Field Values
-
PN_ENABLED
public static final String PN_ENABLED
- See Also:
- Constant Field Values
-
PN_KEY
public static final String PN_KEY
- See Also:
- Constant Field Values
-
PN_ICON
public static final String PN_ICON
- See Also:
- Constant Field Values
-
PN_CSS
public static final String PN_CSS
- See Also:
- Constant Field Values
-
PN_GROUP
public static final String PN_GROUP
- See Also:
- Constant Field Values
-
PN_LABEL
public static final String PN_LABEL
- See Also:
- Constant Field Values
-
PN_TITLE
public static final String PN_TITLE
- See Also:
- Constant Field Values
-
PN_HREF
public static final String PN_HREF
- See Also:
- Constant Field Values
-
PN_TARGET
public static final String PN_TARGET
- See Also:
- Constant Field Values
-
PN_PLACEHOLDER
public static final String PN_PLACEHOLDER
- See Also:
- Constant Field Values
-
PN_DESCRIPTION
public static final String PN_DESCRIPTION
- See Also:
- Constant Field Values
-
PN_RESOURCE_TYPE
public static final String PN_RESOURCE_TYPE
- See Also:
- Constant Field Values
-
PN_TYPE
public static final String PN_TYPE
- See Also:
- Constant Field Values
-
TYPE_BUTTON
public static final String TYPE_BUTTON
- See Also:
- Constant Field Values
-
TYPE_LINK
public static final String TYPE_LINK
- See Also:
- Constant Field Values
-
TYPE_TEXT
public static final String TYPE_TEXT
- See Also:
- Constant Field Values
-
QUERY_BASE
public static final String QUERY_BASE
- See Also:
- Constant Field Values
-
QUERY_RULE
public static final String QUERY_RULE
- See Also:
- Constant Field Values
-
browserViews
protected final List<BrowserViews.View> browserViews
-
created
protected final long created
-
-
Method Detail
-
getInstance
@NotNull public static @NotNull BrowserViews getInstance(@NotNull @NotNull org.apache.sling.api.SlingHttpServletRequest request)
-
getView
@Nullable public static @Nullable BrowserViews.View getView(@NotNull @NotNull BeanContext context, @NotNull @NotNull org.apache.sling.api.resource.Resource resource)
-
getCreated
public long getCreated()
- Specified by:
getCreatedin interfaceHttpUtil.CachableInstance
-
findBrowserViews
protected void findBrowserViews(@NotNull @NotNull org.apache.sling.api.resource.ResourceResolver resolver, @NotNull @NotNull Map<String,BrowserViews.View> viewMap, @NotNull @NotNull String query)
-
-