Package com.adobe.cq.testing.client
Class PackageManagerClient.Package
- java.lang.Object
-
- com.adobe.cq.testing.client.PackageManagerClient.Package
-
- Enclosing class:
- PackageManagerClient
public static class PackageManagerClient.Package extends Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Package(PackageManagerClient pm, String path)
protected
Package(PackageManagerClient pm, String name, String version, String group)
-
Method Summary
-
-
-
Constructor Detail
-
Package
protected Package(PackageManagerClient pm, String name, String version, String group)
-
Package
protected Package(PackageManagerClient pm, String path) throws org.apache.sling.testing.clients.ClientException
- Throws:
org.apache.sling.testing.clients.ClientException
-
-
Method Detail
-
build
public static PackageManagerClient.Package build(String definitionJson) throws org.apache.sling.testing.clients.ClientException
Build factory from a definition dump. This is intended for testing purposes only.- Parameters:
definitionJson
- the string with the definition json- Returns:
- a new Package object
- Throws:
org.apache.sling.testing.clients.ClientException
- if the init fails
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
getFilter
public String getFilter()
-
setFilter
public void setFilter(String filter)
-
getGroup
public String getGroup()
-
setGroup
public void setGroup(String group)
-
getName
public String getName()
-
setName
public void setName(String name)
-
getVersion
public String getVersion()
-
setVersion
public void setVersion(String version)
-
getPath
public String getPath()
-
getBuildCount
public Integer getBuildCount()
-
getBuiltWith
public String getBuiltWith()
-
getCreated
public Date getCreated()
-
getLastModified
public Date getLastModified()
-
getLastUnpacked
public Date getLastUnpacked()
-
getLastUnpackedBy
public String getLastUnpackedBy()
-
getLastUnwrapped
public Date getLastUnwrapped()
-
getLastUnwrappedBy
public String getLastUnwrappedBy()
-
getLastWrapped
public Date getLastWrapped()
-
getLastWrappedBy
public String getLastWrappedBy()
-
getRequiresRestart
public Boolean getRequiresRestart()
-
getRequiresRoot
public Boolean getRequiresRoot()
-
buildPath
public String buildPath()
-
getDefinition
public String getDefinition(String path) throws org.apache.sling.testing.clients.ClientException
- Throws:
org.apache.sling.testing.clients.ClientException
-
update
public String update() throws org.apache.sling.testing.clients.ClientException
Commit all property changes to the server.- Returns:
- The HTML response.
- Throws:
org.apache.sling.testing.clients.ClientException
- if the request failed
-
build
public String build() throws org.apache.sling.testing.clients.ClientException
Build the package.- Returns:
- The HTML response.
- Throws:
org.apache.sling.testing.clients.ClientException
- if the request failed
-
install
public String install() throws org.apache.sling.testing.clients.ClientException
Install the package.- Returns:
- The HTML response.
- Throws:
org.apache.sling.testing.clients.ClientException
- if the request failed
-
replicate
public String replicate() throws org.apache.sling.testing.clients.ClientException
Replicate the package.- Returns:
- The HTML response.
- Throws:
org.apache.sling.testing.clients.ClientException
- if the request failed
-
testInstall
public String testInstall() throws org.apache.sling.testing.clients.ClientException
Simulate package installation. No changes are made to the repository.- Returns:
- The HTML response.
- Throws:
org.apache.sling.testing.clients.ClientException
- if the request failed
-
unInstall
public String unInstall() throws org.apache.sling.testing.clients.ClientException
Uninstall the package.- Returns:
- The HTML response.
- Throws:
org.apache.sling.testing.clients.ClientException
- if the request failed
-
rewrap
public String rewrap() throws org.apache.sling.testing.clients.ClientException
Rewrap the package.- Returns:
- The HTML response.
- Throws:
org.apache.sling.testing.clients.ClientException
- if the request failed
-
getPackageContentsAsHtml
public String getPackageContentsAsHtml() throws org.apache.sling.testing.clients.ClientException
Get a description of the package contents.- Returns:
- The package contents list as an HTML response.
- Throws:
org.apache.sling.testing.clients.ClientException
- if the request failed
-
getPackageCoverageAsHtml
public String getPackageCoverageAsHtml() throws org.apache.sling.testing.clients.ClientException
Get a description of the package coverage.- Returns:
- The package coverage as an HTML response.
- Throws:
org.apache.sling.testing.clients.ClientException
- if the request failed
-
delete
public String delete() throws org.apache.sling.testing.clients.ClientException
Delete the package. This package instance becomes invalid and should not be used anymore after completion of the request.- Returns:
- The HTML response.
- Throws:
org.apache.sling.testing.clients.ClientException
- if the request failed
-
-