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
 void addRelatedCategoryImpl(SessionContext sc, java.lang.String parentCategoryId, java.lang.String related)
           
 boolean canChangeWorkflowImpl(SessionContext sc, java.lang.String categoryId, boolean result)
          Returns true if can change Workflow.
 java.lang.String createCategoryImpl(SessionContext sc, java.lang.String taskId, java.lang.String name, java.lang.String workflowId, boolean handlerRequired, boolean groupHandlerAllowed, java.lang.String result)
          Create new Category.
 void deleteCategoryImpl(SessionContext sc, java.lang.String categoryId)
          Deletes specified Category.
 void editCategoryImpl(SessionContext sc, java.lang.String categoryId, java.lang.String workflowId)
          Updates specified Category.
 java.util.List getAvailableCategoryListImpl(SessionContext sc, java.lang.String taskId, java.util.List result)
          Returns available Category list for specified Task.
 java.util.List getCategoryRuleListImpl(SessionContext sc, java.lang.String prstatusId, java.lang.String categoryId, java.util.List result)
          Returns list of rules for specified Category and Prstatus Available via SOAP.
 java.util.List getChildrenCategoryListImpl(SessionContext sc, java.lang.String categoryId, java.lang.String taskId, java.util.List result)
          Returns available Categories for specified Category.
 java.util.List getCreatableCategoryListImpl(SessionContext sc, java.lang.String taskId, java.util.List result)
          Get list of categories, that some user can create.
 java.lang.String getTemplateImpl(SessionContext sc, java.lang.String categoryId)
           
 boolean isCategoryCanBeHandlerImpl(SessionContext sc, java.lang.String taskId, java.lang.String categoryId, boolean result)
           
 boolean isCategoryDeletableImpl(SessionContext sc, java.lang.String taskId, java.lang.String categoryId, boolean result)
          Returns true if can delete category Available via SOAP.
 boolean isCategoryEditableImpl(SessionContext sc, java.lang.String taskId, java.lang.String categoryId, boolean result)
          Returns true if can edit category Available via SOAP.
 boolean isCategoryViewableImpl(SessionContext sc, java.lang.String taskId, java.lang.String categoryId, boolean result)
           
 void removeRelatedCategoryImpl(SessionContext sc, java.lang.String parentCategoryId, java.lang.String related)
           
 void renameCategoryImpl(SessionContext sc, java.lang.String categoryId, java.lang.String name, boolean handlerRequired, boolean groupHandlerAllowed)
           
 void setCategoryRuleImpl(SessionContext sc, java.lang.String categoryId, java.lang.String prstatusId, java.lang.String createType, java.lang.String viewType, java.lang.String modifyType, java.lang.String handlerType, java.lang.String deleteType)
          Sets the rule for Caterory.
 void setCategoryTriggerImpl(SessionContext sc, java.lang.String categoryId, java.lang.String before, java.lang.String insteadOf, java.lang.String after, java.lang.String updBefore, java.lang.String updInsteadOf, java.lang.String updAfter)
           
 void setTemplateImpl(SessionContext sc, java.lang.String categoryId, java.lang.String template)
           
 
Methods inherited from interface gran.app.adapter.Adapter
getDescription, init
 

Method Detail

deleteCategoryImpl

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

Parameters:
sc -
categoryId -
Throws:
GranException

getTemplateImpl

public java.lang.String getTemplateImpl(SessionContext sc,
                                        java.lang.String categoryId)
                                 throws GranException
Throws:
GranException

setTemplateImpl

public void setTemplateImpl(SessionContext sc,
                            java.lang.String categoryId,
                            java.lang.String template)
                     throws GranException
Throws:
GranException

editCategoryImpl

public void editCategoryImpl(SessionContext sc,
                             java.lang.String categoryId,
                             java.lang.String workflowId)
                      throws GranException
Updates specified Category.

Parameters:
sc -
categoryId -
workflowId -
Throws:
GranException

renameCategoryImpl

public void renameCategoryImpl(SessionContext sc,
                               java.lang.String categoryId,
                               java.lang.String name,
                               boolean handlerRequired,
                               boolean groupHandlerAllowed)
                        throws GranException
Throws:
GranException

getAvailableCategoryListImpl

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

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

createCategoryImpl

public java.lang.String createCategoryImpl(SessionContext sc,
                                           java.lang.String taskId,
                                           java.lang.String name,
                                           java.lang.String workflowId,
                                           boolean handlerRequired,
                                           boolean groupHandlerAllowed,
                                           java.lang.String result)
                                    throws GranException
Create new Category.

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

getChildrenCategoryListImpl

public java.util.List getChildrenCategoryListImpl(SessionContext sc,
                                                  java.lang.String categoryId,
                                                  java.lang.String taskId,
                                                  java.util.List result)
                                           throws GranException
Returns available Categories for specified Category.

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

setCategoryRuleImpl

public void setCategoryRuleImpl(SessionContext sc,
                                java.lang.String categoryId,
                                java.lang.String prstatusId,
                                java.lang.String createType,
                                java.lang.String viewType,
                                java.lang.String modifyType,
                                java.lang.String handlerType,
                                java.lang.String deleteType)
                         throws GranException
Sets the rule for Caterory.

Parameters:
sc -
categoryId -
prstatusId -
Throws:
GranException
See Also:
for type values

addRelatedCategoryImpl

public void addRelatedCategoryImpl(SessionContext sc,
                                   java.lang.String parentCategoryId,
                                   java.lang.String related)
                            throws GranException
Throws:
GranException

removeRelatedCategoryImpl

public void removeRelatedCategoryImpl(SessionContext sc,
                                      java.lang.String parentCategoryId,
                                      java.lang.String related)
                               throws GranException
Throws:
GranException

getCreatableCategoryListImpl

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

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

getCategoryRuleListImpl

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

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

canChangeWorkflowImpl

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

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

isCategoryEditableImpl

public boolean isCategoryEditableImpl(SessionContext sc,
                                      java.lang.String taskId,
                                      java.lang.String categoryId,
                                      boolean result)
                               throws GranException
Returns true if can edit category Available via SOAP.

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

isCategoryDeletableImpl

public boolean isCategoryDeletableImpl(SessionContext sc,
                                       java.lang.String taskId,
                                       java.lang.String categoryId,
                                       boolean result)
                                throws GranException
Returns true if can delete category Available via SOAP.

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

isCategoryViewableImpl

public boolean isCategoryViewableImpl(SessionContext sc,
                                      java.lang.String taskId,
                                      java.lang.String categoryId,
                                      boolean result)
                               throws GranException
Throws:
GranException

isCategoryCanBeHandlerImpl

public boolean isCategoryCanBeHandlerImpl(SessionContext sc,
                                          java.lang.String taskId,
                                          java.lang.String categoryId,
                                          boolean result)
                                   throws GranException
Throws:
GranException

setCategoryTriggerImpl

public void setCategoryTriggerImpl(SessionContext sc,
                                   java.lang.String categoryId,
                                   java.lang.String before,
                                   java.lang.String insteadOf,
                                   java.lang.String after,
                                   java.lang.String updBefore,
                                   java.lang.String updInsteadOf,
                                   java.lang.String updAfter)
                            throws GranException
Throws:
GranException


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