com.atlassian.bamboo.security
Class DefaultPermissionManager
java.lang.Object
com.atlassian.bamboo.security.DefaultPermissionManager
- All Implemented Interfaces:
- PermissionManager
public class DefaultPermissionManager
- extends Object
- implements PermissionManager
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultPermissionManager
public DefaultPermissionManager()
hasPermission
public boolean hasPermission(User user,
Permission permission,
Object target)
- Description copied from interface:
PermissionManager
- Determine whether a user has a particular permission against a given target.
- Specified by:
hasPermission
in interface PermissionManager
- Parameters:
user
- the user seeking permission, or null if the anonymous user is being checked againstpermission
- the permission to checktarget
- the object that the permission is being checked against. If this object is null, the method
will return false
- Returns:
- true if the user has this permission, false otherwise
filterPermittedEntities
public List filterPermittedEntities(User user,
Permission permission,
List objects)
- Description copied from interface:
PermissionManager
- Filter a list based on which entities in the list have a particular permission.
- Specified by:
filterPermittedEntities
in interface PermissionManager
- Parameters:
user
- the user seeking permission, or null if the anonymous user is being checked againstpermission
- the permission to check against the objectsobjects
- the objects to check
- Returns:
- a new list of those members of the objects list that satisfy the given permission for the user
filterPermittedEntities
public List filterPermittedEntities(User user,
Permission permission,
Iterator objects,
int maxResults)
- Description copied from interface:
PermissionManager
- Filter an iterator based on which entities in the list have a particular permission.
- Specified by:
filterPermittedEntities
in interface PermissionManager
- Parameters:
user
- the user seeking permission, or null if the anonymous user is being checked againstpermission
- the permission to check against the objectsobjects
- the objects to checkmaxResults
- the maximum number of permitted entities to retrieve from the iterator (un-permitted entities
are not counted)
- Returns:
- a new list of those members of the objects list that satisfy the given permission for the user
setBambooUserManager
public void setBambooUserManager(BambooUserManager bambooUserManager)
setDelegates
public void setDelegates(Map delegates)
setDefaultDelegate
public void setDefaultDelegate(PermissionDelegate defaultDelegate)
Copyright © 2006 Atlassian Software Systems. All Rights Reserved.