|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UIGroupPrivilegeResolver
Interface which provides ability to override the default privilege model for Groups in the UI i.e. if a group has been 'loaded' it should probably be maintained by the loader rather than a user - even GrouperSystem/wheel group members. see https://bugs.internet2.edu/jira/browse/GRP-72
Method Summary | |
---|---|
Map |
asMap()
Convenience method to provide all possible 'answers' in a Map - which is strightforward for JSP/JSTL to 'query'. |
boolean |
canEditGroup()
Is the subject allowed to edit core attributes or delete the group? |
boolean |
canManageAnyCustomField()
Can the subject change at least one custom attribute? |
boolean |
canManageField(String field)
Can the subject modify the given field? |
boolean |
canManageMembers()
Can the subject update the membership? |
boolean |
canManagePrivileges()
Is the subject allowed to grant / revoke privileges? |
boolean |
canOptinGroup()
Is the subject allowed to optin to the group? |
boolean |
canOptoutGroup()
Is the subject allowed to optout of the group? |
boolean |
canReadField(String field)
Can the subject read the given field? |
boolean |
canReadGroup()
Is the subject allowed to view the membership? |
boolean |
canViewGroup()
Is the subject allowed to view the group? |
void |
init()
Called by the factory after group, subject and GrouperSession are set to allow any initialisation |
void |
setGroup(Group g)
Can only be called once, by the factory, to set the group for which we are resolving privileges |
void |
setGrouperSession(GrouperSession s)
Can only be called once, by the factory, to set the GrouperSession |
void |
setSubject(Subject subj)
Can only be called once, by the factory, to set the subject for who we are resolving privileges |
Method Detail |
---|
void setGroup(Group g)
g
- void setSubject(Subject subj)
subj
- void setGrouperSession(GrouperSession s)
s
- boolean canManagePrivileges()
boolean canEditGroup()
boolean canViewGroup()
boolean canReadGroup()
boolean canOptinGroup()
boolean canOptoutGroup()
boolean canManageField(String field)
field
-
boolean canReadField(String field)
field
-
boolean canManageAnyCustomField()
boolean canManageMembers()
Map asMap()
void init()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |