org.drools.guvnor.server
Class RepositoryAssetOperations

java.lang.Object
  extended by org.drools.guvnor.server.RepositoryAssetOperations

@Name(value="org.drools.guvnor.server.RepositoryAssetOperations")
@AutoCreate
public class RepositoryAssetOperations
extends Object

Handles operations for Assets


Constructor Summary
RepositoryAssetOperations()
           
 
Method Summary
protected  List<DiscussionRecord> addToDiscussionForAsset(String assetId, String comment)
           
protected  String buildAssetSource(RuleAsset asset)
           
 String checkinVersion(RuleAsset asset)
           
protected  void clearAllDiscussionsForAsset(String assetId)
           
protected  PageResponse<AssetPageRow> findAssetPage(AssetPageRequest request)
           
protected  long getAssetCount(AssetPageRequest request)
           
protected  String getAssetLockerUserName(String uuid)
           
 RulesRepository getRulesRepository()
           
protected  TableDataResult listAssets(String packageUuid, String[] formats, int skip, int numRows, String tableConfig)
          Deprecated. in favour of findAssetPage(AssetPageRequest)
protected  TableDataResult loadArchivedAssets(int skip, int numRows)
          Deprecated. in favour of loadArchivedAssets(PageRequest)
protected  PageResponse<AdminArchivedPageRow> loadArchivedAssets(PageRequest request)
           
protected  RuleAsset loadAsset(AssetItem item)
           
protected  TableDataResult loadItemHistory(VersionableItem item)
           
protected  void lockAsset(String uuid)
           
protected  TableDataResult queryFullText(String text, boolean seekArchived, int skip, int numRows)
          Deprecated. in favour of queryFullText(QueryPageRequest)
protected  PageResponse<QueryPageRow> quickFindAsset(QueryPageRequest request)
           
protected  TableDataResult quickFindAsset(String searchText, boolean searchArchived, int skip, int numRows)
          Deprecated. in favour of quickFindAsset(QueryPageRequest)
 String renameAsset(String uuid, String newName)
           
 void restoreVersion(String versionUUID, String assetUUID, String comment)
           
 void setRulesRepository(RulesRepository repository)
           
protected  void unLockAsset(String uuid)
           
protected  BuilderResult validateAsset(RuleAsset asset)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepositoryAssetOperations

public RepositoryAssetOperations()
Method Detail

setRulesRepository

public void setRulesRepository(RulesRepository repository)

getRulesRepository

public RulesRepository getRulesRepository()

renameAsset

public String renameAsset(String uuid,
                          String newName)

validateAsset

protected BuilderResult validateAsset(RuleAsset asset)

checkinVersion

public String checkinVersion(RuleAsset asset)
                      throws com.google.gwt.user.client.rpc.SerializationException
Throws:
com.google.gwt.user.client.rpc.SerializationException

restoreVersion

public void restoreVersion(String versionUUID,
                           String assetUUID,
                           String comment)

loadItemHistory

protected TableDataResult loadItemHistory(VersionableItem item)

loadArchivedAssets

protected TableDataResult loadArchivedAssets(int skip,
                                             int numRows)
Deprecated. in favour of loadArchivedAssets(PageRequest)

Parameters:
skip -
numRows -
Returns:
Throws:
com.google.gwt.user.client.rpc.SerializationException

loadArchivedAssets

protected PageResponse<AdminArchivedPageRow> loadArchivedAssets(PageRequest request)

listAssets

protected TableDataResult listAssets(String packageUuid,
                                     String[] formats,
                                     int skip,
                                     int numRows,
                                     String tableConfig)
Deprecated. in favour of findAssetPage(AssetPageRequest)

Parameters:
packageUuid -
formats -
skip -
numRows -
tableConfig -
Returns:
Throws:
com.google.gwt.user.client.rpc.SerializationException

quickFindAsset

protected TableDataResult quickFindAsset(String searchText,
                                         boolean searchArchived,
                                         int skip,
                                         int numRows)
                                  throws com.google.gwt.user.client.rpc.SerializationException
Deprecated. in favour of quickFindAsset(QueryPageRequest)

Parameters:
searchText -
searchArchived -
skip -
numRows -
Returns:
Throws:
com.google.gwt.user.client.rpc.SerializationException

queryFullText

protected TableDataResult queryFullText(String text,
                                        boolean seekArchived,
                                        int skip,
                                        int numRows)
                                 throws com.google.gwt.user.client.rpc.SerializationException
Deprecated. in favour of queryFullText(QueryPageRequest)

Parameters:
text -
seekArchived -
skip -
numRows -
Returns:
Throws:
com.google.gwt.user.client.rpc.SerializationException

buildAssetSource

protected String buildAssetSource(RuleAsset asset)
                           throws com.google.gwt.user.client.rpc.SerializationException
Throws:
com.google.gwt.user.client.rpc.SerializationException

findAssetPage

protected PageResponse<AssetPageRow> findAssetPage(AssetPageRequest request)

quickFindAsset

protected PageResponse<QueryPageRow> quickFindAsset(QueryPageRequest request)

lockAsset

protected void lockAsset(String uuid)

unLockAsset

protected void unLockAsset(String uuid)

getAssetLockerUserName

protected String getAssetLockerUserName(String uuid)

loadAsset

protected RuleAsset loadAsset(AssetItem item)
                       throws com.google.gwt.user.client.rpc.SerializationException
Throws:
com.google.gwt.user.client.rpc.SerializationException

clearAllDiscussionsForAsset

protected void clearAllDiscussionsForAsset(String assetId)

addToDiscussionForAsset

protected List<DiscussionRecord> addToDiscussionForAsset(String assetId,
                                                         String comment)

getAssetCount

protected long getAssetCount(AssetPageRequest request)


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.