Class MembershipOneInFolderMaxHook
java.lang.Object
edu.internet2.middleware.grouper.hooks.MembershipHooks
edu.internet2.middleware.grouper.hooks.examples.MembershipOneInFolderMaxHook
Hook allows only one membership in a folder at a time
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
put this attribute on a folder to ensure there is one membership only for any group in folderFields inherited from class edu.internet2.middleware.grouper.hooks.MembershipHooks
METHOD_MEMBERSHIP_POST_ADD_MEMBER, METHOD_MEMBERSHIP_POST_COMMIT_ADD_MEMBER, METHOD_MEMBERSHIP_POST_COMMIT_DELETE, METHOD_MEMBERSHIP_POST_COMMIT_INSERT, METHOD_MEMBERSHIP_POST_COMMIT_REMOVE_MEMBER, METHOD_MEMBERSHIP_POST_COMMIT_UPDATE, METHOD_MEMBERSHIP_POST_DELETE, METHOD_MEMBERSHIP_POST_INSERT, METHOD_MEMBERSHIP_POST_REMOVE_MEMBER, METHOD_MEMBERSHIP_POST_UPDATE, METHOD_MEMBERSHIP_PRE_ADD_MEMBER, METHOD_MEMBERSHIP_PRE_DELETE, METHOD_MEMBERSHIP_PRE_INSERT, METHOD_MEMBERSHIP_PRE_REMOVE_MEMBER, METHOD_MEMBERSHIP_PRE_UPDATE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
pass in the stem and assign attribute and clear cachestatic void
static String
base stem for these attributes (just in hooks folder)static AttributeDefName
void
membershipPreAddMember
(HooksContext hooksContext, HooksMembershipChangeBean preAddMemberBean) called right before a membership update (high level, not the side effects)Methods inherited from class edu.internet2.middleware.grouper.hooks.MembershipHooks
membershipPostAddMember, membershipPostCommitAddMember, membershipPostCommitDelete, membershipPostCommitInsert, membershipPostCommitRemoveMember, membershipPostCommitUpdate, membershipPostDelete, membershipPostInsert, membershipPostRemoveMember, membershipPostUpdate, membershipPreDelete, membershipPreInsert, membershipPreRemoveMember, membershipPreUpdate
-
Field Details
-
HOOK_VETO_MEMBERSHIP_ONE_IN_FOLDER_CANT_DELETE_MEMBER
- See Also:
-
membershipOneFolderExtensionOfAttributeDefName
put this attribute on a folder to ensure there is one membership only for any group in folder- See Also:
-
-
Constructor Details
-
MembershipOneInFolderMaxHook
public MembershipOneInFolderMaxHook()
-
-
Method Details
-
membershipOneFolderStemName
base stem for these attributes (just in hooks folder)- Returns:
- the stem name
-
membershipPreAddMember
public void membershipPreAddMember(HooksContext hooksContext, HooksMembershipChangeBean preAddMemberBean) Description copied from class:MembershipHooks
called right before a membership update (high level, not the side effects) -
clearHook
public static void clearHook() -
membershipOneInFolderAttributeDefName
- Returns:
- attribute def name for this hook
-
assignMembershipOneInFolderAttributeDefName
pass in the stem and assign attribute and clear cache- Parameters:
stem
-
-