gran.app.adapter.kernel.acl
Class BaseACLAdapter

java.lang.Object
  extended bygran.app.adapter.kernel.acl.BaseACLAdapter
All Implemented Interfaces:
ACLAdapter, Adapter, KernelAdapter

public class BaseACLAdapter
extends java.lang.Object
implements ACLAdapter


Constructor Summary
BaseACLAdapter()
           
 
Method Summary
 void addUserACLImpl(java.lang.String taskid, java.lang.String userid)
           
 void deleteUserACLsImpl(java.lang.String taskId, java.lang.String[] userIds)
          del ACL for task
 java.lang.String getDescription()
          Get description of adapter as plain text
 boolean init()
          Initialize adapter.
 java.util.Collection listAllowedUserImpl(java.lang.String taskid, java.util.Collection result)
           
 java.util.Collection listInheritedUserACLImpl(java.lang.String taskid, java.lang.String userid, java.util.Collection result)
          list all ACL users, inherited from parent tasks and that managed by me (direclty or indirectly)
 java.util.Collection listUnassignedUserACLImpl(java.lang.String taskid, java.lang.String userid, java.util.Collection result)
          list all ACL users, not assigned to this or parent task and that managed by me (direclty or indirectly) only this users can be added to ACL (because other already added)
 java.util.Collection listUserACLImpl(java.lang.String taskid, java.lang.String userid, java.util.Collection result)
          slow method
 java.util.HashMap mapAssignableHandlerACLImpl(java.lang.String taskid, java.util.HashMap result)
          Gets list of assignable hanlers as HashMap
 boolean viewAllowedByACLImpl(java.lang.String taskid, java.lang.String userid, boolean result)
          return true if user can see details of this task
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseACLAdapter

public BaseACLAdapter()
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

listUserACLImpl

public java.util.Collection listUserACLImpl(java.lang.String taskid,
                                            java.lang.String userid,
                                            java.util.Collection result)
                                     throws gran.exception.GranException
slow method

Specified by:
listUserACLImpl in interface ACLAdapter
Returns:
Collection of UserChainItem
Throws:
gran.exception.GranException

listInheritedUserACLImpl

public java.util.Collection listInheritedUserACLImpl(java.lang.String taskid,
                                                     java.lang.String userid,
                                                     java.util.Collection result)
                                              throws gran.exception.GranException
Description copied from interface: ACLAdapter
list all ACL users, inherited from parent tasks and that managed by me (direclty or indirectly)

Specified by:
listInheritedUserACLImpl in interface ACLAdapter
Returns:
Collection of UserChainItem
Throws:
gran.exception.GranException

listUnassignedUserACLImpl

public java.util.Collection listUnassignedUserACLImpl(java.lang.String taskid,
                                                      java.lang.String userid,
                                                      java.util.Collection result)
                                               throws gran.exception.GranException
Description copied from interface: ACLAdapter
list all ACL users, not assigned to this or parent task and that managed by me (direclty or indirectly) only this users can be added to ACL (because other already added)

Specified by:
listUnassignedUserACLImpl in interface ACLAdapter
Returns:
Collection of UserChainItem
Throws:
gran.exception.GranException

mapAssignableHandlerACLImpl

public java.util.HashMap mapAssignableHandlerACLImpl(java.lang.String taskid,
                                                     java.util.HashMap result)
                                              throws gran.exception.GranException
Description copied from interface: ACLAdapter
Gets list of assignable hanlers as HashMap

Specified by:
mapAssignableHandlerACLImpl in interface ACLAdapter
Throws:
gran.exception.GranException

viewAllowedByACLImpl

public boolean viewAllowedByACLImpl(java.lang.String taskid,
                                    java.lang.String userid,
                                    boolean result)
                             throws gran.exception.GranException
Description copied from interface: ACLAdapter
return true if user can see details of this task

Specified by:
viewAllowedByACLImpl in interface ACLAdapter
Throws:
gran.exception.GranException

listAllowedUserImpl

public java.util.Collection listAllowedUserImpl(java.lang.String taskid,
                                                java.util.Collection result)
                                         throws gran.exception.GranException
Specified by:
listAllowedUserImpl in interface ACLAdapter
Throws:
gran.exception.GranException

deleteUserACLsImpl

public void deleteUserACLsImpl(java.lang.String taskId,
                               java.lang.String[] userIds)
                        throws gran.exception.GranException
Description copied from interface: ACLAdapter
del ACL for task

Specified by:
deleteUserACLsImpl in interface ACLAdapter
Throws:
gran.exception.GranException

addUserACLImpl

public void addUserACLImpl(java.lang.String taskid,
                           java.lang.String userid)
                    throws gran.exception.GranException
Specified by:
addUserACLImpl in interface ACLAdapter
Throws:
gran.exception.GranException


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