public class AttributeSecurityFromTypeHook extends AttributeHooks
built in hook to grouper, which is turned on when it is configured in the grouper.properties. you can secure certain attributes from group types which can only be edited (added/removed/deleted) based on if the user doing the work is in a certain group (or wheel), or if the user is only a wheel group member. normally a user with admin rights on a group can edit the group attributes
METHOD_ATTRIBUTE_POST_COMMIT_DELETE, METHOD_ATTRIBUTE_POST_COMMIT_INSERT, METHOD_ATTRIBUTE_POST_COMMIT_UPDATE, METHOD_ATTRIBUTE_POST_DELETE, METHOD_ATTRIBUTE_POST_INSERT, METHOD_ATTRIBUTE_POST_UPDATE, METHOD_ATTRIBUTE_PRE_DELETE, METHOD_ATTRIBUTE_PRE_INSERT, METHOD_ATTRIBUTE_PRE_UPDATE
Constructor and Description |
---|
AttributeSecurityFromTypeHook() |
Modifier and Type | Method and Description |
---|---|
void |
attributePostDelete(HooksContext hooksContext,
HooksAttributeBean postDeleteBean)
called right after a attribute delete
|
void |
attributePostInsert(HooksContext hooksContext,
HooksAttributeBean postInsertBean)
called right after a attribute insert
|
void |
attributePostUpdate(HooksContext hooksContext,
HooksAttributeBean postUpdateBean)
called right after a attribute update
|
static void |
manageSecurity(HooksAttributeBean postInsertBean,
String summaryForLog) |
attributePostCommitDelete, attributePostCommitInsert, attributePostCommitUpdate, attributePreDelete, attributePreInsert, attributePreUpdate
public void attributePostInsert(HooksContext hooksContext, HooksAttributeBean postInsertBean)
AttributeHooks
public void attributePostDelete(HooksContext hooksContext, HooksAttributeBean postDeleteBean)
AttributeHooks
public void attributePostUpdate(HooksContext hooksContext, HooksAttributeBean postUpdateBean)
AttributeHooks
public static void manageSecurity(HooksAttributeBean postInsertBean, String summaryForLog)
postInsertBean
- summaryForLog
- summary for log messageCopyright © 2016 Internet2. All rights reserved.