Class AttributeSecurityFromTypeHook
java.lang.Object
edu.internet2.middleware.grouper.hooks.AttributeHooks
edu.internet2.middleware.grouper.hooks.examples.AttributeSecurityFromTypeHook
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
-
Field Summary
Fields inherited from class edu.internet2.middleware.grouper.hooks.AttributeHooks
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
attributePostDelete
(HooksContext hooksContext, HooksAttributeBean postDeleteBean) called right after a attribute deletevoid
attributePostInsert
(HooksContext hooksContext, HooksAttributeBean postInsertBean) called right after a attribute insertvoid
attributePostUpdate
(HooksContext hooksContext, HooksAttributeBean postUpdateBean) called right after a attribute updatestatic void
manageSecurity
(HooksAttributeBean postInsertBean, String summaryForLog) Methods inherited from class edu.internet2.middleware.grouper.hooks.AttributeHooks
attributePostCommitDelete, attributePostCommitInsert, attributePostCommitUpdate, attributePreDelete, attributePreInsert, attributePreUpdate
-
Constructor Details
-
AttributeSecurityFromTypeHook
public AttributeSecurityFromTypeHook()
-
-
Method Details
-
attributePostInsert
Description copied from class:AttributeHooks
called right after a attribute insert -
attributePostDelete
Description copied from class:AttributeHooks
called right after a attribute delete -
attributePostUpdate
Description copied from class:AttributeHooks
called right after a attribute update -
manageSecurity
- Parameters:
postInsertBean
-summaryForLog
- summary for log message
-