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 class
BrowserViews.ResourceContext
class
BrowserViews.View
-
Field Summary
Fields Modifier and Type Field Description protected List<BrowserViews.View>
browserViews
protected long
created
static int
DEFAULT_RANK
static String
NN_CONTENT
static String
NN_PATTERN
static String
NN_TABS
static String
NN_TOOLBAR
static String
PN_CONDITION
static String
PN_CSS
static String
PN_DESCRIPTION
static String
PN_ENABLED
static String
PN_GROUP
static String
PN_HREF
static String
PN_ICON
static String
PN_ID
static String
PN_KEY
static String
PN_LABEL
static String
PN_PLACEHOLDER
static String
PN_RANK
static String
PN_RESOURCE_TYPE
static String
PN_TARGET
static String
PN_TITLE
static String
PN_TYPE
static String
QUERY_BASE
static String
QUERY_RULE
static String
SA_INSTANCE
static String
TYPE_BUTTON
static String
TYPE_LINK
static String
TYPE_TEXT
-
Constructor Summary
Constructors Modifier Constructor Description protected
BrowserViews(@NotNull org.apache.sling.api.SlingHttpServletRequest request)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
findBrowserViews(@NotNull org.apache.sling.api.resource.ResourceResolver resolver, @NotNull Map<String,BrowserViews.View> viewMap, @NotNull String query)
long
getCreated()
static @NotNull BrowserViews
getInstance(@NotNull org.apache.sling.api.SlingHttpServletRequest request)
static @Nullable BrowserViews.View
getView(@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:
getCreated
in 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)
-
-