Package com.adobe.cq.testing.client
Class PackageManagerClient.Package
java.lang.Object
com.adobe.cq.testing.client.PackageManagerClient.Package
- Enclosing class:
PackageManagerClient
-
Constructor Summary
ModifierConstructorDescriptionprotected
Package
(PackageManagerClient pm, String path) protected
Package
(PackageManagerClient pm, String name, String version, String group) -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the package.static PackageManagerClient.Package
Build factory from a definition dump.delete()
Delete the package.boolean
getDefinition
(String path) getGroup()
getName()
Get a description of the package contents.Get a description of the package coverage.getPath()
int
hashCode()
install()
Install the package.Replicate the package.rewrap()
Rewrap the package.void
setDescription
(String description) void
void
void
void
setVersion
(String version) Simulate package installation.Uninstall the package.update()
Commit all property changes to the server.
-
Constructor Details
-
Package
-
Package
protected Package(PackageManagerClient pm, String path) throws org.apache.sling.testing.clients.ClientException - Throws:
org.apache.sling.testing.clients.ClientException
-
-
Method Details
-
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
-
equals
-
hashCode
public int hashCode() -
getDescription
-
setDescription
-
getFilter
-
setFilter
-
getGroup
-
setGroup
-
getName
-
setName
-
getVersion
-
setVersion
-
getPath
-
getBuildCount
-
getBuiltWith
-
getCreated
-
getLastModified
-
getLastUnpacked
-
getLastUnpackedBy
-
getLastUnwrapped
-
getLastUnwrappedBy
-
getLastWrapped
-
getLastWrappedBy
-
getRequiresRestart
-
getRequiresRoot
-
buildPath
-
getDefinition
- Throws:
org.apache.sling.testing.clients.ClientException
-
update
Commit all property changes to the server.- Returns:
- The HTML response.
- Throws:
org.apache.sling.testing.clients.ClientException
- if the request failed
-
build
Build the package.- Returns:
- The HTML response.
- Throws:
org.apache.sling.testing.clients.ClientException
- if the request failed
-
install
Install the package.- Returns:
- The HTML response.
- Throws:
org.apache.sling.testing.clients.ClientException
- if the request failed
-
replicate
Replicate the package.- Returns:
- The HTML response.
- Throws:
org.apache.sling.testing.clients.ClientException
- if the request failed
-
testInstall
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
Uninstall the package.- Returns:
- The HTML response.
- Throws:
org.apache.sling.testing.clients.ClientException
- if the request failed
-
rewrap
Rewrap the package.- Returns:
- The HTML response.
- Throws:
org.apache.sling.testing.clients.ClientException
- if the request failed
-
getPackageContentsAsHtml
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
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
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
-