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
 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 project, java.lang.String result)
          Create new Category.
 void deleteCategoryImpl(java.lang.String sessionId, java.lang.String id)
          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 prstatus, 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 catid, 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.lang.String getDescription()
          Get description of adapter as plain text
 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.
 boolean init()
          Initialize adapter.
 void resetCategoryRelationImpl(java.lang.String sessionId, java.lang.String parentId, java.lang.String childId)
          Deletes Category from the list of allowed categories.
 void resetCreatableCategoryRuleImpl(java.lang.String sessionId, java.lang.String category, java.lang.String prstatus)
          Set, that Users with some Prstatus can't create Tasks of some Category.
 void resetDeletableCategoryRuleImpl(java.lang.String sessionId, java.lang.String category, java.lang.String prstatus)
          Set, that Users with some Prstatus can't delete Tasks of some Category.
 void resetEditableCategoryRuleImpl(java.lang.String sessionId, java.lang.String category, java.lang.String prstatus)
          Sets, that Users with some Prstatus (group) can't edit Tasks of some Category.
 void setCategoryRelationImpl(java.lang.String sessionId, java.lang.String parentId, java.lang.String childId)
          Adds Category to the list of allowed subctegories.
 java.lang.String setCategoryRuleImpl(java.lang.String sessionId, java.lang.String category, java.lang.String prstatus, java.lang.String type, java.lang.String result)
          Sets the rule for Caterory.
 void updateCategoryImpl(java.lang.String sessionId, java.lang.String catid, java.lang.String name, java.lang.String workflowid, boolean project)
          Updates specified Category.
 
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(java.lang.String sessionId,
                               java.lang.String id)
                        throws GranException
Description copied from interface: SecuredCategoryAdapter
Deletes specified Category.

Specified by:
deleteCategoryImpl in interface SecuredCategoryAdapter
Parameters:
sessionId -
id -
Throws:
GranException

updateCategoryImpl

public void updateCategoryImpl(java.lang.String sessionId,
                               java.lang.String catid,
                               java.lang.String name,
                               java.lang.String workflowid,
                               boolean project)
                        throws GranException
Description copied from interface: SecuredCategoryAdapter
Updates specified Category.

Specified by:
updateCategoryImpl in interface SecuredCategoryAdapter
Parameters:
sessionId -
catid -
name -
workflowid -
project -
Throws:
GranException

getAvailableCategoryListImpl

public java.util.ArrayList getAvailableCategoryListImpl(java.lang.String sessionId,
                                                        java.lang.String taskid,
                                                        java.util.ArrayList result)
                                                 throws GranException
Description copied from interface: SecuredCategoryAdapter
Returns available Category list for specified Task.

Specified by:
getAvailableCategoryListImpl in interface SecuredCategoryAdapter
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 project,
                                           java.lang.String result)
                                    throws GranException
Description copied from interface: SecuredCategoryAdapter
Create new Category.

Specified by:
createCategoryImpl in interface SecuredCategoryAdapter
Parameters:
sessionId -
taskid -
name -
workflowid -
project -
result -
Returns:
a new Category ID
Throws:
GranException

getChildrenCategoryListImpl

public java.util.ArrayList getChildrenCategoryListImpl(java.lang.String sessionId,
                                                       java.lang.String catid,
                                                       java.util.ArrayList result)
                                                throws GranException
Description copied from interface: SecuredCategoryAdapter
Returns available Categories for specified Category.

Specified by:
getChildrenCategoryListImpl in interface SecuredCategoryAdapter
Parameters:
sessionId -
catid -
result -
Returns:
list of SecuredCategoryBeans
Throws:
GranException
See Also:
SecuredCategoryBean

getCategoryRuleListImpl

public java.util.ArrayList getCategoryRuleListImpl(java.lang.String sessionId,
                                                   java.lang.String prstatus,
                                                   java.lang.String categoryid,
                                                   java.util.ArrayList 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:
sessionId -
prstatus -
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
Description copied from interface: SecuredCategoryAdapter
Returns true if can change Workflow. Available via SOAP.

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

setCategoryRuleImpl

public java.lang.String setCategoryRuleImpl(java.lang.String sessionId,
                                            java.lang.String category,
                                            java.lang.String prstatus,
                                            java.lang.String type,
                                            java.lang.String result)
                                     throws GranException
Description copied from interface: SecuredCategoryAdapter
Sets the rule for Caterory.

Specified by:
setCategoryRuleImpl in interface SecuredCategoryAdapter
Parameters:
sessionId -
category -
prstatus -
type - who can action
result -
Returns:
category rule identifier
Throws:
GranException
See Also:
for type values

resetEditableCategoryRuleImpl

public void resetEditableCategoryRuleImpl(java.lang.String sessionId,
                                          java.lang.String category,
                                          java.lang.String prstatus)
                                   throws GranException
Description copied from interface: SecuredCategoryAdapter
Sets, that Users with some Prstatus (group) can't edit Tasks of some Category.

Specified by:
resetEditableCategoryRuleImpl in interface SecuredCategoryAdapter
Parameters:
sessionId -
category -
prstatus -
Throws:
GranException

resetCreatableCategoryRuleImpl

public void resetCreatableCategoryRuleImpl(java.lang.String sessionId,
                                           java.lang.String category,
                                           java.lang.String prstatus)
                                    throws GranException
Description copied from interface: SecuredCategoryAdapter
Set, that Users with some Prstatus can't create Tasks of some Category.

Specified by:
resetCreatableCategoryRuleImpl in interface SecuredCategoryAdapter
Parameters:
sessionId -
category -
prstatus -
Throws:
GranException

resetDeletableCategoryRuleImpl

public void resetDeletableCategoryRuleImpl(java.lang.String sessionId,
                                           java.lang.String category,
                                           java.lang.String prstatus)
                                    throws GranException
Description copied from interface: SecuredCategoryAdapter
Set, that Users with some Prstatus can't delete Tasks of some Category.

Specified by:
resetDeletableCategoryRuleImpl in interface SecuredCategoryAdapter
Parameters:
sessionId -
category -
prstatus -
Throws:
GranException

setCategoryRelationImpl

public void setCategoryRelationImpl(java.lang.String sessionId,
                                    java.lang.String parentId,
                                    java.lang.String childId)
                             throws GranException
Description copied from interface: SecuredCategoryAdapter
Adds Category to the list of allowed subctegories.

Specified by:
setCategoryRelationImpl in interface SecuredCategoryAdapter
Parameters:
sessionId -
parentId -
childId -
Throws:
GranException

resetCategoryRelationImpl

public void resetCategoryRelationImpl(java.lang.String sessionId,
                                      java.lang.String parentId,
                                      java.lang.String childId)
                               throws GranException
Description copied from interface: SecuredCategoryAdapter
Deletes Category from the list of allowed categories.

Specified by:
resetCategoryRelationImpl in interface SecuredCategoryAdapter
Parameters:
sessionId -
parentId -
childId -
Throws:
GranException

getCreatableCategoryListImpl

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

Specified by:
getCreatableCategoryListImpl in interface SecuredCategoryAdapter
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
Description copied from interface: SecuredCategoryAdapter
Get list of categories, that some user can edit. Available via SOAP.

Specified by:
getEditableCategoryListImpl in interface SecuredCategoryAdapter
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
Description copied from interface: SecuredCategoryAdapter
Get list of categories, that some user can delete. Available via SOAP.

Specified by:
getDeletableCategoryListImpl in interface SecuredCategoryAdapter
Parameters:
sessionId -
taskid -
result -
Returns:
list of SecuredCategoryBeans
Throws:
GranException
See Also:
SecuredCategoryBean


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