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:
com.composum.sling.core.bean.RestrictedBean
,com.composum.sling.core.SlingBean
,AutoCloseable
public class PackageBean extends com.composum.sling.nodes.console.ConsoleSlingBean implements AutoCloseable
-
-
Field Summary
Fields Modifier and Type Field Description static String
AUDIT_LOG_BASE
static String
DATE_FORMAT
protected String
path
protected org.apache.jackrabbit.vault.packaging.JcrPackage
pckg
protected org.apache.jackrabbit.vault.packaging.JcrPackageDefinition
pckgDef
protected org.apache.jackrabbit.vault.packaging.JcrPackageManager
pckgMgr
static String
RESOURCE_TYPE
-
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(com.composum.sling.core.BeanContext context, org.apache.sling.api.resource.Resource resource)
- Specified by:
initialize
in interfacecom.composum.sling.core.SlingBean
- Overrides:
initialize
in classcom.composum.sling.nodes.console.ConsoleSlingBean
-
getCssClasses
public String getCssClasses()
-
getUrl
public String getUrl()
- Overrides:
getUrl
in classcom.composum.sling.core.AbstractSlingBean
-
getPath
public String getPath()
- Specified by:
getPath
in interfacecom.composum.sling.core.SlingBean
- Overrides:
getPath
in classcom.composum.sling.core.AbstractSlingBean
-
getGroup
public String getGroup()
-
getName
public String getName()
- Specified by:
getName
in interfacecom.composum.sling.core.SlingBean
- Overrides:
getName
in classcom.composum.sling.core.AbstractSlingBean
-
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:
close
in interfaceAutoCloseable
- Throws:
Exception
-
isInstalled
public boolean isInstalled()
-
isHasAlternativeVersions
public boolean isHasAlternativeVersions()
-
getAllVersions
public List<PackageBean> getAllVersions()
All versions of this package.
-
-