public class PermissionFinder extends Object
Constructor and Description |
---|
PermissionFinder() |
Modifier and Type | Method and Description |
---|---|
PermissionFinder |
addAction(String action)
add a action to the search criteria
|
PermissionFinder |
addLimitEnvVar(String key,
Object value)
limitEnvVars if processing limits with PermissionProcessor, pass in a map of limits.
|
PermissionFinder |
addMemberId(String memberId)
add a member id to the search criteria
|
PermissionFinder |
addPermissionDef(AttributeDef attributeDef)
add a attribute def to look for.
|
PermissionFinder |
addPermissionDef(String attributeDefName)
add a attribute def to look for by name.
|
PermissionFinder |
addPermissionDefId(String attributeDefId)
add a attribute def id to the search criteria
|
PermissionFinder |
addPermissionName(AttributeDefName attributeDefName)
add a attribute def name to look for.
|
PermissionFinder |
addPermissionName(String name)
add a attribute def name to look for by name.
|
PermissionFinder |
addPermissionNameId(String attributeDefNameId)
add an attribute def name id to the search criteria
|
PermissionFinder |
addRole(Role role)
add a role to look for.
|
PermissionFinder |
addRole(String name)
add a role to look for by name.
|
PermissionFinder |
addRoleId(String roleId)
add a role id to the search criteria
|
PermissionFinder |
addSubject(Subject subject)
add a subject to look for.
|
PermissionFinder |
assignActions(Collection<String> theActions)
assign actions to search for, return this for chaining
|
PermissionFinder |
assignEnabled(Boolean theEnabled)
true means enabled only, false, means disabled only, and null means all
|
PermissionFinder |
assignImmediateOnly(boolean theImmediate)
if we should filter out non immediate permissions
|
PermissionFinder |
assignLimitEnvVars(Map<String,Object> theEnvVars)
limitEnvVars if processing limits, pass in a map of limits.
|
PermissionFinder |
assignMemberIds(Collection<String> theMemberIds)
add a collection of member ids to look for
|
PermissionFinder |
assignPermissionDefIds(Collection<String> theAttributeDefIds)
assign a collection of attribute def ids to look for
|
PermissionFinder |
assignPermissionNameFolder(Stem permissionNameFolder1)
if narrowing search for permissions in a certain folder only
|
PermissionFinder |
assignPermissionNameFolderScope(Stem.Scope scope)
if searching in a folder, this is the scope: only in this folder, or also in subfolders
|
PermissionFinder |
assignPermissionNameIds(Collection<String> theAttributeDefNameIds)
assign a collection of attribute def name ids to look for
|
PermissionFinder |
assignPermissionProcessor(PermissionProcessor thePermissionProcessor)
if we should find the best answer, or process limits, etc
|
PermissionFinder |
assignPermissionType(PermissionEntry.PermissionType thePermissionType)
are we looking for role permissions or subject permissions? cant be null
|
PermissionFinder |
assignPointInTimeFrom(Timestamp pointInTimeFrom)
To query permissions at a certain point in time or time range in the past, set this value
and/or the value of pointInTimeTo.
|
PermissionFinder |
assignPointInTimeTo(Timestamp pointInTimeTo)
To query permissions at a certain point in time or time range in the past, set this value
and/or the value of pointInTimeFrom.
|
PermissionFinder |
assignRoleIds(Collection<String> theRoleIds)
assign a collection of role ids to look for
|
PermissionEntry |
findPermission(boolean exceptionIfNotFound)
find a permission
|
PermissionResult |
findPermissionResult()
permission result gives helper methods in processing the results
|
Set<PermissionEntry> |
findPermissions()
find a list of permissions
|
Map<PermissionEntry,Set<PermissionLimitBean>> |
findPermissionsAndLimits()
get the permissions, and the limits, so the caller (e.g.
|
boolean |
hasPermission()
based on what you are querying for, see if has permission.
|
String |
toString() |
public PermissionFinder addLimitEnvVar(String key, Object value)
key
- value
- public PermissionFinder assignLimitEnvVars(Map<String,Object> theEnvVars)
theEnvVars
- the map to replacepublic PermissionFinder addMemberId(String memberId)
memberId
- public PermissionFinder assignMemberIds(Collection<String> theMemberIds)
theMemberIds
- public PermissionFinder addSubject(Subject subject)
subject
- public PermissionFinder addRoleId(String roleId)
roleId
- public PermissionFinder assignRoleIds(Collection<String> theRoleIds)
theRoleIds
- public PermissionFinder addRole(Role role)
role
- public PermissionFinder addRole(String name)
name
- public PermissionFinder addPermissionDefId(String attributeDefId)
attributeDefId
- public PermissionFinder assignPermissionDefIds(Collection<String> theAttributeDefIds)
theAttributeDefIds
- public PermissionFinder assignPermissionNameFolder(Stem permissionNameFolder1)
permissionNameFolder1
- public PermissionFinder assignPermissionNameFolderScope(Stem.Scope scope)
scope
- public PermissionFinder addPermissionDef(AttributeDef attributeDef)
attributeDef
- public PermissionFinder addPermissionDef(String attributeDefName)
attributeDefName
- public PermissionFinder addPermissionNameId(String attributeDefNameId)
attributeDefNameId
- public PermissionFinder assignPermissionNameIds(Collection<String> theAttributeDefNameIds)
theAttributeDefNameIds
- public PermissionFinder addPermissionName(AttributeDefName attributeDefName)
attributeDefName
- public PermissionFinder addPermissionName(String name)
name
- public PermissionFinder addAction(String action)
action
- public PermissionFinder assignActions(Collection<String> theActions)
theActions
- public PermissionFinder assignEnabled(Boolean theEnabled)
theEnabled
- public PermissionFinder assignPermissionProcessor(PermissionProcessor thePermissionProcessor)
thePermissionProcessor
- public PermissionFinder assignImmediateOnly(boolean theImmediate)
theImmediate
- public PermissionFinder assignPermissionType(PermissionEntry.PermissionType thePermissionType)
thePermissionType
- public boolean hasPermission()
public Map<PermissionEntry,Set<PermissionLimitBean>> findPermissionsAndLimits()
public PermissionResult findPermissionResult()
public Set<PermissionEntry> findPermissions()
public PermissionEntry findPermission(boolean exceptionIfNotFound)
exceptionIfNotFound
- true if exception should be thrown if permission not foundpublic String toString()
toString
in class Object
Object.toString()
public PermissionFinder assignPointInTimeFrom(Timestamp pointInTimeFrom)
pointInTimeFrom
- public PermissionFinder assignPointInTimeTo(Timestamp pointInTimeTo)
pointInTimeTo
- Copyright © 2016 Internet2. All rights reserved.