org.drools.guvnor.client.rpc
Interface CategoryService

All Superinterfaces:
com.google.gwt.user.client.rpc.RemoteService
All Known Implementing Classes:
RepositoryCategoryService, RepositoryServiceServlet

public interface CategoryService
extends com.google.gwt.user.client.rpc.RemoteService


Method Summary
 Boolean createCategory(String path, String name, String description)
          This will create a new category at the specified path.
 String[] loadChildCategories(String categoryPath)
           
 PageResponse<CategoryPageRow> loadRuleListForCategories(CategoryPageRequest request)
          Return a list of Assets by category.
 TableDataResult loadRuleListForCategories(String categoryPath, int skip, int numRows, String tableConfig)
          Deprecated. in favour of loadRuleListForCategories(CategoryPageRequest)
 void removeCategory(String categoryPath)
          This will remove a category.
 void renameCategory(String fullPathAndName, String newName)
          Rename a category - taking in the full path, and just the new name.
 

Method Detail

loadChildCategories

String[] loadChildCategories(String categoryPath)
Parameters:
categoryPath - A "/" delimited path to a category.
callback -

loadRuleListForCategories

TableDataResult loadRuleListForCategories(String categoryPath,
                                          int skip,
                                          int numRows,
                                          String tableConfig)
                                          throws com.google.gwt.user.client.rpc.SerializationException
Deprecated. in favour of loadRuleListForCategories(CategoryPageRequest)

Return a a 2d array/grid of results for rules.

Parameters:
A - "/" delimited path to a category.
Throws:
com.google.gwt.user.client.rpc.SerializationException

loadRuleListForCategories

PageResponse<CategoryPageRow> loadRuleListForCategories(CategoryPageRequest request)
                                                        throws com.google.gwt.user.client.rpc.SerializationException
Return a list of Assets by category.

Parameters:
request - Request specific details
Throws:
com.google.gwt.user.client.rpc.SerializationException

createCategory

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


removeCategory

void removeCategory(String categoryPath)
                    throws com.google.gwt.user.client.rpc.SerializationException
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 also be removed.
Throws:
com.google.gwt.user.client.rpc.SerializationException - For when it all goes horribly wrong.

renameCategory

void renameCategory(String fullPathAndName,
                    String newName)
Rename a category - taking in the full path, and just the new name.



Copyright © 2001-2011 JBoss Inc.. All Rights Reserved.