|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RepositoryService
This is what the remote service will implement, as a servlet. (in hosted/debug mode, you could also use an implementation that was in-process).
Method Summary | |
---|---|
BuilderResult[] |
buildAsset(RuleAsset asset)
This will build the asset and return any build results (errors). |
String |
buildAssetSource(RuleAsset asset)
This will return the effective source for an asset (in DRL). |
BuilderResult[] |
buildPackage(String packageUUID)
Build the package (may be a snapshot) and return the result. |
String |
buildPackageSource(String packageUUID)
This will return the effective DRL for a package. |
void |
changeAssetPackage(String uuid,
String newPackage,
String comment)
This moves an asset to the given target package. |
void |
changeState(String uuid,
String newState,
boolean wholePackage)
This will change the state of an asset or package. |
String |
checkinVersion(RuleAsset asset)
This checks in a new version of an asset. |
void |
clearRulesRepository()
Clear the rules repositoty, Use at your own risk. |
String |
copyAsset(String assetUUID,
String newPackage,
String newName)
Copies an asset into a new destination package. |
void |
copyOrRemoveSnapshot(String packageName,
String snapshotName,
boolean delete,
String newSnapshotName)
This alters an existing snapshot, it can be used to copy or delete it. |
Boolean |
createCategory(String path,
String name,
String description)
This will create a new category at the specified path. |
String |
createNewRule(String ruleName,
String description,
String initialCategory,
String initialPackage,
String format)
Creates a brand new rule with the initial category. |
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 |
createState(String name)
Create a state (status). |
void |
deleteUncheckedRule(String ruleName,
String initialPackage)
Delete un checked in Asset |
byte[] |
exportRepository()
Export rules repository to a compressed array of bytes |
TableDataResult |
listAssets(String packageUUID,
String[] formats,
int numRows,
int startRow)
Given a format, this will return assets that match. |
PackageConfigData[] |
listPackages()
This returns a list of packages where rules may be added. |
SnapshotInfo[] |
listSnapshots(String packageName)
This will load a list of snapshots for the given package. |
String[] |
listStates()
Returns a list of valid states. |
TableDataResult |
loadAssetHistory(String uuid)
This will load the history of the given asset, in a summary format suitable for display in a table. |
String[] |
loadChildCategories(String categoryPath)
|
PackageConfigData |
loadPackageConfig(String uuid)
Loads a package by its uuid. |
RuleAsset |
loadRuleAsset(String UUID)
This loads up all the stuff for a rule asset based on the UUID (always latest and editable version). |
TableDataResult |
loadRuleListForCategories(String categoryPath)
Return a a 2d array/grid of results for rules. |
SuggestionCompletionEngine |
loadSuggestionCompletionEngine(String packageName)
Loads up the SuggestionCompletionEngine for the given package. |
TableConfig |
loadTableConfig(String listName)
This will return a TableConfig of header names. |
TableDataResult |
quickFindAsset(String searchText,
int maxMatches,
boolean searchArchived)
This will quickly return a list of asset names/descriptions. |
void |
removeCategory(String categoryPath)
This will remove a category. |
void |
restoreVersion(String versionUUID,
String assetUUID,
String comment)
This will restore the specified version in the repository, saving, and creating a new version (with all the restored content). |
ValidatedResponse |
savePackage(PackageConfigData data)
Saves the package config data in place (does not create a new version of anything). |
Method Detail |
---|
String[] loadChildCategories(String categoryPath)
categoryPath
- A "/" delimited path to a category.callback
- TableDataResult loadRuleListForCategories(String categoryPath) throws com.google.gwt.user.client.rpc.SerializableException
A
- "/" delimited path to a category.
com.google.gwt.user.client.rpc.SerializableException
TableConfig loadTableConfig(String listName)
listName
- The name of the list that we are going to render.Boolean createCategory(String path, String name, String description)
String createNewRule(String ruleName, String description, String initialCategory, String initialPackage, String format) throws com.google.gwt.user.client.rpc.SerializableException
com.google.gwt.user.client.rpc.SerializableException
void deleteUncheckedRule(String ruleName, String initialPackage)
byte[] exportRepository() throws com.google.gwt.user.client.rpc.SerializableException
com.google.gwt.user.client.rpc.SerializableException
void clearRulesRepository()
PackageConfigData[] listPackages()
RuleAsset loadRuleAsset(String UUID) throws com.google.gwt.user.client.rpc.SerializableException
com.google.gwt.user.client.rpc.SerializableException
TableDataResult loadAssetHistory(String uuid) throws com.google.gwt.user.client.rpc.SerializableException
com.google.gwt.user.client.rpc.SerializableException
String checkinVersion(RuleAsset asset) throws com.google.gwt.user.client.rpc.SerializableException
com.google.gwt.user.client.rpc.SerializableException
void restoreVersion(String versionUUID, String assetUUID, String comment)
String createPackage(String name, String description) throws com.google.gwt.user.client.rpc.SerializableException
com.google.gwt.user.client.rpc.SerializableException
PackageConfigData loadPackageConfig(String uuid)
ValidatedResponse savePackage(PackageConfigData data) throws com.google.gwt.user.client.rpc.SerializableException
com.google.gwt.user.client.rpc.SerializableException
TableDataResult listAssets(String packageUUID, String[] formats, int numRows, int startRow) throws com.google.gwt.user.client.rpc.SerializableException
packageUUID
- The package uuid to search inside.format
- The format to filter on.numRows
- The number of rows to return. -1 means all.startRow
- The starting row number if paging - if numRows is -1 then this is ignored.
com.google.gwt.user.client.rpc.SerializableException
String[] listStates() throws com.google.gwt.user.client.rpc.SerializableException
com.google.gwt.user.client.rpc.SerializableException
String createState(String name) throws com.google.gwt.user.client.rpc.SerializableException
com.google.gwt.user.client.rpc.SerializableException
void changeState(String uuid, String newState, boolean wholePackage)
uuid
- The UUID of the asset we are tweaking.newState
- The new state to set. It must be valid in the repo.wholePackage
- true if it is a package we are setting the state of.
If this is true, UUID must be the status of a package, if false, it must be an asset.void changeAssetPackage(String uuid, String newPackage, String comment)
String copyAsset(String assetUUID, String newPackage, String newName)
assetUUID
- The source assetID.newPackage
- The destination package (may be the same as the current source package, but
in that case the asset has to have a different name).newName
- The new name of the asset.SnapshotInfo[] listSnapshots(String packageName)
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.SerializableException
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.SerializableException
TableDataResult quickFindAsset(String searchText, int maxMatches, boolean searchArchived)
void removeCategory(String categoryPath) throws com.google.gwt.user.client.rpc.SerializableException
categoryPath
- The full path to the category. Any sub categories will also
be removed.
com.google.gwt.user.client.rpc.SerializableException
- For when it all goes horribly wrong.SuggestionCompletionEngine loadSuggestionCompletionEngine(String packageName) throws com.google.gwt.user.client.rpc.SerializableException
com.google.gwt.user.client.rpc.SerializableException
BuilderResult[] buildPackage(String packageUUID) throws com.google.gwt.user.client.rpc.SerializableException
com.google.gwt.user.client.rpc.SerializableException
String buildPackageSource(String packageUUID) throws com.google.gwt.user.client.rpc.SerializableException
com.google.gwt.user.client.rpc.SerializableException
String buildAssetSource(RuleAsset asset) throws com.google.gwt.user.client.rpc.SerializableException
com.google.gwt.user.client.rpc.SerializableException
BuilderResult[] buildAsset(RuleAsset asset) throws com.google.gwt.user.client.rpc.SerializableException
com.google.gwt.user.client.rpc.SerializableException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |