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>>groupsprotected booleanloadedprotected Stringnamespacestatic StringRESOURCE_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 voidaddPackage(org.apache.jackrabbit.vault.packaging.PackageId packageId)protected Map<String,List<PackageBean>>getGroups()StringgetName()returns the name of the resource wrapped by this beanStringgetNamespace()protected org.apache.jackrabbit.vault.packaging.registry.PackageRegistrygetPackageRegistry(BeanContext context)StringgetPath()returns the path of the resource wrapped by this beanStringgetTitle()voidinitialize(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:AbstractSlingBeanThis basic initialization sets up the context and resource attributes only, all the other attributes are set 'lazy' during their getter calls.- Specified by:
initializein interfaceSlingBean- Overrides:
initializein 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:SlingBeanreturns the name of the resource wrapped by this bean- Specified by:
getNamein interfaceSlingBean- Overrides:
getNamein classAbstractSlingBean
-
getPath
@Nonnull public String getPath()
Description copied from interface:SlingBeanreturns the path of the resource wrapped by this bean- Specified by:
getPathin interfaceSlingBean- Overrides:
getPathin classAbstractSlingBean
-
getTitle
@Nonnull public String getTitle()
- Overrides:
getTitlein 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)
-
-