|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PackageService
Method Summary | |
---|---|
BuilderResult |
buildPackage(String packageUUID,
boolean force,
String buildMode,
String operator,
String statusDescriptionValue,
boolean enableStatusSelector,
String categoryOperator,
String category,
boolean enableCategorySelector,
String customSelectorName)
Build the package (may be a snapshot) and return the result. |
String |
buildPackageSource(String packageUUID)
This will return the effective DRL for a package. |
SnapshotComparisonPageResponse |
compareSnapshots(SnapshotComparisonPageRequest request)
|
SnapshotDiffs |
compareSnapshots(String packageName,
String firstSnapshotName,
String secondSnapshotName)
Deprecated. in favour of compareSnapshots(SnapshotComparisonRequest) |
void |
copyOrRemoveSnapshot(String packageName,
String snapshotName,
boolean delete,
String newSnapshotName)
This alters an existing snapshot, it can be used to copy or delete it. |
String |
copyPackage(String sourcePackageName,
String destPackageName)
Copy the package (everything). |
String |
createPackage(String name,
String description)
This creates a package of the given name, and checks it in. |
void |
createPackageSnapshot(String packageName,
String snapshotName,
boolean replaceExisting,
String comment)
Create a package snapshot for deployment. |
String |
createSubPackage(String name,
String description,
String parentPackage)
This creates a package of the given name, and checks it in. |
String[] |
getDependencies(String uuid)
|
void |
installSampleRepository()
Installs the sample repository, wiping out what was already there. |
PackageConfigData[] |
listArchivedPackages()
This returns a list of archived packages. |
PackageConfigData[] |
listPackages()
This returns a list of packages where rules may be added. |
PackageConfigData[] |
listPackages(String workspace)
This returns a list of packages where rules may be added. |
String[] |
listRulesInPackage(String packageName)
This will list the rules available in a package. |
SnapshotInfo[] |
listSnapshots(String packageName)
This will load a list of snapshots for the given package. |
String[] |
listTypesInPackage(String packageUUID)
List the fact types (class names) in the scope of a given package. |
PackageConfigData |
loadGlobalPackage()
This returns the global packages. |
PackageConfigData |
loadPackageConfig(String uuid)
Loads a package by its uuid. |
void |
rebuildPackages()
This will force a rebuild of all packages binary data. |
void |
rebuildSnapshots()
This will force a rebuild of all snapshots binary data. |
void |
removePackage(String uuid)
Permanently remove a package (delete it). |
String |
renamePackage(String uuid,
String newName)
Rename a package. |
SingleScenarioResult |
runScenario(String packageName,
Scenario scenario)
|
BulkTestRunResult |
runScenariosInPackage(String packageUUID)
This should be pretty obvious what it does ! |
void |
savePackage(PackageConfigData data)
Saves the package config data in place (does not create a new version of anything). |
void |
updateDependency(String uuid,
String dependencyPath)
|
ValidatedResponse |
validatePackageConfiguration(PackageConfigData data)
Validate package configuration |
Method Detail |
---|
PackageConfigData[] listPackages()
PackageConfigData[] listPackages(String workspace)
PackageConfigData[] listArchivedPackages()
PackageConfigData loadGlobalPackage()
String createPackage(String name, String description) throws com.google.gwt.user.client.rpc.SerializationException
com.google.gwt.user.client.rpc.SerializationException
String createSubPackage(String name, String description, String parentPackage) throws com.google.gwt.user.client.rpc.SerializationException
com.google.gwt.user.client.rpc.SerializationException
PackageConfigData loadPackageConfig(String uuid)
ValidatedResponse validatePackageConfiguration(PackageConfigData data) throws com.google.gwt.user.client.rpc.SerializationException
com.google.gwt.user.client.rpc.SerializationException
void savePackage(PackageConfigData data) throws com.google.gwt.user.client.rpc.SerializationException
com.google.gwt.user.client.rpc.SerializationException
void createPackageSnapshot(String packageName, String snapshotName, boolean replaceExisting, String comment)
packageName
- THe name of the package to copy.snapshotName
- The name of the snapshot. Has to be unique unless existing one
is to be replaced.replaceExisting
- Replace the existing one (must be true to replace an existing
snapshot of the same name).comment
- A comment to be added to the copied one.void copyOrRemoveSnapshot(String packageName, String snapshotName, boolean delete, String newSnapshotName) throws com.google.gwt.user.client.rpc.SerializationException
packageName
- The package name that we are dealing with.snapshotName
- The snapshot name (this must exist)delete
- true if the snapshotName is to be removed.newSnapshotName
- The name of the target snapshot that the contents will be
copied to.
com.google.gwt.user.client.rpc.SerializationException
BuilderResult buildPackage(String packageUUID, boolean force, String buildMode, String operator, String statusDescriptionValue, boolean enableStatusSelector, String categoryOperator, String category, boolean enableCategorySelector, String customSelectorName) throws com.google.gwt.user.client.rpc.SerializationException
com.google.gwt.user.client.rpc.SerializationException
String buildPackageSource(String packageUUID) throws com.google.gwt.user.client.rpc.SerializationException
com.google.gwt.user.client.rpc.SerializationException
String copyPackage(String sourcePackageName, String destPackageName) throws com.google.gwt.user.client.rpc.SerializationException
sourcePackageName
- destPackageName
-
com.google.gwt.user.client.rpc.SerializationException
void removePackage(String uuid)
uuid
- of the package.String renamePackage(String uuid, String newName)
void rebuildSnapshots() throws com.google.gwt.user.client.rpc.SerializationException
com.google.gwt.user.client.rpc.SerializationException
void rebuildPackages() throws com.google.gwt.user.client.rpc.SerializationException
com.google.gwt.user.client.rpc.SerializationException
String[] listRulesInPackage(String packageName) throws com.google.gwt.user.client.rpc.SerializationException
com.google.gwt.user.client.rpc.SerializationException
SnapshotInfo[] listSnapshots(String packageName)
String[] listTypesInPackage(String packageUUID) throws com.google.gwt.user.client.rpc.SerializationException
com.google.gwt.user.client.rpc.SerializationException
void installSampleRepository() throws com.google.gwt.user.client.rpc.SerializationException
com.google.gwt.user.client.rpc.SerializationException
SnapshotDiffs compareSnapshots(String packageName, String firstSnapshotName, String secondSnapshotName)
compareSnapshots(SnapshotComparisonRequest)
SnapshotComparisonPageResponse compareSnapshots(SnapshotComparisonPageRequest request)
SingleScenarioResult runScenario(String packageName, Scenario scenario) throws com.google.gwt.user.client.rpc.SerializationException
packageName
- The package name the scenario is to be run in.scenario
- The scenario to run.
com.google.gwt.user.client.rpc.SerializationException
BulkTestRunResult runScenariosInPackage(String packageUUID) throws com.google.gwt.user.client.rpc.SerializationException
com.google.gwt.user.client.rpc.SerializationException
void updateDependency(String uuid, String dependencyPath)
String[] getDependencies(String uuid)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |