|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gran.app.adapter.kernel.category.BaseCategoryAdapter
| Constructor Summary | |
BaseCategoryAdapter()
|
|
| Method Summary | |
java.lang.String |
addCategoryImpl(java.lang.String taskid,
java.lang.String name,
java.lang.String workflowid,
java.lang.String isproject,
java.lang.String result)
Add new category |
java.lang.String |
addCategoryRuleImpl(java.lang.String category,
java.lang.String prstatus,
java.lang.String type,
java.lang.String result)
|
java.lang.String |
addChildCategoryImpl(java.lang.String catid,
java.lang.String child,
java.lang.String result)
Add category to the list of allowed subctegories |
java.util.Collection |
availableCategoryListImpl(java.lang.String taskid,
java.lang.String workflowid,
java.util.Collection result)
get available category list each task has own list of available category |
java.util.HashMap |
availableCategoryMapImpl(java.lang.String taskid,
java.util.HashMap result)
|
void |
deleteCategoriesImpl(java.lang.String[] ids)
Delete one or several categories |
void |
deleteChildCategoryImpl(java.lang.String catid,
java.lang.String child)
Delete category from the list of allowed categories |
void |
deleteCreatableCategoryImpl(java.lang.String category,
java.lang.String prstatus)
Set, that users with some prstatus (group) can't create tasks of some category |
void |
deleteDeletableCategoryImpl(java.lang.String category,
java.lang.String prstatus)
Set, that users with some prstatus (group) can't delete tasks of some category |
void |
deleteEditableCategoryImpl(java.lang.String category,
java.lang.String prstatus)
Set, that users with some prstatus (group) can't edit tasks of some category |
java.util.Collection |
getCategoryRuleImpl(java.lang.String prstatus,
java.lang.String categoryid,
java.util.Collection result)
|
java.util.Collection |
getChildCategoriesImpl(java.lang.String catid,
java.util.Collection result)
Get list of available subcategories of category |
java.lang.String |
getDescription()
Get description of adapter as plain text |
boolean |
init()
Initialize adapter. |
java.util.Collection |
listCreatableCategoriesImpl(java.lang.String userid,
java.lang.String taskid,
java.util.Collection result)
Get list of categories, that some user can create |
java.util.Collection |
listDeletableCategoriesImpl(java.lang.String userid,
java.lang.String taskid,
java.util.Collection result)
Get list of categories, that some user can delete |
java.util.Collection |
listEditableCategoriesImpl(java.lang.String userid,
java.lang.String taskid,
java.util.Collection result)
Get list of categories, that some user can edit |
void |
updateCategoryImpl(java.lang.String catid,
java.lang.String name,
java.lang.String workflowid,
java.lang.String isproject)
Update general category description |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BaseCategoryAdapter()
| Method Detail |
public boolean init()
Adapter
init in interface Adapterpublic java.lang.String getDescription()
Adapter
getDescription in interface Adapter
public void deleteCategoriesImpl(java.lang.String[] ids)
throws gran.exception.GranException
CategoryAdapter
deleteCategoriesImpl in interface CategoryAdaptergran.exception.GranException
public void updateCategoryImpl(java.lang.String catid,
java.lang.String name,
java.lang.String workflowid,
java.lang.String isproject)
throws gran.exception.GranException
CategoryAdapter
updateCategoryImpl in interface CategoryAdaptercatid - - category identifiername - - catefory nameworkflowid - - identifier of workflow for this categoryisproject - - this is project category or task category ?
gran.exception.GranException
public java.util.Collection availableCategoryListImpl(java.lang.String taskid,
java.lang.String workflowid,
java.util.Collection result)
throws gran.exception.GranException
CategoryAdapter
availableCategoryListImpl in interface CategoryAdapterworkflowid - if specified - gets list for this workflow, else for all available
gran.exception.GranException
public java.util.HashMap availableCategoryMapImpl(java.lang.String taskid,
java.util.HashMap result)
throws gran.exception.GranException
availableCategoryMapImpl in interface CategoryAdaptergran.exception.GranException
public java.lang.String addCategoryImpl(java.lang.String taskid,
java.lang.String name,
java.lang.String workflowid,
java.lang.String isproject,
java.lang.String result)
throws gran.exception.GranException
CategoryAdapter
addCategoryImpl in interface CategoryAdaptergran.exception.GranException
public java.util.Collection getChildCategoriesImpl(java.lang.String catid,
java.util.Collection result)
throws gran.exception.GranException
CategoryAdapter
getChildCategoriesImpl in interface CategoryAdaptergran.exception.GranException
public java.util.Collection getCategoryRuleImpl(java.lang.String prstatus,
java.lang.String categoryid,
java.util.Collection result)
throws gran.exception.GranException
getCategoryRuleImpl in interface CategoryAdaptergran.exception.GranException
public java.lang.String addCategoryRuleImpl(java.lang.String category,
java.lang.String prstatus,
java.lang.String type,
java.lang.String result)
throws gran.exception.GranException
addCategoryRuleImpl in interface CategoryAdaptergran.exception.GranException
public void deleteEditableCategoryImpl(java.lang.String category,
java.lang.String prstatus)
throws gran.exception.GranException
CategoryAdapter
deleteEditableCategoryImpl in interface CategoryAdaptergran.exception.GranException
public void deleteCreatableCategoryImpl(java.lang.String category,
java.lang.String prstatus)
throws gran.exception.GranException
CategoryAdapter
deleteCreatableCategoryImpl in interface CategoryAdaptergran.exception.GranException
public void deleteDeletableCategoryImpl(java.lang.String category,
java.lang.String prstatus)
throws gran.exception.GranException
CategoryAdapter
deleteDeletableCategoryImpl in interface CategoryAdaptergran.exception.GranException
public java.lang.String addChildCategoryImpl(java.lang.String catid,
java.lang.String child,
java.lang.String result)
throws gran.exception.GranException
CategoryAdapter
addChildCategoryImpl in interface CategoryAdaptergran.exception.GranException
public void deleteChildCategoryImpl(java.lang.String catid,
java.lang.String child)
throws gran.exception.GranException
CategoryAdapter
deleteChildCategoryImpl in interface CategoryAdaptergran.exception.GranException
public java.util.Collection listCreatableCategoriesImpl(java.lang.String userid,
java.lang.String taskid,
java.util.Collection result)
throws gran.exception.GranException
CategoryAdapter
listCreatableCategoriesImpl in interface CategoryAdaptergran.exception.GranException
public java.util.Collection listEditableCategoriesImpl(java.lang.String userid,
java.lang.String taskid,
java.util.Collection result)
throws gran.exception.GranException
CategoryAdapter
listEditableCategoriesImpl in interface CategoryAdaptergran.exception.GranException
public java.util.Collection listDeletableCategoriesImpl(java.lang.String userid,
java.lang.String taskid,
java.util.Collection result)
throws gran.exception.GranException
CategoryAdapter
listDeletableCategoriesImpl in interface CategoryAdaptergran.exception.GranException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||