gran.app.adapter.kernel.category
Interface CategoryAdapter

All Superinterfaces:
Adapter, KernelAdapter
All Known Implementing Classes:
BaseCategoryAdapter

public interface CategoryAdapter
extends KernelAdapter

This adapter implement basic operations with task's catefories


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)
           
 boolean canChangeWorkflowImpl(java.lang.String categoryid, boolean 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 prstatusid, 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.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 interface gran.app.adapter.Adapter
getDescription, init
 

Method Detail

deleteCategoriesImpl

public void deleteCategoriesImpl(java.lang.String[] ids)
                          throws gran.exception.GranException
Delete one or several categories

Throws:
gran.exception.GranException

updateCategoryImpl

public void updateCategoryImpl(java.lang.String catid,
                               java.lang.String name,
                               java.lang.String workflowid,
                               java.lang.String isproject)
                        throws gran.exception.GranException
Update general category description

Parameters:
catid - - category identifier
name - - catefory name
workflowid - - identifier of workflow for this category
isproject - - this is project category or task category ?
Throws:
gran.exception.GranException

availableCategoryListImpl

public java.util.Collection availableCategoryListImpl(java.lang.String taskid,
                                                      java.lang.String workflowid,
                                                      java.util.Collection result)
                                               throws gran.exception.GranException
get available category list each task has own list of available category

Parameters:
workflowid - if specified - gets list for this workflow, else for all available
Throws:
gran.exception.GranException

availableCategoryMapImpl

public java.util.HashMap availableCategoryMapImpl(java.lang.String taskid,
                                                  java.util.HashMap result)
                                           throws gran.exception.GranException
Throws:
gran.exception.GranException

addCategoryImpl

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
Add new category

Throws:
gran.exception.GranException

getChildCategoriesImpl

public java.util.Collection getChildCategoriesImpl(java.lang.String catid,
                                                   java.util.Collection result)
                                            throws gran.exception.GranException
Get list of available subcategories of category

Throws:
gran.exception.GranException

deleteEditableCategoryImpl

public void deleteEditableCategoryImpl(java.lang.String category,
                                       java.lang.String prstatus)
                                throws gran.exception.GranException
Set, that users with some prstatus (group) can't edit tasks of some category

Throws:
gran.exception.GranException

deleteCreatableCategoryImpl

public void deleteCreatableCategoryImpl(java.lang.String category,
                                        java.lang.String prstatus)
                                 throws gran.exception.GranException
Set, that users with some prstatus (group) can't create tasks of some category

Throws:
gran.exception.GranException

addCategoryRuleImpl

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
Throws:
gran.exception.GranException

deleteDeletableCategoryImpl

public void deleteDeletableCategoryImpl(java.lang.String category,
                                        java.lang.String prstatus)
                                 throws gran.exception.GranException
Set, that users with some prstatus (group) can't delete tasks of some category

Throws:
gran.exception.GranException

addChildCategoryImpl

public java.lang.String addChildCategoryImpl(java.lang.String catid,
                                             java.lang.String child,
                                             java.lang.String result)
                                      throws gran.exception.GranException
Add category to the list of allowed subctegories

Throws:
gran.exception.GranException

deleteChildCategoryImpl

public void deleteChildCategoryImpl(java.lang.String catid,
                                    java.lang.String child)
                             throws gran.exception.GranException
Delete category from the list of allowed categories

Throws:
gran.exception.GranException

listCreatableCategoriesImpl

public java.util.Collection listCreatableCategoriesImpl(java.lang.String userid,
                                                        java.lang.String taskid,
                                                        java.util.Collection result)
                                                 throws gran.exception.GranException
Get list of categories, that some user can create

Throws:
gran.exception.GranException

listEditableCategoriesImpl

public java.util.Collection listEditableCategoriesImpl(java.lang.String userid,
                                                       java.lang.String taskid,
                                                       java.util.Collection result)
                                                throws gran.exception.GranException
Get list of categories, that some user can edit

Throws:
gran.exception.GranException

listDeletableCategoriesImpl

public java.util.Collection listDeletableCategoriesImpl(java.lang.String userid,
                                                        java.lang.String taskid,
                                                        java.util.Collection result)
                                                 throws gran.exception.GranException
Get list of categories, that some user can delete

Throws:
gran.exception.GranException

getCategoryRuleImpl

public java.util.Collection getCategoryRuleImpl(java.lang.String prstatusid,
                                                java.lang.String categoryid,
                                                java.util.Collection result)
                                         throws gran.exception.GranException
Throws:
gran.exception.GranException

canChangeWorkflowImpl

public boolean canChangeWorkflowImpl(java.lang.String categoryid,
                                     boolean result)
                              throws gran.exception.GranException
Throws:
gran.exception.GranException


Copyright © 2002-2003 TrackStudio, Ltd. All Rights Reserved.