Class PackageBean
- java.lang.Object
-
- com.composum.sling.core.AbstractSlingBean
-
- com.composum.sling.nodes.console.ConsoleSlingBean
-
- com.composum.sling.core.pckgmgr.jcrpckg.view.PackageBean
-
- All Implemented Interfaces:
RestrictedBean,SlingBean,AutoCloseable
public class PackageBean extends ConsoleSlingBean implements AutoCloseable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.composum.sling.core.AbstractSlingBean
AbstractSlingBean.NodeClosure
-
-
Field Summary
Fields Modifier and Type Field Description static StringAUDIT_LOG_BASEstatic StringDATE_FORMATprotected Stringpathprotected org.apache.jackrabbit.vault.packaging.JcrPackagepckgprotected org.apache.jackrabbit.vault.packaging.JcrPackageDefinitionpckgDefprotected org.apache.jackrabbit.vault.packaging.JcrPackageManagerpckgMgrstatic StringRESOURCE_TYPE-
Fields inherited from class com.composum.sling.core.AbstractSlingBean
context, queryManager, request, resolver, resource, response, session, sling
-
-
Constructor Summary
Constructors Constructor Description PackageBean()
-
Method Summary
-
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, getTitle, getType, getUsername, initialize, isPermissible, isReadAllowed, isWriteAllowed, toString, toString
-
-
-
-
Field Detail
-
RESOURCE_TYPE
public static final String RESOURCE_TYPE
- See Also:
- Constant Field Values
-
DATE_FORMAT
public static final String DATE_FORMAT
- See Also:
- Constant Field Values
-
AUDIT_LOG_BASE
public static final String AUDIT_LOG_BASE
-
path
protected String path
-
pckgMgr
protected org.apache.jackrabbit.vault.packaging.JcrPackageManager pckgMgr
-
pckg
protected org.apache.jackrabbit.vault.packaging.JcrPackage pckg
-
pckgDef
protected org.apache.jackrabbit.vault.packaging.JcrPackageDefinition pckgDef
-
-
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)
-
getCssClasses
public String getCssClasses()
-
getUrl
public String getUrl()
Description copied from class:AbstractSlingBeanReturns the URL to the resource of this bean (mapped and with the appropriate extension).- Overrides:
getUrlin classAbstractSlingBean- See Also:
LinkUtil.getUrl(SlingHttpServletRequest, String)
-
getPath
public String getPath()
Description copied from interface:SlingBeanreturns the path of the resource wrapped by this bean- Specified by:
getPathin interfaceSlingBean- Overrides:
getPathin classAbstractSlingBean
-
getGroup
public String getGroup()
-
getName
public String getName()
Description copied from interface:SlingBeanreturns the name of the resource wrapped by this bean- Specified by:
getNamein interfaceSlingBean- Overrides:
getNamein classAbstractSlingBean
-
getVersion
public String getVersion()
-
getDescription
public String getDescription()
-
getFilename
public String getFilename()
-
getDownloadUrl
public String getDownloadUrl()
-
getCreated
public String getCreated()
-
getCreatedBy
public String getCreatedBy()
-
getLastModified
public String getLastModified()
-
getLastModifiedBy
public String getLastModifiedBy()
-
getLastUnpacked
public String getLastUnpacked()
-
getLastUnpackedBy
public String getLastUnpackedBy()
-
getLastUnwrapped
public String getLastUnwrapped()
-
getLastUnwrappedBy
public String getLastUnwrappedBy()
-
getLastWrapped
public String getLastWrapped()
-
getLastWrappedBy
public String getLastWrappedBy()
-
getFilterList
public List<org.apache.jackrabbit.vault.fs.api.PathFilterSet> getFilterList()
-
getThumbnailUrl
public String getThumbnailUrl()
-
getAuditLogUrl
public String getAuditLogUrl()
-
getAcHandling
public String getAcHandling()
-
getAcHandlingLabel
public String getAcHandlingLabel()
-
getRequiresRestart
public boolean getRequiresRestart()
-
getRequiresRoot
public boolean getRequiresRoot()
-
getProviderName
public String getProviderName()
-
getProviderUrl
public String getProviderUrl()
-
getProviderLink
public String getProviderLink()
-
getDependencies
public String[] getDependencies()
-
getReplaces
public String[] getReplaces()
-
close
public void close() throws Exception- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
isInstalled
public boolean isInstalled()
-
isHasAlternativeVersions
public boolean isHasAlternativeVersions()
-
getAllVersions
public List<PackageBean> getAllVersions()
All versions of this package.
-
-