|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.guvnor.server.RepositoryCategoryService
@Name(value="org.drools.guvnor.client.rpc.CategoryService") @AutoCreate public class RepositoryCategoryService
Constructor Summary | |
---|---|
RepositoryCategoryService()
|
Method Summary | |
---|---|
void |
create()
|
Boolean |
createCategory(String path,
String name,
String description)
This will create a new category at the specified path. |
RulesRepository |
getRulesRepository()
|
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. |
void |
setRulesRepository(RulesRepository repository)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RepositoryCategoryService()
Method Detail |
---|
@Create public void create()
public void setRulesRepository(RulesRepository repository)
public RulesRepository getRulesRepository()
@WebRemote @Restrict(value="#{identity.loggedIn}") public String[] loadChildCategories(String categoryPath)
loadChildCategories
in interface CategoryService
categoryPath
- A "/" delimited path to a category.@WebRemote public Boolean createCategory(String path, String name, String description)
CategoryService
createCategory
in interface CategoryService
@WebRemote @Restrict(value="#{identity.loggedIn}") public void renameCategory(String fullPathAndName, String newName)
CategoryService
renameCategory
in interface CategoryService
@WebRemote @Restrict(value="#{identity.loggedIn}") public TableDataResult loadRuleListForCategories(String categoryPath, int skip, int numRows, String tableConfig) throws com.google.gwt.user.client.rpc.SerializationException
loadRuleListForCategories(CategoryPageRequest)
loadRuleListForCategories
in interface CategoryService
com.google.gwt.user.client.rpc.SerializationException
@WebRemote @Restrict(value="#{identity.loggedIn}") public PageResponse<CategoryPageRow> loadRuleListForCategories(CategoryPageRequest request) throws com.google.gwt.user.client.rpc.SerializationException
CategoryService
loadRuleListForCategories
in interface CategoryService
request
- Request specific details
com.google.gwt.user.client.rpc.SerializationException
@WebRemote @Restrict(value="#{identity.loggedIn}") public void removeCategory(String categoryPath) throws com.google.gwt.user.client.rpc.SerializationException
CategoryService
removeCategory
in interface CategoryService
categoryPath
- The full path to the category. Any sub categories will also be
removed.
com.google.gwt.user.client.rpc.SerializationException
- For when it all goes horribly wrong.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |