Class RegistryBean
- java.lang.Object
-
- com.composum.sling.core.AbstractSlingBean
-
- com.composum.sling.nodes.console.ConsoleSlingBean
-
- com.composum.sling.core.pckgmgr.regpckg.view.RegistryBean
-
- All Implemented Interfaces:
RestrictedBean
,SlingBean
public class RegistryBean extends ConsoleSlingBean
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.composum.sling.core.AbstractSlingBean
AbstractSlingBean.NodeClosure
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,List<PackageBean>>
groups
protected boolean
loaded
protected String
namespace
static String
RESOURCE_TYPE
-
Fields inherited from class com.composum.sling.core.AbstractSlingBean
context, queryManager, request, resolver, resource, response, session, sling
-
-
Constructor Summary
Constructors Constructor Description RegistryBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addPackage(org.apache.jackrabbit.vault.packaging.PackageId packageId)
protected Map<String,List<PackageBean>>
getGroups()
String
getName()
returns the name of the resource wrapped by this beanString
getNamespace()
protected org.apache.jackrabbit.vault.packaging.registry.PackageRegistry
getPackageRegistry(BeanContext context)
String
getPath()
returns the path of the resource wrapped by this beanString
getTitle()
void
initialize(BeanContext context, org.apache.sling.api.resource.Resource resource)
This basic initialization sets up the context and resource attributes only, all the other attributes are set 'lazy' during their getter calls.-
Methods inherited from class com.composum.sling.core.AbstractSlingBean
executeQuery, findBeans, findNodes, findNodes, findPathList, getContentResource, getDomId, getHasTitle, getId, getInherited, getInherited, getNode, getParent, getParent, getPermissible, getProperty, getProperty, getQueryManager, getRequest, getResolver, getResource, getResponse, getServiceKey, getSession, getSling, getStringId, getType, getUrl, getUsername, initialize, isPermissible, isReadAllowed, isWriteAllowed, toString, toString
-
-
-
-
Field Detail
-
RESOURCE_TYPE
public static final String RESOURCE_TYPE
- See Also:
- Constant Field Values
-
namespace
protected String namespace
-
loaded
protected boolean loaded
-
groups
protected Map<String,List<PackageBean>> groups
-
-
Method Detail
-
initialize
public void initialize(BeanContext context, org.apache.sling.api.resource.Resource resource)
Description copied from class:AbstractSlingBean
This basic initialization sets up the context and resource attributes only, all the other attributes are set 'lazy' during their getter calls.- Specified by:
initialize
in interfaceSlingBean
- Overrides:
initialize
in classConsoleSlingBean
- Parameters:
context
- the scripting context (e.g. a JSP PageContext or a Groovy scripting context)resource
- the resource to use (normally the resource addressed by the request)- See Also:
BeanContext.withResource(Resource)
-
getName
@Nonnull public String getName()
Description copied from interface:SlingBean
returns the name of the resource wrapped by this bean- Specified by:
getName
in interfaceSlingBean
- Overrides:
getName
in classAbstractSlingBean
-
getPath
@Nonnull public String getPath()
Description copied from interface:SlingBean
returns the path of the resource wrapped by this bean- Specified by:
getPath
in interfaceSlingBean
- Overrides:
getPath
in classAbstractSlingBean
-
getTitle
@Nonnull public String getTitle()
- Overrides:
getTitle
in classAbstractSlingBean
-
getGroups
@Nonnull protected Map<String,List<PackageBean>> getGroups()
-
addPackage
protected void addPackage(org.apache.jackrabbit.vault.packaging.PackageId packageId)
-
getPackageRegistry
@Nullable protected org.apache.jackrabbit.vault.packaging.registry.PackageRegistry getPackageRegistry(BeanContext context)
-
-