edu.internet2.middleware.grouper.shibboleth.dataConnector.field
Class PrivilegeField
java.lang.Object
edu.internet2.middleware.grouper.shibboleth.dataConnector.field.BaseField
edu.internet2.middleware.grouper.shibboleth.dataConnector.field.PrivilegeField
public class PrivilegeField
- extends BaseField
Fields inherited from class edu.internet2.middleware.grouper.shibboleth.dataConnector.field.BaseField |
DELIMITER |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrivilegeField
public PrivilegeField(String id,
AccessResolver accessResolver)
throws GrouperException
- Construct a representation of an
Privilege
attribute.
- Parameters:
id
- the identifieraccessResolver
- the access resolver
- Throws:
GrouperException
- See Also:
edu.internet2.middleware.grouper.shibboleth.dataConnector.field.BaseField#constructor(String id)
getAttribute
public edu.internet2.middleware.shibboleth.common.attribute.BaseAttribute<Subject> getAttribute(Group group)
- Get the resultant attribute whose values are the
Subject
s with the privilege for the given Group
.
Does not include the GrouperAll or GrouperSystem subjects.
- Parameters:
group
- the group
- Returns:
- the attribute consisting of Subjects or null if there are no subjects with the privilege
getAttribute
public edu.internet2.middleware.shibboleth.common.attribute.BaseAttribute<Group> getAttribute(Subject subject)
- Get the resultant attribute whose values are the
Group
s to which the Subject
has the privilege.
- Parameters:
subject
- the subject
- Returns:
- the attribute consisting of Groups or null if there are no groups to which the subject has the
privilege
filterInternalSubjects
public Set<Subject> filterInternalSubjects(Set<Subject> subjects)
- Remove GrouperAll and GrouperSystem from the returned subjects.
- Parameters:
subjects
-
- Returns:
- the filtered set of subjects
Copyright © 2012 Internet2. All Rights Reserved.