|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.guvnor.server.RepositoryAssetService
@Name(value="org.drools.guvnor.client.rpc.AssetService") @AutoCreate public class RepositoryAssetService
Constructor Summary | |
---|---|
RepositoryAssetService()
|
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 |
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). |
void |
changeAssetPackage(String uuid,
String newPackage,
String comment)
This moves an asset to the given target package. |
void |
changePackageState(String uuid,
String newState)
This will change the state of package. |
void |
changeState(String uuid,
String newState)
Role-based Authorization check: This method can be accessed if user has following permissions: 1. |
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. |
void |
create()
|
PageResponse<AssetPageRow> |
findAssetPage(AssetPageRequest request)
Supports filtering and pagination. |
String |
getAssetLockerUserName(String uuid)
Returns the lockers user name |
RulesRepository |
getRulesRepository()
|
TableDataResult |
listAssets(String packageUuid,
String[] formats,
int skip,
int numRows,
String tableConfig)
Deprecated. in favour of findAssetPage(AssetPageRequest) |
TableDataResult |
listAssetsWithPackageName(String packageName,
String[] formats,
int skip,
int numRows,
String tableConfig)
Deprecated. in favour of findAssetPage(AssetPageRequest) |
TableDataResult |
loadArchivedAssets(int skip,
int numRows)
Deprecated. |
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)
Deprecated. in favour of loadArchivedAssets(PageRequest) |
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 actually does the hard work of loading up an asset based on its format. |
RuleAsset[] |
loadRuleAssets(String[] uuids)
|
void |
lockAsset(String uuid)
Locks the asset, if a lock already exists this over writes it. |
void |
promoteAssetToGlobalArea(String uuid)
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 request)
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 |
setRulesRepository(RulesRepository repository)
|
void |
unArchiveAsset(String uuid)
|
void |
unLockAsset(String uuid)
Unlocks the asset. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RepositoryAssetService()
Method Detail |
---|
@Create public void create()
public void setRulesRepository(RulesRepository repository)
public RulesRepository getRulesRepository()
@WebRemote @Restrict(value="#{identity.loggedIn}") public RuleAsset loadRuleAsset(String uuid) throws com.google.gwt.user.client.rpc.SerializationException
loadRuleAsset
in interface AssetService
com.google.gwt.user.client.rpc.SerializationException
@WebRemote @Restrict(value="#{identity.loggedIn}") public RuleAsset[] loadRuleAssets(String[] uuids) throws com.google.gwt.user.client.rpc.SerializationException
loadRuleAssets
in interface AssetService
com.google.gwt.user.client.rpc.SerializationException
@WebRemote @Restrict(value="#{identity.loggedIn}") public String checkinVersion(RuleAsset asset) throws com.google.gwt.user.client.rpc.SerializationException
AssetService
checkinVersion
in interface AssetService
com.google.gwt.user.client.rpc.SerializationException
@WebRemote @Restrict(value="#{identity.loggedIn}") public void restoreVersion(String versionUUID, String assetUUID, String comment)
AssetService
restoreVersion
in interface AssetService
@WebRemote @Restrict(value="#{identity.loggedIn}") public TableDataResult loadItemHistory(String uuid) throws com.google.gwt.user.client.rpc.SerializationException
AssetService
loadItemHistory
in interface AssetService
com.google.gwt.user.client.rpc.SerializationException
@WebRemote @Restrict(value="#{identity.loggedIn}") public TableDataResult loadAssetHistory(String packageUUID, String assetName) throws com.google.gwt.user.client.rpc.SerializationException
loadArchivedAssets(PageRequest)
AssetService
loadAssetHistory
in interface AssetService
com.google.gwt.user.client.rpc.SerializationException
@WebRemote @Restrict(value="#{identity.loggedIn}") @Deprecated public TableDataResult loadArchivedAssets(int skip, int numRows) throws com.google.gwt.user.client.rpc.SerializationException
AssetService
loadArchivedAssets
in interface AssetService
com.google.gwt.user.client.rpc.SerializationException
@WebRemote @Restrict(value="#{identity.loggedIn}") public PageResponse<AdminArchivedPageRow> loadArchivedAssets(PageRequest request) throws com.google.gwt.user.client.rpc.SerializationException
AssetService
loadArchivedAssets
in interface AssetService
com.google.gwt.user.client.rpc.SerializationException
@WebRemote @Restrict(value="#{identity.loggedIn}") public TableDataResult listAssetsWithPackageName(String packageName, String[] formats, int skip, int numRows, String tableConfig) throws com.google.gwt.user.client.rpc.SerializationException
findAssetPage(AssetPageRequest)
AssetService
listAssetsWithPackageName
in interface AssetService
packageName
- The name of package to search inside.numRows
- The number of rows to return. -1 means all.
com.google.gwt.user.client.rpc.SerializationException
@WebRemote @Restrict(value="#{identity.loggedIn}") public TableDataResult listAssets(String packageUuid, String[] formats, int skip, int numRows, String tableConfig) throws com.google.gwt.user.client.rpc.SerializationException
findAssetPage(AssetPageRequest)
AssetService
listAssets
in interface AssetService
packageUuid
- The package uuid to search inside.numRows
- The number of rows to return. -1 means all.
com.google.gwt.user.client.rpc.SerializationException
@WebRemote @Restrict(value="#{identity.loggedIn}") public String copyAsset(String assetUUID, String newPackage, String newName)
AssetService
copyAsset
in interface AssetService
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.@WebRemote @Restrict(value="#{identity.loggedIn}") public void changeAssetPackage(String uuid, String newPackage, String comment)
AssetService
changeAssetPackage
in interface AssetService
@WebRemote @Restrict(value="#{identity.loggedIn}") public void promoteAssetToGlobalArea(String uuid)
AssetService
promoteAssetToGlobalArea
in interface AssetService
uuid
- The source assetID.@WebRemote @Restrict(value="#{identity.loggedIn}") public String buildAssetSource(RuleAsset asset) throws com.google.gwt.user.client.rpc.SerializationException
AssetService
buildAssetSource
in interface AssetService
com.google.gwt.user.client.rpc.SerializationException
@WebRemote @Restrict(value="#{identity.loggedIn}") public String renameAsset(String uuid, String newName)
AssetService
renameAsset
in interface AssetService
@WebRemote @Restrict(value="#{identity.loggedIn}") public void archiveAsset(String uuid)
archiveAsset
in interface AssetService
@WebRemote @Restrict(value="#{identity.loggedIn}") public BuilderResult buildAsset(RuleAsset asset) throws com.google.gwt.user.client.rpc.SerializationException
AssetService
buildAsset
in interface AssetService
com.google.gwt.user.client.rpc.SerializationException
public void unArchiveAsset(String uuid)
unArchiveAsset
in interface AssetService
@WebRemote @Restrict(value="#{identity.loggedIn}") public void archiveAssets(String[] uuids, boolean value)
AssetService
archiveAssets
in interface AssetService
@WebRemote @Restrict(value="#{identity.loggedIn}") public void removeAsset(String uuid)
AssetService
removeAsset
in interface AssetService
@WebRemote @Restrict(value="#{identity.loggedIn}") public void removeAssets(String[] uuids)
AssetService
removeAssets
in interface AssetService
@WebRemote @Restrict(value="#{identity.loggedIn}") public PageResponse<AssetPageRow> findAssetPage(AssetPageRequest request) throws com.google.gwt.user.client.rpc.SerializationException
AssetService
findAssetPage
in interface AssetService
request
- never null, contains filter and pagination values
List
of AssetPageRow
com.google.gwt.user.client.rpc.SerializationException
@WebRemote @Restrict(value="#{identity.loggedIn}") public PageResponse<QueryPageRow> quickFindAsset(QueryPageRequest request) throws com.google.gwt.user.client.rpc.SerializationException
AssetService
quickFindAsset
in interface AssetService
request
- The parameters for the search
com.google.gwt.user.client.rpc.SerializationException
@WebRemote @Restrict(value="#{identity.loggedIn}") public TableDataResult quickFindAsset(String searchText, boolean searchArchived, int skip, int numRows) throws com.google.gwt.user.client.rpc.SerializationException
quickFindAsset(QueryPageRequest)
AssetService
quickFindAsset
in interface AssetService
com.google.gwt.user.client.rpc.SerializationException
@Restrict(value="#{identity.loggedIn}") public void lockAsset(String uuid)
AssetService
lockAsset
in interface AssetService
@Restrict(value="#{identity.loggedIn}") public void unLockAsset(String uuid)
AssetService
unLockAsset
in interface AssetService
@WebRemote @Restrict(value="#{identity.loggedIn}") public TableDataResult queryFullText(String text, boolean seekArchived, int skip, int numRows) throws com.google.gwt.user.client.rpc.SerializationException
queryFullText(QueryPageRequest)
AssetService
queryFullText
in interface AssetService
com.google.gwt.user.client.rpc.SerializationException
@Restrict(value="#{identity.loggedIn}") public List<DiscussionRecord> addToDiscussionForAsset(String assetId, String comment)
AssetService
addToDiscussionForAsset
in interface AssetService
@Restrict(value="#{identity.loggedIn}") public void clearAllDiscussionsForAsset(String assetId)
AssetService
clearAllDiscussionsForAsset
in interface AssetService
@Restrict(value="#{identity.loggedIn}") public List<DiscussionRecord> loadDiscussionForAsset(String assetId)
AssetService
loadDiscussionForAsset
in interface AssetService
@WebRemote @Restrict(value="#{identity.loggedIn}") public void changeState(String uuid, String newState)
changeState
in interface AssetService
uuid
- The UUID of the asset we are tweaking.newState
- The new state to set. It must be valid in the repo.@WebRemote @Restrict(value="#{identity.loggedIn}") public void changePackageState(String uuid, String newState)
AssetService
changePackageState
in interface AssetService
uuid
- The UUID of the asset we are tweaking.@Restrict(value="#{identity.loggedIn}") public String getAssetLockerUserName(String uuid)
AssetService
getAssetLockerUserName
in interface AssetService
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |