|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.grouper.permissions.PermissionFinder
public class PermissionFinder
Constructor Summary | |
---|---|
PermissionFinder()
|
Method Summary | |
---|---|
PermissionFinder |
addAction(java.lang.String action)
add a action to the search criteria |
PermissionFinder |
addLimitEnvVar(java.lang.String key,
java.lang.Object value)
limitEnvVars if processing limits with PermissionProcessor, pass in a map of limits. |
PermissionFinder |
addMemberId(java.lang.String memberId)
add a member id to the search criteria |
PermissionFinder |
addPermissionDef(AttributeDef attributeDef)
add a attribute def to look for. |
PermissionFinder |
addPermissionDef(java.lang.String attributeDefName)
add a attribute def to look for by name. |
PermissionFinder |
addPermissionDefId(java.lang.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(java.lang.String name)
add a attribute def name to look for by name. |
PermissionFinder |
addPermissionNameId(java.lang.String attributeDefNameId)
add an attribute def name id to the search criteria |
PermissionFinder |
addRole(Role role)
add a role to look for. |
PermissionFinder |
addRole(java.lang.String name)
add a role to look for by name. |
PermissionFinder |
addRoleId(java.lang.String roleId)
add a role id to the search criteria |
PermissionFinder |
addSubject(edu.internet2.middleware.subject.Subject subject)
add a subject to look for. |
PermissionFinder |
assignActions(java.util.Collection<java.lang.String> theActions)
assign actions to search for, return this for chaining |
PermissionFinder |
assignEnabled(java.lang.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(java.util.Map<java.lang.String,java.lang.Object> theEnvVars)
limitEnvVars if processing limits, pass in a map of limits. |
PermissionFinder |
assignMemberIds(java.util.Collection<java.lang.String> theMemberIds)
add a collection of member ids to look for |
PermissionFinder |
assignPermissionDefIds(java.util.Collection<java.lang.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(java.util.Collection<java.lang.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? |
PermissionFinder |
assignPointInTimeFrom(java.sql.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(java.sql.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(java.util.Collection<java.lang.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 |
java.util.Set<PermissionEntry> |
findPermissions()
find a list of permissions |
java.util.Map<PermissionEntry,java.util.Set<PermissionLimitBean>> |
findPermissionsAndLimits()
get the permissions, and the limits, so the caller (e.g. the UI/WS) doesnt have to get them again |
boolean |
hasPermission()
based on what you are querying for, see if has permission. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PermissionFinder()
Method Detail |
---|
public PermissionFinder addLimitEnvVar(java.lang.String key, java.lang.Object value)
key
- value
-
public PermissionFinder assignLimitEnvVars(java.util.Map<java.lang.String,java.lang.Object> theEnvVars)
theEnvVars
- the map to replace
public PermissionFinder addMemberId(java.lang.String memberId)
memberId
-
public PermissionFinder assignMemberIds(java.util.Collection<java.lang.String> theMemberIds)
theMemberIds
-
public PermissionFinder addSubject(edu.internet2.middleware.subject.Subject subject)
subject
-
public PermissionFinder addRoleId(java.lang.String roleId)
roleId
-
public PermissionFinder assignRoleIds(java.util.Collection<java.lang.String> theRoleIds)
theRoleIds
-
public PermissionFinder addRole(Role role)
role
-
public PermissionFinder addRole(java.lang.String name)
name
-
public PermissionFinder addPermissionDefId(java.lang.String attributeDefId)
attributeDefId
-
public PermissionFinder assignPermissionDefIds(java.util.Collection<java.lang.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(java.lang.String attributeDefName)
attributeDefName
-
public PermissionFinder addPermissionNameId(java.lang.String attributeDefNameId)
attributeDefNameId
-
public PermissionFinder assignPermissionNameIds(java.util.Collection<java.lang.String> theAttributeDefNameIds)
theAttributeDefNameIds
-
public PermissionFinder addPermissionName(AttributeDefName attributeDefName)
attributeDefName
-
public PermissionFinder addPermissionName(java.lang.String name)
name
-
public PermissionFinder addAction(java.lang.String action)
action
-
public PermissionFinder assignActions(java.util.Collection<java.lang.String> theActions)
theActions
-
public PermissionFinder assignEnabled(java.lang.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 java.util.Map<PermissionEntry,java.util.Set<PermissionLimitBean>> findPermissionsAndLimits()
public PermissionResult findPermissionResult()
public java.util.Set<PermissionEntry> findPermissions()
public PermissionEntry findPermission(boolean exceptionIfNotFound)
exceptionIfNotFound
- true if exception should be thrown if permission not found
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public PermissionFinder assignPointInTimeFrom(java.sql.Timestamp pointInTimeFrom)
pointInTimeFrom
-
public PermissionFinder assignPointInTimeTo(java.sql.Timestamp pointInTimeTo)
pointInTimeTo
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |