|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PackageTypeBehavior
The package types are either defined in the agent plugin descriptors or by the server-side package type plugins. The server-side plugins define a "behaviorClass" that implements this interface to provide additional runtime "hooks" controlling the package type behavior.
| Method Summary | |
|---|---|
Comparator<org.rhq.core.domain.content.PackageVersion> |
getPackageVersionComparator(String packageTypeName)
This comparator will be used to determine the latest version of a package. |
org.rhq.core.domain.content.PackageVersionFormatDescription |
getPackageVersionFormat(String packageTypeName)
Description of the package version format mandated by the package type. |
void |
validateDetails(org.rhq.core.domain.content.ValidatablePackageDetailsKey key,
org.rhq.core.domain.auth.Subject origin)
Validate the package before it gets stored. |
| Method Detail |
|---|
void validateDetails(org.rhq.core.domain.content.ValidatablePackageDetailsKey key,
org.rhq.core.domain.auth.Subject origin)
throws PackageDetailsValidationException
key - the package details keyorigin - who is uploading the package
PackageDetailsValidationExceptionComparator<org.rhq.core.domain.content.PackageVersion> getPackageVersionComparator(String packageTypeName)
comparator.compare(older, younger)
packageTypeName - the name of the package type
PackageVersion.DEFAULT_COMPARATOR should be used.org.rhq.core.domain.content.PackageVersionFormatDescription getPackageVersionFormat(String packageTypeName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||