|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AssetService
Method Summary | |
---|---|
List<DiscussionRecord> |
addToDiscussionForAsset(String assetId,
String comment)
Append a discussion item for the current user. |
void |
archiveAsset(String uuid)
|
void |
archiveAssets(String[] uuids,
boolean value)
Archive assets based on uuid |
String |
buildAssetSource(RuleAsset asset)
This will return the effective source for an asset (in DRL). |
void |
changeAssetPackage(String uuid,
String newPackage,
String comment)
This moves an asset to the given target package. |
void |
changePackageState(String uuid,
String newStatee)
This will change the state of package. |
void |
changeState(String uuid,
String newState)
This will change the state of an asset. |
String |
checkinVersion(RuleAsset asset)
This checks in a new version of an asset. |
void |
clearAllDiscussionsForAsset(String assetId)
Only for admins, they can nuke it from orbit to clear it out |
String |
copyAsset(String assetUUID,
String newPackage,
String newName)
Copies an asset into a new destination package. |
PageResponse<AssetPageRow> |
findAssetPage(AssetPageRequest request)
Supports filtering and pagination. |
long |
getAssetCount(AssetPageRequest request)
This will return the number of Assets matching the given criteria |
String |
getAssetLockerUserName(String uuid)
Returns the lockers user name |
TableDataResult |
listAssets(String packageUUID,
String[] formats,
int skip,
int numRows,
String tableConfig)
Deprecated. by findAssetPage(AssetPageRequest) |
TableDataResult |
listAssetsWithPackageName(String packageName,
String[] formats,
int skip,
int numRows,
String tableConfig)
Deprecated. by findAssetPage(AssetPageRequest) |
TableDataResult |
loadArchivedAssets(int skip,
int numRows)
Deprecated. in favor of loadArchivedAssets(PageRequest) |
PageResponse<AdminArchivedPageRow> |
loadArchivedAssets(PageRequest request)
This will load all archived assets, in a summary format suitable for display in a table. |
TableDataResult |
loadAssetHistory(String packageUUID,
String assetName)
This will load the history of the given asset, in a summary format suitable for display in a table. |
List<DiscussionRecord> |
loadDiscussionForAsset(String assetId)
Return a list of discussion items for a given asset... |
TableDataResult |
loadItemHistory(String uuid)
This will load the history of the given asset or package, in a summary format suitable for display in a table. |
RuleAsset |
loadRuleAsset(String UUID)
This loads up all the stuff for a rule asset based on the UUID (always latest and editable version). |
RuleAsset[] |
loadRuleAssets(String[] UUIDs)
|
void |
lockAsset(String uuid)
Locks the asset, if a lock already exists this over writes it. |
void |
promoteAssetToGlobalArea(String assetUUID)
Prompt an asset into Global area. |
TableDataResult |
queryFullText(String text,
boolean seekArchived,
int skip,
int numRows)
Deprecated. in favour of queryFullText(QueryPageRequest) |
PageResponse<QueryPageRow> |
quickFindAsset(QueryPageRequest queryRequest)
This will quickly return a list of assets |
TableDataResult |
quickFindAsset(String searchText,
boolean searchArchived,
int skip,
int numRows)
Deprecated. in favour of quickFindAsset(QueryPageRequest) |
void |
removeAsset(String uuid)
Remove an asset based on uuid |
void |
removeAssets(String[] uuids)
Remove assets based on uuid |
String |
renameAsset(String uuid,
String newName)
Rename an asset. |
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). |
void |
unArchiveAsset(String uuid)
|
void |
unLockAsset(String uuid)
Unlocks the asset. |
BuilderResult |
validateAsset(RuleAsset asset)
This will build the asset and return any build results (errors). |
Method Detail |
---|
TableDataResult quickFindAsset(String searchText, boolean searchArchived, int skip, int numRows) throws com.google.gwt.user.client.rpc.SerializationException
quickFindAsset(QueryPageRequest)
com.google.gwt.user.client.rpc.SerializationException
TableDataResult queryFullText(String text, boolean seekArchived, int skip, int numRows) throws com.google.gwt.user.client.rpc.SerializationException
queryFullText(QueryPageRequest)
text
- seekArchived
- skip
- numRows
-
com.google.gwt.user.client.rpc.SerializationException
String getAssetLockerUserName(String uuid)
uuid
-
void lockAsset(String uuid)
uuid
- void unLockAsset(String uuid)
uuid
- PageResponse<QueryPageRow> quickFindAsset(QueryPageRequest queryRequest) throws com.google.gwt.user.client.rpc.SerializationException
queryRequest
- The parameters for the search
com.google.gwt.user.client.rpc.SerializationException
void archiveAsset(String uuid)
void unArchiveAsset(String uuid)
void archiveAssets(String[] uuids, boolean value)
uuids
- void removeAsset(String uuid)
uuid
- void removeAssets(String[] uuids)
uuids
- String buildAssetSource(RuleAsset asset) throws com.google.gwt.user.client.rpc.SerializationException
com.google.gwt.user.client.rpc.SerializationException
BuilderResult validateAsset(RuleAsset asset) throws com.google.gwt.user.client.rpc.SerializationException
com.google.gwt.user.client.rpc.SerializationException
String renameAsset(String uuid, String newName)
RuleAsset loadRuleAsset(String UUID) throws com.google.gwt.user.client.rpc.SerializationException
com.google.gwt.user.client.rpc.SerializationException
RuleAsset[] loadRuleAssets(String[] UUIDs) throws com.google.gwt.user.client.rpc.SerializationException
com.google.gwt.user.client.rpc.SerializationException
String checkinVersion(RuleAsset asset) throws com.google.gwt.user.client.rpc.SerializationException
com.google.gwt.user.client.rpc.SerializationException
void restoreVersion(String versionUUID, String assetUUID, String comment)
TableDataResult loadItemHistory(String uuid) throws com.google.gwt.user.client.rpc.SerializationException
com.google.gwt.user.client.rpc.SerializationException
TableDataResult loadAssetHistory(String packageUUID, String assetName) throws com.google.gwt.user.client.rpc.SerializationException
com.google.gwt.user.client.rpc.SerializationException
TableDataResult loadArchivedAssets(int skip, int numRows) throws com.google.gwt.user.client.rpc.SerializationException
loadArchivedAssets(PageRequest)
com.google.gwt.user.client.rpc.SerializationException
PageResponse<AdminArchivedPageRow> loadArchivedAssets(PageRequest request) throws com.google.gwt.user.client.rpc.SerializationException
com.google.gwt.user.client.rpc.SerializationException
PageResponse<AssetPageRow> findAssetPage(AssetPageRequest request) throws com.google.gwt.user.client.rpc.SerializationException
request
- never null, contains filter and pagination values
List
of AssetPageRow
com.google.gwt.user.client.rpc.SerializationException
TableDataResult listAssets(String packageUUID, String[] formats, int skip, int numRows, String tableConfig) throws com.google.gwt.user.client.rpc.SerializationException
findAssetPage(AssetPageRequest)
packageUUID
- The package uuid to search inside.format
- The format to filter on. If this is empty - it will look for
all non "known" asset types (ie "misc" stuff).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.SerializationException
TableDataResult listAssetsWithPackageName(String packageName, String[] formats, int skip, int numRows, String tableConfig) throws com.google.gwt.user.client.rpc.SerializationException
findAssetPage(AssetPageRequest)
packageName
- The name of package to search inside.format
- The format to filter on. If this is empty - it will look for
all non "known" asset types (ie "misc" stuff).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.SerializationException
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.void promoteAssetToGlobalArea(String assetUUID)
assetUUID
- The source assetID.void changeAssetPackage(String uuid, String newPackage, String comment)
List<DiscussionRecord> loadDiscussionForAsset(String assetId)
List<DiscussionRecord> addToDiscussionForAsset(String assetId, String comment)
void clearAllDiscussionsForAsset(String assetId)
void changeState(String uuid, String newState)
uuid
- The UUID of the asset we are tweaking.newState
- The new state to set. It must be valid in the repo.void changePackageState(String uuid, String newStatee)
uuid
- The UUID of the asset we are tweaking.newState
- The new state to set. It must be valid in the repo.long getAssetCount(AssetPageRequest request) throws com.google.gwt.user.client.rpc.SerializationException
request
-
com.google.gwt.user.client.rpc.SerializationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |