gran.app.adapter.external
Interface SecuredCategoryAdapter

All Superinterfaces:
Adapter, SecuredAdapter
All Known Implementing Classes:
BaseSecuredCategoryAdapter

public interface SecuredCategoryAdapter
extends SecuredAdapter

This adapter implements basic operations with task's catefories


Method Summary
 boolean canChangeWorkflowImpl(java.lang.String sessionId, java.lang.String categoryId, boolean result)
          Returns true if can change Workflow.
 java.lang.String createCategoryImpl(java.lang.String sessionId, java.lang.String taskId, java.lang.String name, java.lang.String workflowId, boolean isproject, java.lang.String result)
          Create new Category.
 void deleteCategoryImpl(java.lang.String sessionId, java.lang.String categoryId)
          Deletes specified Category.
 java.util.ArrayList getAvailableCategoryListImpl(java.lang.String sessionId, java.lang.String taskId, java.util.ArrayList result)
          Returns available Category list for specified Task.
 java.util.ArrayList getCategoryRuleListImpl(java.lang.String sessionId, java.lang.String prstatusId, java.lang.String categoryId, java.util.ArrayList result)
          Returns list of rules for specified Category and Prstatus.
 java.util.ArrayList getChildrenCategoryListImpl(java.lang.String sessionId, java.lang.String categoryId, java.util.ArrayList result)
          Returns available Categories for specified Category.
 java.util.ArrayList getCreatableCategoryListImpl(java.lang.String sessionId, java.lang.String taskId, java.util.ArrayList result)
          Get list of categories, that some user can create.
 java.util.ArrayList getDeletableCategoryListImpl(java.lang.String sessionId, java.lang.String taskId, java.util.ArrayList result)
          Get list of categories, that some user can delete.
 java.util.ArrayList getEditableCategoryListImpl(java.lang.String sessionId, java.lang.String taskId, java.util.ArrayList result)
          Get list of categories, that some user can edit.
 void resetCategoryRelationImpl(java.lang.String sessionId, java.lang.String parentCategoryId, java.lang.String childCategoryId)
          Deletes Category from the list of allowed categories.
 void resetCreatableCategoryRuleImpl(java.lang.String sessionId, java.lang.String categoryId, java.lang.String prstatusId)
          Set, that Users with some Prstatus can't create Tasks of some Category.
 void resetDeletableCategoryRuleImpl(java.lang.String sessionId, java.lang.String categoryId, java.lang.String prstatusId)
          Set, that Users with some Prstatus can't delete Tasks of some Category.
 void resetEditableCategoryRuleImpl(java.lang.String sessionId, java.lang.String categoryId, java.lang.String prstatusId)
          Sets, that Users with some Prstatus (group) can't edit Tasks of some Category.
 void setCategoryRelationImpl(java.lang.String sessionId, java.lang.String parentCategoryId, java.lang.String childCategoryId)
          Adds Category to the list of allowed subctegories.
 java.lang.String setCategoryRuleImpl(java.lang.String sessionId, java.lang.String categoryId, java.lang.String prstatusId, java.lang.String type, java.lang.String result)
          Sets the rule for Caterory.
 void updateCategoryImpl(java.lang.String sessionId, java.lang.String categoryId, java.lang.String name, java.lang.String workflowId, boolean isproject)
          Updates specified Category.
 
Methods inherited from interface gran.app.adapter.Adapter
getDescription, init
 

Method Detail

deleteCategoryImpl

public void deleteCategoryImpl(java.lang.String sessionId,
                               java.lang.String categoryId)
                        throws GranException
Deletes specified Category.

Parameters:
sessionId -
categoryId -
Throws:
GranException

updateCategoryImpl

public void updateCategoryImpl(java.lang.String sessionId,
                               java.lang.String categoryId,
                               java.lang.String name,
                               java.lang.String workflowId,
                               boolean isproject)
                        throws GranException
Updates specified Category.

Parameters:
sessionId -
categoryId -
name -
workflowId -
isproject -
Throws:
GranException

getAvailableCategoryListImpl

public java.util.ArrayList getAvailableCategoryListImpl(java.lang.String sessionId,
                                                        java.lang.String taskId,
                                                        java.util.ArrayList result)
                                                 throws GranException
Returns available Category list for specified Task.

Parameters:
sessionId -
taskId -
result -
Returns:
list of SecuredCategoryBeans
Throws:
GranException
See Also:
SecuredCategoryBean

createCategoryImpl

public java.lang.String createCategoryImpl(java.lang.String sessionId,
                                           java.lang.String taskId,
                                           java.lang.String name,
                                           java.lang.String workflowId,
                                           boolean isproject,
                                           java.lang.String result)
                                    throws GranException
Create new Category.

Parameters:
sessionId -
taskId -
name -
workflowId -
isproject -
result -
Returns:
a new Category ID
Throws:
GranException

getChildrenCategoryListImpl

public java.util.ArrayList getChildrenCategoryListImpl(java.lang.String sessionId,
                                                       java.lang.String categoryId,
                                                       java.util.ArrayList result)
                                                throws GranException
Returns available Categories for specified Category.

Parameters:
sessionId -
categoryId -
result -
Returns:
list of SecuredCategoryBeans
Throws:
GranException
See Also:
SecuredCategoryBean

resetEditableCategoryRuleImpl

public void resetEditableCategoryRuleImpl(java.lang.String sessionId,
                                          java.lang.String categoryId,
                                          java.lang.String prstatusId)
                                   throws GranException
Sets, that Users with some Prstatus (group) can't edit Tasks of some Category.

Parameters:
sessionId -
categoryId -
prstatusId -
Throws:
GranException

resetCreatableCategoryRuleImpl

public void resetCreatableCategoryRuleImpl(java.lang.String sessionId,
                                           java.lang.String categoryId,
                                           java.lang.String prstatusId)
                                    throws GranException
Set, that Users with some Prstatus can't create Tasks of some Category.

Parameters:
sessionId -
categoryId -
prstatusId -
Throws:
GranException

setCategoryRuleImpl

public java.lang.String setCategoryRuleImpl(java.lang.String sessionId,
                                            java.lang.String categoryId,
                                            java.lang.String prstatusId,
                                            java.lang.String type,
                                            java.lang.String result)
                                     throws GranException
Sets the rule for Caterory.

Parameters:
sessionId -
categoryId -
prstatusId -
type - who can action
result -
Returns:
category rule identifier
Throws:
GranException
See Also:
for type values

resetDeletableCategoryRuleImpl

public void resetDeletableCategoryRuleImpl(java.lang.String sessionId,
                                           java.lang.String categoryId,
                                           java.lang.String prstatusId)
                                    throws GranException
Set, that Users with some Prstatus can't delete Tasks of some Category.

Parameters:
sessionId -
categoryId -
prstatusId -
Throws:
GranException

setCategoryRelationImpl

public void setCategoryRelationImpl(java.lang.String sessionId,
                                    java.lang.String parentCategoryId,
                                    java.lang.String childCategoryId)
                             throws GranException
Adds Category to the list of allowed subctegories.

Parameters:
sessionId -
parentCategoryId -
childCategoryId -
Throws:
GranException

resetCategoryRelationImpl

public void resetCategoryRelationImpl(java.lang.String sessionId,
                                      java.lang.String parentCategoryId,
                                      java.lang.String childCategoryId)
                               throws GranException
Deletes Category from the list of allowed categories.

Parameters:
sessionId -
parentCategoryId -
childCategoryId -
Throws:
GranException

getCreatableCategoryListImpl

public java.util.ArrayList getCreatableCategoryListImpl(java.lang.String sessionId,
                                                        java.lang.String taskId,
                                                        java.util.ArrayList result)
                                                 throws GranException
Get list of categories, that some user can create.

Parameters:
sessionId -
taskId -
result -
Returns:
list of SecuredCategoryBeans
Throws:
GranException
See Also:
SecuredCategoryBean

getEditableCategoryListImpl

public java.util.ArrayList getEditableCategoryListImpl(java.lang.String sessionId,
                                                       java.lang.String taskId,
                                                       java.util.ArrayList result)
                                                throws GranException
Get list of categories, that some user can edit. Available via SOAP.

Parameters:
sessionId -
taskId -
result -
Returns:
list of SecuredCategoryBeans
Throws:
GranException
See Also:
SecuredCategoryBean

getDeletableCategoryListImpl

public java.util.ArrayList getDeletableCategoryListImpl(java.lang.String sessionId,
                                                        java.lang.String taskId,
                                                        java.util.ArrayList result)
                                                 throws GranException
Get list of categories, that some user can delete. Available via SOAP.

Parameters:
sessionId -
taskId -
result -
Returns:
list of SecuredCategoryBeans
Throws:
GranException
See Also:
SecuredCategoryBean

getCategoryRuleListImpl

public java.util.ArrayList getCategoryRuleListImpl(java.lang.String sessionId,
                                                   java.lang.String prstatusId,
                                                   java.lang.String categoryId,
                                                   java.util.ArrayList result)
                                            throws GranException
Returns list of rules for specified Category and Prstatus. Available via SOAP.

Parameters:
sessionId -
prstatusId -
categoryId -
result -
Returns:
list of rules. It's a Cprstatus.type
Throws:
GranException

canChangeWorkflowImpl

public boolean canChangeWorkflowImpl(java.lang.String sessionId,
                                     java.lang.String categoryId,
                                     boolean result)
                              throws GranException
Returns true if can change Workflow. Available via SOAP.

Parameters:
sessionId -
categoryId -
result -
Returns:
true if can, false if can not
Throws:
GranException


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