gran.app.adapter.external.category
Class BaseSecuredCategoryAdapter

java.lang.Object
  extended bygran.app.adapter.external.category.BaseSecuredCategoryAdapter
All Implemented Interfaces:
Adapter, SecuredAdapter, SecuredCategoryAdapter

public class BaseSecuredCategoryAdapter
extends java.lang.Object
implements SecuredCategoryAdapter


Constructor Summary
BaseSecuredCategoryAdapter()
           
 
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 getDescription()
          Get description of adapter as plain text
 java.lang.String getTemplateImpl(SessionContext sc, java.lang.String categoryId)
           
 boolean init()
          Initialize adapter.
 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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseSecuredCategoryAdapter

public BaseSecuredCategoryAdapter()
Method Detail

init

public boolean init()
Description copied from interface: Adapter
Initialize adapter. TrackStudio calls this method during startup.

Specified by:
init in interface Adapter
Returns:
true when adapter initialized, false otherwise.

getDescription

public java.lang.String getDescription()
Description copied from interface: Adapter
Get description of adapter as plain text

Specified by:
getDescription in interface Adapter

deleteCategoryImpl

public void deleteCategoryImpl(SessionContext sc,
                               java.lang.String categoryId)
                        throws GranException
Description copied from interface: SecuredCategoryAdapter
Deletes specified Category.

Specified by:
deleteCategoryImpl in interface SecuredCategoryAdapter
Parameters:
sc -
categoryId -
Throws:
GranException

getTemplateImpl

public java.lang.String getTemplateImpl(SessionContext sc,
                                        java.lang.String categoryId)
                                 throws GranException
Specified by:
getTemplateImpl in interface SecuredCategoryAdapter
Throws:
GranException

setTemplateImpl

public void setTemplateImpl(SessionContext sc,
                            java.lang.String categoryId,
                            java.lang.String template)
                     throws GranException
Specified by:
setTemplateImpl in interface SecuredCategoryAdapter
Throws:
GranException

editCategoryImpl

public void editCategoryImpl(SessionContext sc,
                             java.lang.String categoryId,
                             java.lang.String workflowId)
                      throws GranException
Description copied from interface: SecuredCategoryAdapter
Updates specified Category.

Specified by:
editCategoryImpl in interface SecuredCategoryAdapter
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
Specified by:
renameCategoryImpl in interface SecuredCategoryAdapter
Throws:
GranException

getAvailableCategoryListImpl

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

Specified by:
getAvailableCategoryListImpl in interface SecuredCategoryAdapter
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
Description copied from interface: SecuredCategoryAdapter
Create new Category.

Specified by:
createCategoryImpl in interface SecuredCategoryAdapter
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
Description copied from interface: SecuredCategoryAdapter
Returns available Categories for specified Category.

Specified by:
getChildrenCategoryListImpl in interface SecuredCategoryAdapter
Parameters:
sc -
categoryId -
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
Description copied from interface: SecuredCategoryAdapter
Returns list of rules for specified Category and Prstatus Available via SOAP.

Specified by:
getCategoryRuleListImpl in interface SecuredCategoryAdapter
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
Description copied from interface: SecuredCategoryAdapter
Returns true if can change Workflow. Available via SOAP.

Specified by:
canChangeWorkflowImpl in interface SecuredCategoryAdapter
Parameters:
sc -
categoryId -
result -
Returns:
true if can, false if can not
Throws:
GranException

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
Description copied from interface: SecuredCategoryAdapter
Sets the rule for Caterory.

Specified by:
setCategoryRuleImpl in interface SecuredCategoryAdapter
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
Specified by:
addRelatedCategoryImpl in interface SecuredCategoryAdapter
Throws:
GranException

removeRelatedCategoryImpl

public void removeRelatedCategoryImpl(SessionContext sc,
                                      java.lang.String parentCategoryId,
                                      java.lang.String related)
                               throws GranException
Specified by:
removeRelatedCategoryImpl in interface SecuredCategoryAdapter
Throws:
GranException

getCreatableCategoryListImpl

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

Specified by:
getCreatableCategoryListImpl in interface SecuredCategoryAdapter
Parameters:
sc -
taskId -
result -
Returns:
list of SecuredCategoryBeans
Throws:
GranException
See Also:
SecuredCategoryBean

isCategoryEditableImpl

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

Specified by:
isCategoryEditableImpl in interface SecuredCategoryAdapter
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
Description copied from interface: SecuredCategoryAdapter
Returns true if can delete category Available via SOAP.

Specified by:
isCategoryDeletableImpl in interface SecuredCategoryAdapter
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
Specified by:
isCategoryViewableImpl in interface SecuredCategoryAdapter
Throws:
GranException

isCategoryCanBeHandlerImpl

public boolean isCategoryCanBeHandlerImpl(SessionContext sc,
                                          java.lang.String taskId,
                                          java.lang.String categoryId,
                                          boolean result)
                                   throws GranException
Specified by:
isCategoryCanBeHandlerImpl in interface SecuredCategoryAdapter
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
Specified by:
setCategoryTriggerImpl in interface SecuredCategoryAdapter
Throws:
GranException


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