public class MembershipCannotAddSelfToGroupHook extends MembershipHooks
Modifier and Type | Field and Description |
---|---|
static String |
HOOK_VETO_CANNOT_ADD_SELF_TO_GROUP |
static String |
membershipOneFolderExtensionOfAttributeDefName
put this attribute on a folder to ensure there is one membership only for any group in folder
|
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 and Description |
---|
MembershipCannotAddSelfToGroupHook() |
Modifier and Type | Method and Description |
---|---|
static boolean |
cannotAddSelfAssign(Group group)
assign the attribute to the group which means cannot add self
|
static boolean |
cannotAddSelfAssignedToGroup(Group group)
if the current group has cannotAddSelf
|
static String |
cannotAddSelfAssignGroupName()
users who can assign "cannot add self"
|
static AttributeDefName |
cannotAddSelfAttributeDefName()
attribute def name for "cannot add self"
|
static boolean |
cannotAddSelfEnabled()
if this feature is enabled
|
static String |
cannotAddSelfNameOfAttributeDef()
attribute def for "cannot add self"
|
static String |
cannotAddSelfNameOfAttributeDefName()
attribute def name for "cannot add self"
|
static boolean |
cannotAddSelfRevoke(Group group)
revoke the attribute to the group which means cannot add self
|
static String |
cannotAddSelfRevokeGroupName()
users who can revoke "cannot add self"
|
static String |
cannotAddSelfStemName()
base stem for these attributes (just in hooks folder)
|
static boolean |
cannotAddSelfUserCanEdit(Group group,
Subject subject)
if the current user can assign cannotAddSelf
|
static boolean |
cannotAddSelfUserCanView(Group group,
Subject subject)
if the current user can assign cannotAddSelf
|
static void |
clearHook() |
void |
membershipPreAddMember(HooksContext hooksContext,
HooksMembershipChangeBean preAddMemberBean)
called right before a membership update (high level, not the side effects)
|
static void |
registerHookIfNecessary()
see if this is configured in the grouper.properties, if so, register this hook
|
membershipPostAddMember, membershipPostCommitAddMember, membershipPostCommitDelete, membershipPostCommitInsert, membershipPostCommitRemoveMember, membershipPostCommitUpdate, membershipPostDelete, membershipPostInsert, membershipPostRemoveMember, membershipPostUpdate, membershipPreDelete, membershipPreInsert, membershipPreRemoveMember, membershipPreUpdate
public static final String HOOK_VETO_CANNOT_ADD_SELF_TO_GROUP
public static final String membershipOneFolderExtensionOfAttributeDefName
public static void clearHook()
public static boolean cannotAddSelfEnabled()
public static boolean cannotAddSelfAssignedToGroup(Group group)
group
- group to checkpublic static boolean cannotAddSelfAssign(Group group)
group
- public static boolean cannotAddSelfRevoke(Group group)
group
- public static boolean cannotAddSelfUserCanEdit(Group group, Subject subject)
group
- the group to checksubject
- the subject to checkpublic static boolean cannotAddSelfUserCanView(Group group, Subject subject)
group
- the group to checksubject
- the subject to checkpublic static String cannotAddSelfStemName()
public static String cannotAddSelfAssignGroupName()
public static String cannotAddSelfRevokeGroupName()
public static String cannotAddSelfNameOfAttributeDef()
public static String cannotAddSelfNameOfAttributeDefName()
public static AttributeDefName cannotAddSelfAttributeDefName()
public void membershipPreAddMember(HooksContext hooksContext, HooksMembershipChangeBean preAddMemberBean)
MembershipHooks
public static void registerHookIfNecessary()
Copyright © 2016 Internet2. All rights reserved.