|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.guvnor.server.RepositoryPackageService
@Name(value="org.drools.guvnor.client.rpc.PackageService") @AutoCreate public class RepositoryPackageService
Constructor Summary | |
---|---|
RepositoryPackageService()
|
Method Summary | |
---|---|
BuilderResult |
buildPackage(String packageUUID,
boolean force)
|
BuilderResult |
buildPackage(String packageUUID,
boolean force,
String buildMode,
String statusOperator,
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(SnapshotComparisonPageRequest) |
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). |
void |
create()
|
String |
createPackage(String name,
String description,
String format)
This creates a package of the given name, and checks it in. |
String |
createPackage(String name,
String description,
String format,
String[] workspace)
|
void |
createPackageSnapshot(String packageName,
String snapshotName,
boolean replaceExisting,
String comment)
Create a package snapshot for deployment. |
String |
createSubPackage(String name,
String description,
String parentNode)
This creates a package of the given name, and checks it in. |
byte[] |
exportPackages(String packageName)
|
String[] |
getDependencies(String uuid)
|
RulesRepository |
getRulesRepository()
|
void |
importPackages(byte[] byteArray,
boolean importAsNew)
|
void |
installSampleRepository()
Installs the sample repository, wiping out what was already there. |
PackageConfigData[] |
listArchivedPackages()
This returns a list of archived packages. |
PackageConfigData[] |
listArchivedPackages(String workspace)
|
String[] |
listImagesInPackage(String packageName)
This will list the images available in a package. |
PackageConfigData[] |
listPackages()
Role-based Authorization check: This method only returns packages that the user has permission to access. |
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. |
SnapshotInfo |
loadSnapshotInfo(String packageName,
String snapshotName)
|
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(PackageItem packageItem)
|
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 |
setRulesRepository(RulesRepository repository)
|
void |
updateDependency(String uuid,
String dependencyPath)
|
ValidatedResponse |
validatePackageConfiguration(PackageConfigData data)
Validate package configuration |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RepositoryPackageService()
Method Detail |
---|
@Create public void create()
public void setRulesRepository(RulesRepository repository)
public RulesRepository getRulesRepository()
@WebRemote @Restrict(value="#{identity.loggedIn}") public PackageConfigData[] listPackages()
listPackages
in interface PackageService
@WebRemote @Restrict(value="#{identity.loggedIn}") public PackageConfigData[] listPackages(String workspace)
PackageService
listPackages
in interface PackageService
@WebRemote @Restrict(value="#{identity.loggedIn}") public PackageConfigData[] listArchivedPackages()
PackageService
listArchivedPackages
in interface PackageService
@WebRemote @Restrict(value="#{identity.loggedIn}") public PackageConfigData[] listArchivedPackages(String workspace)
public PackageConfigData loadGlobalPackage()
PackageService
loadGlobalPackage
in interface PackageService
@WebRemote @Restrict(value="#{identity.loggedIn}") public void rebuildPackages() throws com.google.gwt.user.client.rpc.SerializationException
PackageService
rebuildPackages
in interface PackageService
com.google.gwt.user.client.rpc.SerializationException
@WebRemote @Restrict(value="#{identity.loggedIn}") public String buildPackageSource(String packageUUID) throws com.google.gwt.user.client.rpc.SerializationException
PackageService
buildPackageSource
in interface PackageService
com.google.gwt.user.client.rpc.SerializationException
@WebRemote public String copyPackage(String sourcePackageName, String destPackageName) throws com.google.gwt.user.client.rpc.SerializationException
PackageService
copyPackage
in interface PackageService
com.google.gwt.user.client.rpc.SerializationException
@WebRemote @Restrict(value="#{identity.loggedIn}") public void removePackage(String uuid)
PackageService
removePackage
in interface PackageService
uuid
- of the package.@WebRemote @Restrict(value="#{identity.loggedIn}") public String renamePackage(String uuid, String newName)
PackageService
renamePackage
in interface PackageService
@WebRemote @Restrict(value="#{identity.loggedIn}") public byte[] exportPackages(String packageName)
@WebRemote @Restrict(value="#{identity.loggedIn}") public void importPackages(byte[] byteArray, boolean importAsNew)
@WebRemote public String createPackage(String name, String description, String format) throws RulesRepositoryException
PackageService
createPackage
in interface PackageService
RulesRepositoryException
@WebRemote public String createPackage(String name, String description, String format, String[] workspace) throws RulesRepositoryException
RulesRepositoryException
@WebRemote public String createSubPackage(String name, String description, String parentNode) throws com.google.gwt.user.client.rpc.SerializationException
PackageService
createSubPackage
in interface PackageService
com.google.gwt.user.client.rpc.SerializationException
@WebRemote @Restrict(value="#{identity.loggedIn}") public PackageConfigData loadPackageConfig(String uuid)
PackageService
loadPackageConfig
in interface PackageService
@WebRemote @Restrict(value="#{identity.loggedIn}") public ValidatedResponse validatePackageConfiguration(PackageConfigData data) throws com.google.gwt.user.client.rpc.SerializationException
PackageService
validatePackageConfiguration
in interface PackageService
com.google.gwt.user.client.rpc.SerializationException
@WebRemote @Restrict(value="#{identity.loggedIn}") public void savePackage(PackageConfigData data) throws com.google.gwt.user.client.rpc.SerializationException
PackageService
savePackage
in interface PackageService
com.google.gwt.user.client.rpc.SerializationException
@WebRemote @Restrict(value="#{identity.loggedIn}") public BuilderResult buildPackage(String packageUUID, boolean force) throws com.google.gwt.user.client.rpc.SerializationException
com.google.gwt.user.client.rpc.SerializationException
@WebRemote @Restrict(value="#{identity.loggedIn}") public BuilderResult buildPackage(String packageUUID, boolean force, String buildMode, String statusOperator, String statusDescriptionValue, boolean enableStatusSelector, String categoryOperator, String category, boolean enableCategorySelector, String customSelectorName) throws com.google.gwt.user.client.rpc.SerializationException
PackageService
buildPackage
in interface PackageService
com.google.gwt.user.client.rpc.SerializationException
@WebRemote @Restrict(value="#{identity.loggedIn}") public void createPackageSnapshot(String packageName, String snapshotName, boolean replaceExisting, String comment)
PackageService
createPackageSnapshot
in interface PackageService
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.@WebRemote @Restrict(value="#{identity.loggedIn}") public void copyOrRemoveSnapshot(String packageName, String snapshotName, boolean delete, String newSnapshotName) throws com.google.gwt.user.client.rpc.SerializationException
PackageService
copyOrRemoveSnapshot
in interface PackageService
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
@WebRemote @Restrict(value="#{identity.loggedIn}") public String[] listRulesInPackage(String packageName) throws com.google.gwt.user.client.rpc.SerializationException
PackageService
listRulesInPackage
in interface PackageService
com.google.gwt.user.client.rpc.SerializationException
@WebRemote @Restrict(value="#{identity.loggedIn}") public String[] listImagesInPackage(String packageName) throws com.google.gwt.user.client.rpc.SerializationException
PackageService
listImagesInPackage
in interface PackageService
com.google.gwt.user.client.rpc.SerializationException
@WebRemote public void rebuildSnapshots() throws com.google.gwt.user.client.rpc.SerializationException
PackageService
rebuildSnapshots
in interface PackageService
com.google.gwt.user.client.rpc.SerializationException
@WebRemote @Restrict(value="#{identity.loggedIn}") public SnapshotInfo[] listSnapshots(String packageName)
PackageService
listSnapshots
in interface PackageService
@Restrict(value="#{identity.loggedIn}") public SnapshotInfo loadSnapshotInfo(String packageName, String snapshotName)
loadSnapshotInfo
in interface PackageService
@WebRemote @Restrict(value="#{identity.loggedIn}") public String[] listTypesInPackage(String packageUUID) throws com.google.gwt.user.client.rpc.SerializationException
PackageService
listTypesInPackage
in interface PackageService
com.google.gwt.user.client.rpc.SerializationException
@WebRemote @Restrict(value="#{identity.loggedIn}") public void updateDependency(String uuid, String dependencyPath)
updateDependency
in interface PackageService
public String[] getDependencies(String uuid)
getDependencies
in interface PackageService
@Restrict(value="#{identity.loggedIn}") public void installSampleRepository() throws com.google.gwt.user.client.rpc.SerializationException
PackageService
installSampleRepository
in interface PackageService
com.google.gwt.user.client.rpc.SerializationException
public SnapshotDiffs compareSnapshots(String packageName, String firstSnapshotName, String secondSnapshotName)
compareSnapshots(SnapshotComparisonPageRequest)
PackageService
compareSnapshots
in interface PackageService
public SnapshotComparisonPageResponse compareSnapshots(SnapshotComparisonPageRequest request)
compareSnapshots
in interface PackageService
@WebRemote @Restrict(value="#{identity.loggedIn}") public SingleScenarioResult runScenario(String packageName, Scenario scenario) throws com.google.gwt.user.client.rpc.SerializationException
runScenario
in interface PackageService
packageName
- The package name the scenario is to be run in.scenario
- The scenario to run.
com.google.gwt.user.client.rpc.SerializationException
@WebRemote @Restrict(value="#{identity.loggedIn}") public BulkTestRunResult runScenariosInPackage(String packageUUID) throws com.google.gwt.user.client.rpc.SerializationException
PackageService
runScenariosInPackage
in interface PackageService
com.google.gwt.user.client.rpc.SerializationException
public BulkTestRunResult runScenariosInPackage(PackageItem packageItem) throws DetailedSerializationException, com.google.gwt.user.client.rpc.SerializationException
DetailedSerializationException
com.google.gwt.user.client.rpc.SerializationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |