Java Doc for RepositoryService.java in  » Rule-Engine » drolls-Rule-Engine » org » drools » brms » client » rpc » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Rule Engine » drolls Rule Engine » org.drools.brms.client.rpc 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.drools.brms.client.rpc.RepositoryService

All known Subclasses:   org.drools.brms.server.ServiceImplementation,
RepositoryService
public interface RepositoryService extends RemoteService(Code)
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
public  voidarchiveAsset(String uuid, boolean value)
    
public  BuilderResult[]buildAsset(RuleAsset asset)
     This will build the asset and return any build results (errors).
public  StringbuildAssetSource(RuleAsset asset)
     This will return the effective source for an asset (in DRL).
public  BuilderResult[]buildPackage(String packageUUID, String selectorName)
     Build the package (may be a snapshot) and return the result. This will then store the result in the package as an attachment. if a non null selectorName is passed in it will lookup a selector as configured in the systems selectors.properties file.
public  StringbuildPackageSource(String packageUUID)
     This will return the effective DRL for a package.
public  voidchangeAssetPackage(String uuid, String newPackage, String comment)
     This moves an asset to the given target package.
public  voidchangeState(String uuid, String newState, boolean wholePackage)
     This will change the state of an asset or package.
Parameters:
  uuid - The UUID of the asset we are tweaking.
Parameters:
  newState - The new state to set.
public  StringcheckinVersion(RuleAsset asset)
     This checks in a new version of an asset.
public  voidclearRulesRepository()
     Clear the rules repositoty, Use at your own risk.
public  StringcopyAsset(String assetUUID, String newPackage, String newName)
     Copies an asset into a new destination package.
public  voidcopyOrRemoveSnapshot(String packageName, String snapshotName, boolean delete, String newSnapshotName)
     This alters an existing snapshot, it can be used to copy or delete it.
public  voidcopyPackage(String sourcePackageName, String destPackageName)
     Copy the package (everything).
public  BooleancreateCategory(String path, String name, String description)
     This will create a new category at the specified path.
public  StringcreateNewRule(String ruleName, String description, String initialCategory, String initialPackage, String format)
     Creates a brand new rule with the initial category.
public  StringcreatePackage(String name, String description)
     This creates a package of the given name, and checks it in.
public  voidcreatePackageSnapshot(String packageName, String snapshotName, boolean replaceExisting, String comment)
     Create a package snapshot for deployment.
Parameters:
  packageName - THe name of the package to copy.
Parameters:
  snapshotName - The name of the snapshot.
public  StringcreateState(String name)
     Create a state (status).
public  voiddeleteUncheckedRule(String ruleName, String initialPackage)
    
public  byte[]exportRepository()
    
public  TableDataResultlistAssets(String packageUUID, String formats, int numRows, int startRow)
     Given a format, this will return assets that match. It can also be used for "pagination" by passing in start and finish row numbers.
Parameters:
  packageUUID - The package uuid to search inside.
Parameters:
  format - The format to filter on.
Parameters:
  numRows - The number of rows to return.
public  PackageConfigData[]listPackages()
     This returns a list of packages where rules may be added.
public  SnapshotInfo[]listSnapshots(String packageName)
     This will load a list of snapshots for the given package.
public  String[]listStates()
     Returns a list of valid states.
public  TableDataResultloadArchivedAssets()
     This will load all archived assets, in a summary format suitable for display in a table.
public  TableDataResultloadAssetHistory(String uuid)
     This will load the history of the given asset, in a summary format suitable for display in a table.
public  String[]loadChildCategories(String categoryPath)
    
public  PackageConfigDataloadPackageConfig(String uuid)
     Loads a package by its uuid. Well, its pretty obvious if you think about it for a minute.
public  RuleAssetloadRuleAsset(String UUID)
     This loads up all the stuff for a rule asset based on the UUID (always latest and editable version).
public  TableDataResultloadRuleListForCategories(String categoryPath)
     Return a a 2d array/grid of results for rules.
public  SuggestionCompletionEngineloadSuggestionCompletionEngine(String packageName)
     Loads up the SuggestionCompletionEngine for the given package. As this doesn't change that often, its safe to cache.
public  TableConfigloadTableConfig(String listName)
     This will return a TableConfig of header names.
public  TableDataResultquickFindAsset(String searchText, int maxMatches, boolean searchArchived)
     This will quickly return a list of asset names/descriptions.
public  voidremoveAsset(String uuid)
    
public  voidremoveCategory(String categoryPath)
     This will remove a category.
public  StringrenameAsset(String uuid, String newName)
     Rename an asset.
public  StringrenamePackage(String uuid, String newName)
     Rename a package.
public  voidrestoreVersion(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).
public  ValidatedResponsesavePackage(PackageConfigData data)
     Saves the package config data in place (does not create a new version of anything). A ValidatedReponse, with any errors to be reported.No payload is in the response.



Method Detail
archiveAsset
public void archiveAsset(String uuid, boolean value)(Code)
Archive asset based on uuid
Parameters:
  uuid -



buildAsset
public BuilderResult[] buildAsset(RuleAsset asset) throws SerializableException(Code)
This will build the asset and return any build results (errors). This is only to report on the results - it will generally not store any state or apply any changed.



buildAssetSource
public String buildAssetSource(RuleAsset asset) throws SerializableException(Code)
This will return the effective source for an asset (in DRL). Used as an aid for debugging.



buildPackage
public BuilderResult[] buildPackage(String packageUUID, String selectorName) throws SerializableException(Code)
Build the package (may be a snapshot) and return the result. This will then store the result in the package as an attachment. if a non null selectorName is passed in it will lookup a selector as configured in the systems selectors.properties file. This will then apply the filter to the package being built.



buildPackageSource
public String buildPackageSource(String packageUUID) throws SerializableException(Code)
This will return the effective DRL for a package. This would be the equivalent if all the rules were written by hand in the one file. It may not actually be compiled this way in the implementation, so this is for display and debugging assistance only. It should still generate
throws:
  SerializableException -



changeAssetPackage
public void changeAssetPackage(String uuid, String newPackage, String comment)(Code)
This moves an asset to the given target package.



changeState
public void changeState(String uuid, String newState, boolean wholePackage)(Code)
This will change the state of an asset or package.
Parameters:
  uuid - The UUID of the asset we are tweaking.
Parameters:
  newState - The new state to set. It must be valid in the repo.
Parameters:
  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.



checkinVersion
public String checkinVersion(RuleAsset asset) throws SerializableException(Code)
This checks in a new version of an asset. the UUID of the asset you are checking in,null if there was some problem (and an exception was not thrown).



clearRulesRepository
public void clearRulesRepository()(Code)
Clear the rules repositoty, Use at your own risk.



copyAsset
public String copyAsset(String assetUUID, String newPackage, String newName)(Code)
Copies an asset into a new destination package.
Parameters:
  assetUUID - The source assetID.
Parameters:
  newPackage - The destination package (may be the same as the current source package, butin that case the asset has to have a different name).
Parameters:
  newName - The new name of the asset.



copyOrRemoveSnapshot
public void copyOrRemoveSnapshot(String packageName, String snapshotName, boolean delete, String newSnapshotName) throws SerializableException(Code)
This alters an existing snapshot, it can be used to copy or delete it.
Parameters:
  packageName - The package name that we are dealing with.
Parameters:
  snapshotName - The snapshot name (this must exist)
Parameters:
  delete - true if the snapshotName is to be removed.
Parameters:
  newSnapshotName - The name of the target snapshot that the contents will be copied to.



copyPackage
public void copyPackage(String sourcePackageName, String destPackageName) throws SerializableException(Code)
Copy the package (everything).
Parameters:
  sourcePackageName -
Parameters:
  destPackageName -



createCategory
public Boolean createCategory(String path, String name, String description)(Code)
This will create a new category at the specified path.



createNewRule
public String createNewRule(String ruleName, String description, String initialCategory, String initialPackage, String format) throws SerializableException(Code)
Creates a brand new rule with the initial category. Return the UUID of the item created. This will not check in the rule, but just leave it as saved in the repo.



createPackage
public String createPackage(String name, String description) throws SerializableException(Code)
This creates a package of the given name, and checks it in. UUID of the created item.



createPackageSnapshot
public void createPackageSnapshot(String packageName, String snapshotName, boolean replaceExisting, String comment)(Code)
Create a package snapshot for deployment.
Parameters:
  packageName - THe name of the package to copy.
Parameters:
  snapshotName - The name of the snapshot. Has to be unique unless existing one is to be replaced.
Parameters:
  replaceExisting - Replace the existing one (must be true to replace an existing snapshot of the same name).
Parameters:
  comment - A comment to be added to the copied one.



createState
public String createState(String name) throws SerializableException(Code)
Create a state (status). the UUID of the created StateItem.



deleteUncheckedRule
public void deleteUncheckedRule(String ruleName, String initialPackage)(Code)
Delete un checked in Asset



exportRepository
public byte[] exportRepository() throws SerializableException(Code)
Export rules repository to a compressed array of bytes



listAssets
public TableDataResult listAssets(String packageUUID, String formats, int numRows, int startRow) throws SerializableException(Code)
Given a format, this will return assets that match. It can also be used for "pagination" by passing in start and finish row numbers.
Parameters:
  packageUUID - The package uuid to search inside.
Parameters:
  format - The format to filter on.
Parameters:
  numRows - The number of rows to return. -1 means all.
Parameters:
  startRow - The starting row number if paging - if numRows is -1 then this is ignored.



listPackages
public PackageConfigData[] listPackages()(Code)
This returns a list of packages where rules may be added. Only the UUID and the name need to be populated.



listSnapshots
public SnapshotInfo[] listSnapshots(String packageName)(Code)
This will load a list of snapshots for the given package. Snapshots are created by taking a labelled copy of a package, at a point in time, for instance for deployment.



listStates
public String[] listStates() throws SerializableException(Code)
Returns a list of valid states.



loadArchivedAssets
public TableDataResult loadArchivedAssets() throws SerializableException(Code)
This will load all archived assets, in a summary format suitable for display in a table.



loadAssetHistory
public TableDataResult loadAssetHistory(String uuid) throws SerializableException(Code)
This will load the history of the given asset, in a summary format suitable for display in a table.



loadChildCategories
public String[] loadChildCategories(String categoryPath)(Code)

Parameters:
  categoryPath - A "/" delimited path to a category.
Parameters:
  callback -



loadPackageConfig
public PackageConfigData loadPackageConfig(String uuid)(Code)
Loads a package by its uuid. Well, its pretty obvious if you think about it for a minute. Really.



loadRuleAsset
public RuleAsset loadRuleAsset(String UUID) throws SerializableException(Code)
This loads up all the stuff for a rule asset based on the UUID (always latest and editable version).



loadRuleListForCategories
public TableDataResult loadRuleListForCategories(String categoryPath) throws SerializableException(Code)
Return a a 2d array/grid of results for rules.
Parameters:
  A - "/" delimited path to a category.



loadSuggestionCompletionEngine
public SuggestionCompletionEngine loadSuggestionCompletionEngine(String packageName) throws SerializableException(Code)
Loads up the SuggestionCompletionEngine for the given package. As this doesn't change that often, its safe to cache. However, if a change is made to a package, should blow away the cache.



loadTableConfig
public TableConfig loadTableConfig(String listName)(Code)
This will return a TableConfig of header names.
Parameters:
  listName - The name of the list that we are going to render.



quickFindAsset
public TableDataResult quickFindAsset(String searchText, int maxMatches, boolean searchArchived)(Code)
This will quickly return a list of asset names/descriptions. This list will be limited, and it will be flagged if more are found then can be shown. Returning an extra empty row means there are more to come... The id of a row is the UUID, the first value is the name, the next the description. Finally, if there is "more" rows, a row will be returned which has "MORE" as its ID.



removeAsset
public void removeAsset(String uuid)(Code)
Remove an asset based on uuid
Parameters:
  uuid -



removeCategory
public void removeCategory(String categoryPath) throws SerializableException(Code)
This will remove a category. A category must have no current assets linked to it, or else it will not be able to be removed.
Parameters:
  categoryPath - The full path to the category. Any sub categories will alsobe removed.
throws:
  SerializableException - For when it all goes horribly wrong.



renameAsset
public String renameAsset(String uuid, String newName)(Code)
Rename an asset.



renamePackage
public String renamePackage(String uuid, String newName)(Code)
Rename a package.



restoreVersion
public void restoreVersion(String versionUUID, String assetUUID, String comment)(Code)
This will restore the specified version in the repository, saving, and creating a new version (with all the restored content).



savePackage
public ValidatedResponse savePackage(PackageConfigData data) throws SerializableException(Code)
Saves the package config data in place (does not create a new version of anything). A ValidatedReponse, with any errors to be reported.No payload is in the response. If there are any errors, the usershould be given the option to review them, and correct them if needed(but a save will not be prevented this way - as its not an exception).



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.