Class MembersManagerBlImpl
- All Implemented Interfaces:
- MembersManagerBl
- 
Field SummaryFieldsModifier and TypeFieldDescription
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleancanBeMember(PerunSession sess, Vo vo, User user, String loa) Checks if the user can apply membership to the VO, it decides based on extendMembershipRules on the doNotAllowLoa keyprotected booleancanBeMemberInternal(PerunSession sess, Vo vo, User user, String loa, boolean throwExceptions) More info on https://wiki.metacentrum.cz/wiki/VO_managers%27s_manualbooleancanBeMemberWithReason(PerunSession sess, Vo vo, User user, String loa) Checks if the user can apply membership to the VO, it decides based on extendMembershipRules on the doNotAllowLoa keybooleancanExtendMembership(PerunSession sess, Member member) Return true if the membership can be extended or if no rules were set for the membershipExpiration, otherwise false.booleancanExtendMembershipWithReason(PerunSession sess, Member member) Return true if the membership can be extended or if no rules were set for the membershipExpiration, otherwise throws exception.voidcheckMemberExists(PerunSession sess, Member member) voidcheckMemberLifecycleIsAlterable(PerunSession sess, Member member) Throws exception if member is member of hierarchical vo but comes from its member vos.voidcheckSponsoredUserData(PerunSession sess, SponsoredUserData data) Checks, whether the provided data are valid according to the namespace rules, if the namespace is not null.convertMembersToRichMembers(PerunSession sess, List<Member> members) Converts members to rich members.convertMembersToRichMembersNoUserAttributes(PerunSession sess, List<RichMember> richMembers) Adds memberAttributes to rich members.convertMembersToRichMembersWithAttributes(PerunSession sess, Group group, Resource resource, List<RichMember> richMembers, List<AttributeDefinition> attrsDef) Adds userAttributes and memberAttributes to rich members.convertMembersToRichMembersWithAttributes(PerunSession sess, Group group, List<RichMember> richMembers, List<AttributeDefinition> attrsDef) Adds userAttributes and memberAttributes to rich members.convertMembersToRichMembersWithAttributes(PerunSession sess, List<RichMember> richMembers) Adds userAttributes and memberAttributes to rich members.convertMembersToRichMembersWithAttributes(PerunSession sess, List<RichMember> richMembers, Resource resource, List<AttributeDefinition> attrsDef) Adds userAttributes and memberAttributes to rich members.convertMembersToRichMembersWithAttributes(PerunSession sess, List<RichMember> richMembers, List<AttributeDefinition> attrsDef) Adds userAttributes and memberAttributes to rich members.convertMembersToRichMembersWithAttributesBatch(PerunSession sess, List<RichMember> richMembers, List<AttributeDefinition> attrsDef) Optimized variant ofconvertMembersToRichMembersWithAttribute.convertUserToSponsor(PerunSession sess, User user, Member sponsoredMember) Convert given User to the Sponsor object.createMember(PerunSession sess, Vo vo, Candidate candidate) Creates a new member from candidate returned by the method VosManager.findCandidates which fills Candidate .userExtSource.createMember(PerunSession sess, Vo vo, Candidate candidate, List<Group> groups) Creates a new member from candidate returned by the method VosManager.findCandidates which fills Candidate .userExtSource.createMember(PerunSession sess, Vo vo, ExtSource extSource, String login, List<Group> groups) Create new member from user by login and ExtSource.createMember(PerunSession sess, Vo vo, SpecificUserType specificUserType, Candidate candidate) Creates a new member from candidate returned by the method VosManager.findCandidates which fills Candidate .userExtSource.createMember(PerunSession sess, Vo vo, SpecificUserType specificUserType, Candidate candidate, List<Group> groups, List<String> overwriteUserAttributes) Creates a new member from candidate returned by the method VosManager.findCandidates which fills Candidate .userExtSource.createMember(PerunSession sess, Vo vo, User user) Creates a new member from user.createMember(PerunSession sess, Vo vo, User user, List<Group> groups) Creates a new member from user.createMember(PerunSession sess, Vo vo, String extSourceName, String extSourceType, int loa, String login, Candidate candidate) Creates a new member and sets all member's attributes from the candidate.createMember(PerunSession sess, Vo vo, String extSourceName, String extSourceType, int loa, String login, Candidate candidate, List<Group> groups) Creates a new member and sets all member's attributes from the candidate.createMember(PerunSession sess, Vo vo, String extSourceName, String extSourceType, String login, Candidate candidate) Creates a new member and sets all member's attributes from the candidate.createMember(PerunSession sess, Vo vo, String extSourceName, String extSourceType, String login, Candidate candidate, List<Group> groups) Creates a new member and sets all member's attributes from the candidate.createMemberSync(PerunSession sess, Vo vo, Candidate candidate) Creates member.createMemberSync(PerunSession sess, Vo vo, Candidate candidate, List<Group> groups) Creates member.createMemberSync(PerunSession sess, Vo vo, Candidate candidate, List<Group> groups, List<String> overwriteUserAttributes) Creates member.createServiceMember(PerunSession sess, Vo vo, Candidate candidate, List<User> owners) Creates a new member from candidate which is prepared for creating service user.createServiceMember(PerunSession sess, Vo vo, Candidate candidate, List<User> specificUserOwners, List<Group> groups) Creates a new member from candidate which is prepared for creating service user.createSponsoredMember(PerunSession sess, SponsoredUserData data, Vo vo, User sponsor, LocalDate validityTo, boolean sendActivationLink, String language, String url, Validation validation) Creates a new sponsored member.createSponsoredMembers(PerunSession sess, Vo vo, String namespace, List<String> names, String email, User sponsor, LocalDate validityTo, boolean sendActivationLink, String language, String url, Validation validation) Creates new sponsored members.createSponsoredMembersFromCSV(PerunSession sess, Vo vo, String namespace, List<String> data, String header, User sponsor, LocalDate validityTo, boolean sendActivationLink, String language, String url, Validation validation, List<Group> groups) Creates new sponsored members.voiddeleteAllMembers(PerunSession sess, Vo vo) Deletes all VO members.voiddeleteMember(PerunSession sess, Member member) Deletes only member data appropriated by member id.voiddeleteMembers(PerunSession sess, List<Member> members) Delete given members.disableMember(PerunSession sess, Member member) Disable member.expireMember(PerunSession sess, Member member) Set member's status to expired.extendExpirationForSponsoredMember(PerunSession sess, Member sponsoredMember, User sponsorUser) Extends expiration date.voidextendMembership(PerunSession sess, Member member) Extend member membership using membershipExpirationRules attribute defined at VO.filterOnlyAllowedAttributes(PerunSession sess, RichMember richMember) For richMember filter all his user and member attributes and remove all which principal has no access to.filterOnlyAllowedAttributes(PerunSession sess, List<RichMember> richMembers) For list of richMembers filter all their user and member attributes and remove all which principal has no access to.filterOnlyAllowedAttributes(PerunSession sess, List<RichMember> richMembers, Group group, boolean useContext) For list of richMembers filter all their user and member attributes and remove all which principal has no access to.findCompleteRichMembers(PerunSession sess, Group group, List<String> attrsNames, String searchString, boolean lookingInParentGroup) Return list of richMembers for specific group by the searchString with attributes specific for list of attrsNames.findCompleteRichMembers(PerunSession sess, Group group, List<String> attrsNames, List<String> allowedStatuses, List<String> allowedGroupStatuses, String searchString, boolean lookingInParentGroup) Return list of richMembers for specific group by the searchString with attributes specific for list of attrsNames and who have only status which is contain in lists of statuses.findCompleteRichMembers(PerunSession sess, Vo vo, List<String> attrsNames, String searchString, boolean onlySponsored) Return list of richMembers for specific vo by the searchString with attributes specific for list of attrsNames.findCompleteRichMembers(PerunSession sess, Vo vo, List<String> attrsNames, List<String> allowedStatuses, String searchString) Return list of richMembers for specific vo by the searchString with attributes specific for list of attrsNames and who have only status which is contain in list of statuses.findCompleteRichMembers(PerunSession sess, List<String> attrsNames, String searchString) Return list of richMembers by the searchString with attributes specific for list of attrsNames.findCompleteRichMembers(PerunSession sess, List<String> attrsNames, List<String> allowedStatuses, String searchString) Return list of richMembers by the searchString with attributes specific for list of attrsNames and who have only status which is contain in list of statuses.findMembers(PerunSession sess, Vo vo, String searchString, boolean onlySponsored) Return list of members VO by specific string.findMembersByName(PerunSession sess, String searchString) Return list of members by theirs name.findMembersByNameInVo(PerunSession sess, Vo vo, String searchString) Return list of members by theirs name under defined VO.findMembersInGroup(PerunSession sess, Group group, String searchString) Return list of members by the searchString under defined Group.findMembersInParentGroup(PerunSession sess, Group group, String searchString) Return list of members by the searchString udner parentGroup of defined Group.findMembersInVo(PerunSession sess, Vo vo, String searchString) Return list of members by theirs name or login or email under defined VO.findRichMembers(PerunSession sess, String searchString, boolean onlySponsored) Return list of rich members by theirs name, id, uuid, login or emailfindRichMembersInVo(PerunSession sess, Vo vo, String searchString, boolean onlySposnored) Return list of rich members by theirs name, id, uuid, login or email under defined VO.findRichMembersWithAttributes(PerunSession sess, String searchString) Return list of rich members with attributes by theirs name or login or emailfindRichMembersWithAttributes(PerunSession sess, String searchString, List<String> attrsNames) Return list of rich members with certain attributes by theirs name or login or email.findRichMembersWithAttributesInGroup(PerunSession sess, Group group, String searchString) Return list of rich members with attributes by the searchString under defined Group.findRichMembersWithAttributesInGroup(PerunSession sess, Group group, String searchString, List<String> attrsNames) Return list of rich members with certain attributes by the searchString under defined Group.findRichMembersWithAttributesInParentGroup(PerunSession sess, Group group, String searchString) Return list of rich members with attributes by the searchString under parent group of defined Group.findRichMembersWithAttributesInVo(PerunSession sess, Vo vo, String searchString) Return list of rich members with attributes by theirs name or login or email under defined VO.findRichMembersWithAttributesInVo(PerunSession sess, Vo vo, String searchString, List<String> attrsNames, boolean onlySponsored) Return list of rich members with certain attributes by theirs name or login or email defined VO.getAllMembers(PerunSession sess) Get all members from all vos.Return all loaded namespaces rules.getAvailableSponsorsForMember(PerunSession sess, Member member) Returns all available sponsors for given member.getCompleteRichMembers(PerunSession sess, Group group, Resource resource, List<String> attrsNames, List<String> allowedStatuses) Get all RichMembers with attributes specific for list of attrNames.getCompleteRichMembers(PerunSession sess, Group group, List<String> attrsNames, boolean lookingInParentGroup) Get all RichMembers with attributes specific for list of attrsNames from the group.getCompleteRichMembers(PerunSession sess, Group group, List<String> attrsNames, List<String> allowedStatuses, List<String> allowedGroupStatuses, boolean lookingInParentGroup) Get all RichMembers with attributes specific for list of attrsNames from the group and have only status which is contain in lists of statuses.getCompleteRichMembers(PerunSession sess, Vo vo, List<String> attrsNames) Get all RichMembers with attributes specific for list of attrsNames from the vo.getCompleteRichMembers(PerunSession sess, Vo vo, List<String> attrsNames, List<String> allowedStatuses) Get all RichMembers with attributes specific for list of attrsNames from the vo and have only status which is contain in list of statuses.getMemberByExtSourceNameAndExtLogin(PerunSession sess, Vo vo, String extSourceName, String extLogin) Get member by extSourceName, extSourceLogin and VogetMemberById(PerunSession sess, int id) Returns member by his id.getMemberByUser(PerunSession sess, Vo vo, User user) Returns member by his user and vo.getMemberByUserExtSource(PerunSession sess, Vo vo, UserExtSource uea) Find member of this Vo by his login in external sourcegetMemberByUserExtSources(PerunSession sess, Vo vo, List<UserExtSource> ueas) Get member by its external sources.getMemberByUserId(PerunSession sess, Vo vo, int userId) Returns member by his userId.getMembers(PerunSession sess, Vo vo) Get all VO members.getMembers(PerunSession sess, Vo vo, Status status) Get all VO members who have the status.getMembersByIds(PerunSession sess, List<Integer> ids) Returns members by their ids.getMembersByUser(PerunSession sess, User user) Return all VO Members of the User.getMembersByUsers(PerunSession sess, List<User> users, Vo vo) Convert list of users into the list of members.getMembersByUsersIds(PerunSession sess, List<Integer> usersIds, Vo vo) Convert list of users' ids into the list of members.getMembersByUserWithStatus(PerunSession sess, User user, Status status) Return all VO Members of the User, which have specified Status in their VO.intgetMembersCount(PerunSession sess, Vo vo) Get the VO members count.intgetMembersCount(PerunSession sess, Vo vo, Status status) Returns number of Vo members with defined status.Gets the membersManagerImpl.getMembersPage(PerunSession sess, Vo vo, MembersPageQuery query, List<String> attrNames) Get page of members from the given vo, with the given attributes.getMembersPage(PerunSession sess, Vo vo, MembersPageQuery query, List<String> attrNames, String policy) Get page of members from the given vo, with the given attributes, based on policy.getMemberVo(PerunSession sess, Member member) Get the member VO.getNamespaceRules(String namespace) Get NamespaceRules for the namespace from the LoginNamespacesRulesConfigContainergetNewExtendMembership(PerunSession sess, Member member) Returns the date to which will be extended member's expiration time.getNewExtendMembership(PerunSession sess, Vo vo, String loa) Returns the date to which will be extended potential member of the VO.Gets the perunBl.getRichMember(PerunSession sess, Member member) Get Member to RichMember with attributes.getRichMembers(PerunSession sess, Group group) Get rich members for displaying on pages.getRichMembers(PerunSession sess, Vo vo) Get rich members for displaying on pages.getRichMembers(PerunSession sess, Vo vo, Status status) Get rich members who have the status, for displaying on pages.getRichMembersNoUserAttributes(PerunSession sess, Vo vo) Get all rich members of VO.getRichMembersWithAttributes(PerunSession sess, Group group, List<AttributeDefinition> attrsDef) Get RichMembers with Attributes but only with selected attributes from list attrsDef.getRichMembersWithAttributes(PerunSession sess, Group group, List<Member> members, List<AttributeDefinition> attrsDef) Get RichMembers with Attributes but only with selected attributes from list attrsDef and for specified members.getRichMembersWithAttributes(PerunSession sess, Vo vo) Get rich members for displaying on pages.getRichMembersWithAttributes(PerunSession sess, Vo vo, Status status) Get rich members who have the status, for displaying on pages.getRichMembersWithAttributes(PerunSession sess, Vo vo, List<AttributeDefinition> attrsDef) Get RichMembers with Attributes but only with selected attributes from list attrsDef.getRichMembersWithAttributes(PerunSession sess, List<String> allowedStatuses, Group group) Get rich members for displaying on pages.getRichMembersWithAttributesByNames(PerunSession sess, Group group, Resource resource, List<String> attrsNames) Get RichMembers with Attributes but only with selected attributes from list attrsDef for group.getRichMembersWithAttributesByNames(PerunSession sess, Group group, List<String> attrsNames) Get RichMembers with Attributes but only with selected attributes from list attrsDef for group.getRichMembersWithAttributesByNames(PerunSession sess, Vo vo, List<String> attrsNames) Get RichMembers with Attributes but only with selected attributes from list attrsNames for vo.getRichMemberWithAttributes(PerunSession sess, Member member) Get Member to RichMember with attributes.getServiceUserRichMembers(PerunSession sess, Vo vo) Get RichMembers from a VO who are service users.getSponsoredMembers(PerunSession sess, User user) Gets list of members that are sponsored by the user in all vos.getSponsoredMembers(PerunSession sess, Vo vo) Gets list of sponsored members of a VO.getSponsoredMembers(PerunSession sess, Vo vo, User user) Gets list of members that are sponsored by the user in the vo.getSponsoredRichMembers(PerunSession sess, Vo vo) Get list of rich members that are sponsored in the VO.getSponsorship(PerunSession sess, Member sponsoredMember, User sponsor) For the given member and user returns their sponsorship relation object.getSponsorshipsExpiringInRange(PerunSession sess, LocalDate from, LocalDate to) Returns sponsorship, which have validityTo in range [from, to).getUnifiedMemberGroupStatus(PerunSession sess, Member member, Resource resource) Returns unified result of MemberGroupStatus for specified member and resource.getUnifiedMemberGroupStatus(PerunSession sess, User user, Facility facility) Returns unified result of MemberGroupStatus for specified user and facility.booleanhaveStatus(PerunSession sess, Member member, Status status) Return true if member have specified status.voidinsertToMemberGroup(PerunSession sess, Member member, Vo vo) invalidateMember(PerunSession sess, Member member) Set member status to invalid.booleanisMemberAllowed(PerunSession sess, Member member) Return false if member has status INVALID or DISABLED.manageMembershipExpiration(PerunSession sess, Member member, boolean setAttributeValue, boolean throwExceptions) More info on https://wiki.metacentrum.cz/wiki/VO_managers%27s_manualvoidmoveMembership(PerunSession sess, Vo vo, User sourceUser, User targetUser) Moves membership in VO from source user to target user - moves the source user's memberships in non-synchronized groups, member related attributes, bans and sponsorships in the VO.voidremoveSponsor(PerunSession sess, Member sponsoredMember, User sponsorToRemove) Removes a sponsor.retainMembersWithStatus(PerunSession sess, List<Member> members, Status status) Retain only members with specified status.voidsendAccountActivationLinkEmail(PerunSession sess, Member member, String namespace, String url, String mailAddress, String language) Send mail to user's preferred email address with link for non-authz account activation.voidsendPasswordResetLinkEmail(PerunSession sess, Member member, String namespace, String url, String mailAddress, String language) Send mail to user's preferred email address with link for non-authz password reset.voidsendUsernameReminderEmail(PerunSession sess, Member member, String namespace, String mailAddress, String language) Send mail to user's preferred email address with username for the given namespace.voidsetOrganizationsAttributes(PerunSession sess, Vo vo, Member member) Set memberOrganizations and memberOrganizationsHistory attributes for specific member.voidsetPerunBl(PerunBl perunBl) setSponsoredMember(PerunSession session, SponsoredUserData data, Vo vo, User userToBeSponsored, User sponsor, LocalDate validityTo, Validation validation) Creates a sponsored membership for the given user.setSponsoredMember(PerunSession session, Vo vo, User userToBeSponsored, String namespace, String password, User sponsor, Validation validation) Creates a sponsored membership for the given user.setSponsorshipForMember(PerunSession session, Member sponsoredMember, User sponsor) Transform non-sponsored member to sponsored one with defined sponsorsetSponsorshipForMember(PerunSession session, Member sponsoredMember, User sponsor, LocalDate validityTo) Transform non-sponsored member to sponsored one with defined sponsorsetStatus(PerunSession sess, Member member, Status status) Set status of the member to specified status.booleansomeAvailableSponsorExistsForMember(PerunSession sess, Member member) Checks if some vo sponsor who does not already sponsor given member exists.sponsorMember(PerunSession session, Member sponsoredMember, User sponsor) Links sponsored member and sponsoring user.sponsorMember(PerunSession session, Member sponsoredMember, User sponsor, LocalDate validityTo) Links sponsored member and sponsoring user.voidsuspendMemberTo(PerunSession sess, Member member, Date suspendedTo) Set date to which will be member suspended in his VO.unsetSponsorshipForMember(PerunSession session, Member sponsoredMember) Transform sponsored member to non-sponsored one.voidunsuspendMember(PerunSession sess, Member member) Remove suspend state from Member - remove date to which member should be considered as suspended in the VO.updateMember(PerunSession sess, Member member) Update member in underlaying data source.voidupdateOrganizationsAttributes(PerunSession sess, Vo vo, Member member) Update value of memberOrganizations or memberOrganizationsHistory attribute for specific member.voidupdateSponsorshipValidity(PerunSession sess, Member sponsoredMember, User sponsor, LocalDate newValidity) Update the sponsorship of given member for given sponsor.validateMember(PerunSession sess, Member member) Validate all atributes for member and set member's status to VALID.voidvalidateMemberAsync(PerunSession sess, Member member) Validate all attributes for member and then set member's status to VALID.
- 
Field Details- 
SPONSORED_MEMBER_REQUIRED_FIELDS
- 
SPONSORED_MEMBER_ADDITIONAL_FIELDS
 
- 
- 
Constructor Details- 
MembersManagerBlImplConstructor.
 
- 
- 
Method Details- 
canBeMemberDescription copied from interface:MembersManagerBlChecks if the user can apply membership to the VO, it decides based on extendMembershipRules on the doNotAllowLoa key- Specified by:
- canBeMemberin interface- MembersManagerBl
- Parameters:
- sess-
- vo-
- user-
- loa-
- Returns:
- true if user can be apply for membership to the VO
 
- 
canBeMemberInternalprotected boolean canBeMemberInternal(PerunSession sess, Vo vo, User user, String loa, boolean throwExceptions) throws ExtendMembershipException More info on https://wiki.metacentrum.cz/wiki/VO_managers%27s_manualCheck if the user can apply for VO membership. VO restrictions doesn't apply to service users. - Parameters:
- sess- sess
- vo- VO to apply for
- user- User applying for membership
- loa- level of assurance provided by user's external identity
- throwExceptions- TRUE = throw exceptions / FALSE = return false when user can't be member of VO
- Returns:
- True if user can become member of VO / false or exception otherwise.
- Throws:
- ExtendMembershipException- When user can't be member of VO and throwExceptions is set to true
- InternalErrorException
 
- 
canBeMemberWithReasonpublic boolean canBeMemberWithReason(PerunSession sess, Vo vo, User user, String loa) throws ExtendMembershipException Description copied from interface:MembersManagerBlChecks if the user can apply membership to the VO, it decides based on extendMembershipRules on the doNotAllowLoa key- Specified by:
- canBeMemberWithReasonin interface- MembersManagerBl
- Parameters:
- sess-
- vo-
- user-
- loa-
- Returns:
- true if user can be apply for membership to the VO, exception with reason otherwise
- Throws:
- ExtendMembershipException
 
- 
canExtendMembershipDescription copied from interface:MembersManagerBlReturn true if the membership can be extended or if no rules were set for the membershipExpiration, otherwise false.- Specified by:
- canExtendMembershipin interface- MembersManagerBl
- Parameters:
- sess-
- member-
- Returns:
- true if the membership can be extended or if no rules were set for the membershipExpiration, otherwise false
 
- 
canExtendMembershipWithReasonpublic boolean canExtendMembershipWithReason(PerunSession sess, Member member) throws ExtendMembershipException Description copied from interface:MembersManagerBlReturn true if the membership can be extended or if no rules were set for the membershipExpiration, otherwise throws exception.- Specified by:
- canExtendMembershipWithReasonin interface- MembersManagerBl
- Parameters:
- sess-
- member-
- Returns:
- true if the membership can be extended or if no rules were set for the membershipExpiration, otherwise throws exception with reason
- Throws:
- ExtendMembershipException
 
- 
checkMemberExists- Specified by:
- checkMemberExistsin interface- MembersManagerBl
- Throws:
- MemberNotExistsException
 
- 
checkMemberLifecycleIsAlterablepublic void checkMemberLifecycleIsAlterable(PerunSession sess, Member member) throws MemberLifecycleAlteringForbiddenException Description copied from interface:MembersManagerBlThrows exception if member is member of hierarchical vo but comes from its member vos.- Specified by:
- checkMemberLifecycleIsAlterablein interface- MembersManagerBl
- Parameters:
- sess- session
- member- member
- Throws:
- MemberLifecycleAlteringForbiddenException- member comes from hierarchical vo
 
- 
checkSponsoredUserDatapublic void checkSponsoredUserData(PerunSession sess, SponsoredUserData data) throws InvalidSponsoredUserDataException, NamespaceRulesNotExistsException Description copied from interface:MembersManagerBlChecks, whether the provided data are valid according to the namespace rules, if the namespace is not null.- Specified by:
- checkSponsoredUserDatain interface- MembersManagerBl
- Parameters:
- sess- session
- data- data to be checked
- Throws:
- InvalidSponsoredUserDataException- if the data are not valid
- NamespaceRulesNotExistsException- if there are no namespace rules for the given namespace
 
- 
convertMembersToRichMembersConverts members to rich members. Rich member object contains user, member, userExtSources, userAttributes, memberAttributes. The method returns list of rich members with user and userExtSources filled. UserAttributes and memberAttributes are set to null.- Specified by:
- convertMembersToRichMembersin interface- MembersManagerBl
- Parameters:
- sess-
- members-
- Returns:
- list of rich members, empty list if empty list of members is passed
- Throws:
- InternalErrorException
 
- 
convertMembersToRichMembersNoUserAttributespublic List<RichMember> convertMembersToRichMembersNoUserAttributes(PerunSession sess, List<RichMember> richMembers) Adds memberAttributes to rich members. The method returns list of rich members with memberAttributes filled.- Specified by:
- convertMembersToRichMembersNoUserAttributesin interface- MembersManagerBl
- Parameters:
- sess-
- richMembers-
- Returns:
- list of rich members with memberAttributes filled
- Throws:
- InternalErrorException
 
- 
convertMembersToRichMembersWithAttributespublic List<RichMember> convertMembersToRichMembersWithAttributes(PerunSession sess, List<RichMember> richMembers) Adds userAttributes and memberAttributes to rich members. The method returns list of rich members with userAttributes and memberAttributes filled.- Specified by:
- convertMembersToRichMembersWithAttributesin interface- MembersManagerBl
- Parameters:
- sess-
- richMembers-
- Returns:
- list of rich members with userAttributes and memberAttributes filled
- Throws:
- InternalErrorException
 
- 
convertMembersToRichMembersWithAttributespublic List<RichMember> convertMembersToRichMembersWithAttributes(PerunSession sess, List<RichMember> richMembers, List<AttributeDefinition> attrsDef) Adds userAttributes and memberAttributes to rich members. Attributes are limited by the list of attributes definitions. The method returns list of rich members with userAttributes and memberAttributes filled.- Specified by:
- convertMembersToRichMembersWithAttributesin interface- MembersManagerBl
- Parameters:
- sess-
- richMembers-
- attrsDef-
- Returns:
- list of rich members with userAttributes and memberAttributes filled
- Throws:
- InternalErrorException
 
- 
convertMembersToRichMembersWithAttributespublic List<RichMember> convertMembersToRichMembersWithAttributes(PerunSession sess, List<RichMember> richMembers, Resource resource, List<AttributeDefinition> attrsDef) throws MemberResourceMismatchException Adds userAttributes and memberAttributes to rich members. Specifically adds attributes that are associated with the members and the resource. Attributes are also limited by the list of attributes definitions. Adds member and member-resource attributes to memberAttributes and user and user-facility attributes to userAttributes. The method returns list of rich members with userAttributes and memberAttributes filled.- Specified by:
- convertMembersToRichMembersWithAttributesin interface- MembersManagerBl
- Parameters:
- sess-
- richMembers-
- resource-
- attrsDef-
- Returns:
- list of rich members with userAttributes and memberAttributes filled
- Throws:
- InternalErrorException
- WrongAttributeAssignmentException
- MemberResourceMismatchException
 
- 
convertMembersToRichMembersWithAttributespublic List<RichMember> convertMembersToRichMembersWithAttributes(PerunSession sess, Group group, List<RichMember> richMembers, List<AttributeDefinition> attrsDef) throws MemberGroupMismatchException Adds userAttributes and memberAttributes to rich members. Specifically adds attributes that are associated with the members and the group. Attributes are also limited by the list of attributes definitions. Adds member and member-group attributes to memberAttributes and user attributes to userAttributes. The method returns list of rich members with userAttributes and memberAttributes filled.- Parameters:
- sess-
- group-
- richMembers-
- attrsDef-
- Returns:
- list of rich members with userAttributes and memberAttributes filled
- Throws:
- InternalErrorException
- MemberGroupMismatchException
 
- 
convertMembersToRichMembersWithAttributespublic List<RichMember> convertMembersToRichMembersWithAttributes(PerunSession sess, Group group, Resource resource, List<RichMember> richMembers, List<AttributeDefinition> attrsDef) throws MemberResourceMismatchException, GroupResourceMismatchException, MemberGroupMismatchException Adds userAttributes and memberAttributes to rich members. Specifically adds attributes that are associated with the members, the group and the resource. Attributes are also limited by the list of attributes definitions. Adds member, member-group and member-resource attributes to memberAttributes and user and user-facility attributes to userAttributes. The method returns list of rich members with userAttributes and memberAttributes filled.- Parameters:
- sess-
- group-
- resource-
- richMembers-
- attrsDef-
- Returns:
- list of rich members with userAttributes and memberAttributes filled
- Throws:
- InternalErrorException
- GroupResourceMismatchException
- MemberResourceMismatchException
- MemberGroupMismatchException
 
- 
convertMembersToRichMembersWithAttributesBatchpublic List<RichMember> convertMembersToRichMembersWithAttributesBatch(PerunSession sess, List<RichMember> richMembers, List<AttributeDefinition> attrsDef) Description copied from interface:MembersManagerBlOptimized variant ofconvertMembersToRichMembersWithAttribute. Fetches the def/opt user and member attributes in batch methods. Any missing attributes for each member are added with null values (meaning their value was not present in the db). For other (virt, core, core-managed) attributes the usual convertMembersToRichMembersWithAttribute method is called. The method is supposed to be used when a large amount of def attributes needs to be retrieved efficiently.- Specified by:
- convertMembersToRichMembersWithAttributesBatchin interface- MembersManagerBl
- Parameters:
- sess-
- richMembers-
- attrsDef-
- Returns:
- list of rich members with userAttributes and memberAttributes filled
 
- 
convertUserToSponsorDescription copied from interface:MembersManagerBlConvert given User to the Sponsor object. For the sponsor object, there is loaded information about the sponsorship. Also, if the given user is a RichUser, all of its attributes and userExtSources are also set to the sponsor object.- Specified by:
- convertUserToSponsorin interface- MembersManagerBl
- Parameters:
- sess- session
- user- a User or a RichUser object
- sponsoredMember- member, to which the sponsorship information is loaded
- Returns:
- Sponsor object created from given user object with addition info about sponsorship for the given member.
 
- 
createMemberpublic Member createMember(PerunSession sess, Vo vo, String extSourceName, String extSourceType, String login, Candidate candidate) throws WrongAttributeValueException, WrongReferenceAttributeValueException, AlreadyMemberException, ExtendMembershipException Description copied from interface:MembersManagerBlCreates a new member and sets all member's attributes from the candidate. It can be called in synchronous or asynchronous mode Also stores the associated user if doesn't exist. This method is used by the registrar. This method runs WITHOUT synchronization. If validation is needed, need to call concrete validateMember method (validateMemberAsync recommended).- Specified by:
- createMemberin interface- MembersManagerBl
- Parameters:
- sess-
- vo-
- extSourceName- name of the extSource
- extSourceType- type of the extSource (e.g. cz.metacentrum.perun.core.impl.ExtSourceIdp)
- login- user's login within extSource
- candidate-
- Returns:
- newly created member, who has set all his/her attributes
- Throws:
- WrongAttributeValueException
- WrongReferenceAttributeValueException
- AlreadyMemberException
- ExtendMembershipException
 
- 
createMemberpublic Member createMember(PerunSession sess, Vo vo, String extSourceName, String extSourceType, String login, Candidate candidate, List<Group> groups) throws WrongAttributeValueException, WrongReferenceAttributeValueException, AlreadyMemberException, ExtendMembershipException Description copied from interface:MembersManagerBlCreates a new member and sets all member's attributes from the candidate. It can be called in synchronous or asynchronous mode Also stores the associated user if doesn't exist. This method is used by the registrar.Also add this member to groups in list. This method runs WITHOUT synchronization. If validation is needed, need to call concrete validateMember method (validateMemberAsync recommended). - Specified by:
- createMemberin interface- MembersManagerBl
- Parameters:
- sess-
- vo-
- extSourceName- name of the extSource
- extSourceType- type of the extSource (e.g. cz.metacentrum.perun.core.impl.ExtSourceIdp)
- login- user's login within extSource
- candidate-
- groups- list of groups where member will be added too
- Returns:
- newly created member, who has set all his/her attributes
- Throws:
- WrongAttributeValueException
- WrongReferenceAttributeValueException
- AlreadyMemberException
- ExtendMembershipException
 
- 
createMemberpublic Member createMember(PerunSession sess, Vo vo, String extSourceName, String extSourceType, int loa, String login, Candidate candidate) throws WrongAttributeValueException, WrongReferenceAttributeValueException, AlreadyMemberException, ExtendMembershipException Description copied from interface:MembersManagerBlCreates a new member and sets all member's attributes from the candidate. Also stores the associated user if doesn't exist. This method is used by the registrar. This method runs WITHOUT synchronization. If validation is needed, need to call concrete validateMember method (validateMemberAsync recommended).- Specified by:
- createMemberin interface- MembersManagerBl
- Parameters:
- sess-
- vo-
- extSourceName- name of the extSource
- extSourceType- type of the extSource (e.g. cz.metacentrum.perun.core.impl.ExtSourceIdp)
- loa- level of assurance
- login- user's login within extSource
- candidate-
- Returns:
- newly created member, who has set all his/her attributes
- Throws:
- WrongAttributeValueException
- WrongReferenceAttributeValueException
- AlreadyMemberException
- ExtendMembershipException
 
- 
createMemberpublic Member createMember(PerunSession sess, Vo vo, String extSourceName, String extSourceType, int loa, String login, Candidate candidate, List<Group> groups) throws WrongAttributeValueException, WrongReferenceAttributeValueException, AlreadyMemberException, ExtendMembershipException Description copied from interface:MembersManagerBlCreates a new member and sets all member's attributes from the candidate. Also stores the associated user if doesn't exist. This method is used by the registrar.Also add this member to groups in list. This method runs WITHOUT synchronization. If validation is needed, need to call concrete validateMember method (validateMemberAsync recommended). - Specified by:
- createMemberin interface- MembersManagerBl
- Parameters:
- sess-
- vo-
- extSourceName- name of the extSource
- extSourceType- type of the extSource (e.g. cz.metacentrum.perun.core.impl.ExtSourceIdp)
- loa- level of assurance
- login- user's login within extSource
- candidate-
- groups- list of groups where member will be added too
- Returns:
- newly created member, who has set all his/her attributes
- Throws:
- WrongAttributeValueException
- WrongReferenceAttributeValueException
- AlreadyMemberException
- ExtendMembershipException
 
- 
createMemberpublic Member createMember(PerunSession sess, Vo vo, Candidate candidate) throws WrongAttributeValueException, WrongReferenceAttributeValueException, AlreadyMemberException, ExtendMembershipException Description copied from interface:MembersManagerBlCreates a new member from candidate returned by the method VosManager.findCandidates which fills Candidate .userExtSource. This method runs WITHOUT synchronization. If validation is needed, need to call concrete validateMember method (validateMemberAsync recommended).- Specified by:
- createMemberin interface- MembersManagerBl
- Parameters:
- sess-
- vo-
- candidate-
- Returns:
- newly created members
- Throws:
- WrongAttributeValueException
- WrongReferenceAttributeValueException
- AlreadyMemberException
- ExtendMembershipException
- See Also:
 
- 
createMemberpublic Member createMember(PerunSession sess, Vo vo, Candidate candidate, List<Group> groups) throws WrongAttributeValueException, WrongReferenceAttributeValueException, AlreadyMemberException, ExtendMembershipException Description copied from interface:MembersManagerBlCreates a new member from candidate returned by the method VosManager.findCandidates which fills Candidate .userExtSource.Also add this member to groups in list. This method runs WITHOUT synchronization. If validation is needed, need to call concrete validateMember method (validateMemberAsync recommended). - Specified by:
- createMemberin interface- MembersManagerBl
- Parameters:
- sess-
- vo-
- candidate-
- groups- list of groups where member will be added too
- Returns:
- newly created members
- Throws:
- WrongAttributeValueException
- WrongReferenceAttributeValueException
- AlreadyMemberException
- ExtendMembershipException
- See Also:
 
- 
createMemberpublic Member createMember(PerunSession sess, Vo vo, SpecificUserType specificUserType, Candidate candidate) throws WrongAttributeValueException, WrongReferenceAttributeValueException, AlreadyMemberException, ExtendMembershipException Description copied from interface:MembersManagerBlCreates a new member from candidate returned by the method VosManager.findCandidates which fills Candidate .userExtSource. This method runs WITHOUT synchronization. If validation is needed, need to call concrete validateMember method (validateMemberAsync recommended).- Specified by:
- createMemberin interface- MembersManagerBl
- Parameters:
- sess-
- vo-
- specificUserType- (Normal or service or sponsored)
- candidate-
- Returns:
- newly created members
- Throws:
- WrongAttributeValueException
- WrongReferenceAttributeValueException
- AlreadyMemberException
- ExtendMembershipException
- See Also:
 
- 
createMemberpublic Member createMember(PerunSession sess, Vo vo, SpecificUserType specificUserType, Candidate candidate, List<Group> groups, List<String> overwriteUserAttributes) throws WrongAttributeValueException, WrongReferenceAttributeValueException, AlreadyMemberException, ExtendMembershipException Description copied from interface:MembersManagerBlCreates a new member from candidate returned by the method VosManager.findCandidates which fills Candidate .userExtSource.Also add this member to groups in list. This method runs WITHOUT synchronization. If validation is needed, need to call concrete validateMember method (validateMemberAsync recommended). - Specified by:
- createMemberin interface- MembersManagerBl
- Parameters:
- sess-
- vo-
- specificUserType- (Normal or service or sponsored)
- candidate-
- groups- list of groups where member will be added too
- overwriteUserAttributes- list of user attributes names which will be overwrite instead of merged
- Returns:
- newly created members
- Throws:
- WrongAttributeValueException
- WrongReferenceAttributeValueException
- AlreadyMemberException
- ExtendMembershipException
- See Also:
 
- 
createMemberpublic Member createMember(PerunSession sess, Vo vo, User user) throws AlreadyMemberException, ExtendMembershipException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:MembersManagerBlCreates a new member from user. This method runs asynchronously- Specified by:
- createMemberin interface- MembersManagerBl
- Parameters:
- sess-
- vo-
- user-
- Returns:
- newly created member
- Throws:
- AlreadyMemberException
- ExtendMembershipException
- WrongAttributeValueException
- WrongReferenceAttributeValueException
 
- 
createMemberpublic Member createMember(PerunSession sess, Vo vo, User user, List<Group> groups) throws AlreadyMemberException, ExtendMembershipException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:MembersManagerBlCreates a new member from user.Also add this member to groups in list. This method runs asynchronously - Specified by:
- createMemberin interface- MembersManagerBl
- Parameters:
- sess-
- vo-
- user-
- groups- list of groups where member will be added too
- Returns:
- newly created member
- Throws:
- AlreadyMemberException
- ExtendMembershipException
- WrongAttributeValueException
- WrongReferenceAttributeValueException
 
- 
createMemberpublic Member createMember(PerunSession sess, Vo vo, ExtSource extSource, String login, List<Group> groups) throws WrongAttributeValueException, WrongReferenceAttributeValueException, AlreadyMemberException, ExtendMembershipException Description copied from interface:MembersManagerBlCreate new member from user by login and ExtSource.Also add this member to groups in list. This method runs asynchronously - Specified by:
- createMemberin interface- MembersManagerBl
- Parameters:
- sess-
- vo-
- extSource-
- login-
- groups- list of groups where member will be added too
- Returns:
- newly created member
- Throws:
- WrongAttributeValueException
- WrongReferenceAttributeValueException
- AlreadyMemberException
- ExtendMembershipException
 
- 
createMemberSyncpublic Member createMemberSync(PerunSession sess, Vo vo, Candidate candidate) throws WrongAttributeValueException, WrongReferenceAttributeValueException, AlreadyMemberException, ExtendMembershipException Description copied from interface:MembersManagerBlCreates member. Runs synchronously.- Specified by:
- createMemberSyncin interface- MembersManagerBl
- Throws:
- WrongAttributeValueException
- WrongReferenceAttributeValueException
- AlreadyMemberException
- ExtendMembershipException
- See Also:
 
- 
createMemberSyncpublic Member createMemberSync(PerunSession sess, Vo vo, Candidate candidate, List<Group> groups) throws WrongAttributeValueException, WrongReferenceAttributeValueException, AlreadyMemberException, ExtendMembershipException Description copied from interface:MembersManagerBlCreates member. Runs synchronously. Add member also to all groups in list.- Specified by:
- createMemberSyncin interface- MembersManagerBl
- Throws:
- WrongAttributeValueException
- WrongReferenceAttributeValueException
- AlreadyMemberException
- ExtendMembershipException
- See Also:
 
- 
createMemberSyncpublic Member createMemberSync(PerunSession sess, Vo vo, Candidate candidate, List<Group> groups, List<String> overwriteUserAttributes) throws WrongAttributeValueException, WrongReferenceAttributeValueException, AlreadyMemberException, ExtendMembershipException Description copied from interface:MembersManagerBlCreates member. Runs synchronously. Add member also to all groups in list.- Specified by:
- createMemberSyncin interface- MembersManagerBl
- Throws:
- WrongAttributeValueException
- WrongReferenceAttributeValueException
- AlreadyMemberException
- ExtendMembershipException
- See Also:
 
- 
createServiceMemberpublic Member createServiceMember(PerunSession sess, Vo vo, Candidate candidate, List<User> owners) throws WrongAttributeValueException, WrongReferenceAttributeValueException, AlreadyMemberException, ExtendMembershipException Description copied from interface:MembersManagerBlCreates a new member from candidate which is prepared for creating service user. In list specificUserOwners can't be service user, only normal users are allowed. This method runs WITHOUT synchronization. If validation is needed, need to call concrete validateMember method (validateMemberAsync recommended).- Specified by:
- createServiceMemberin interface- MembersManagerBl
- Parameters:
- sess-
- vo-
- candidate- prepared future specificUser
- owners- list of users who own the service (can't be empty or contain specific user)
- Returns:
- newly created member (of service User)
- Throws:
- WrongAttributeValueException
- WrongReferenceAttributeValueException
- AlreadyMemberException
- ExtendMembershipException
 
- 
createServiceMemberpublic Member createServiceMember(PerunSession sess, Vo vo, Candidate candidate, List<User> specificUserOwners, List<Group> groups) throws WrongAttributeValueException, WrongReferenceAttributeValueException, AlreadyMemberException, ExtendMembershipException Description copied from interface:MembersManagerBlCreates a new member from candidate which is prepared for creating service user. In list specificUserOwners can't be service user, only normal users are allowed.Also add this member to groups in list. This method runs WITHOUT synchronization. If validation is needed, need to call concrete validateMember method (validateMemberAsync recommended). - Specified by:
- createServiceMemberin interface- MembersManagerBl
- Parameters:
- sess-
- vo-
- candidate- prepared future specificUser
- specificUserOwners- list of users who own the service user (can't be empty or contain service user)
- groups- list of groups where member will be added too
- Returns:
- newly created member (of specific User)
- Throws:
- WrongAttributeValueException
- WrongReferenceAttributeValueException
- AlreadyMemberException
- ExtendMembershipException
 
- 
createSponsoredMemberpublic Member createSponsoredMember(PerunSession sess, SponsoredUserData data, Vo vo, User sponsor, LocalDate validityTo, boolean sendActivationLink, String language, String url, Validation validation) throws AlreadyMemberException, LoginNotExistsException, PasswordCreationFailedException, ExtendMembershipException, WrongAttributeValueException, ExtSourceNotExistsException, WrongReferenceAttributeValueException, UserNotInRoleException, InvalidLoginException, AlreadySponsorException, InvalidSponsoredUserDataException, NamespaceRulesNotExistsException, PasswordStrengthException Description copied from interface:MembersManagerBlCreates a new sponsored member.- Specified by:
- createSponsoredMemberin interface- MembersManagerBl
- Parameters:
- sess- perun session
- data- about the user that should be created, required fields depend on the provided namespace. However, it has to contain either `guestName`, or `firstName` and `lastName`. Also, if you want to create an external account, specify the `namespace` field.
- vo- virtual organization
- sponsor- sponsoring user or null for the caller
- validityTo- last day when the sponsorship is active (null means the sponsorship will last forever)
- sendActivationLink- if true link for manual activation of account will be send to the email be careful when using with empty (no-reply) email
- language- language of the activation email (e.g. "en", "cs"). Use english if null.
- url- base URL of Perun Instance
- validation- Type of members validation, when using Validation.ASYNC do not call this method in a cycle!
- Returns:
- created member
- Throws:
- AlreadyMemberException
- LoginNotExistsException
- PasswordCreationFailedException
- ExtendMembershipException
- WrongAttributeValueException
- ExtSourceNotExistsException
- WrongReferenceAttributeValueException
- UserNotInRoleException- if the member is not in required role
- AlreadySponsorException
- InvalidLoginException
- InvalidSponsoredUserDataException
- NamespaceRulesNotExistsException
- PasswordStrengthException
 
- 
createSponsoredMemberspublic List<Map<String,String>> createSponsoredMembers(PerunSession sess, Vo vo, String namespace, List<String> names, String email, User sponsor, LocalDate validityTo, boolean sendActivationLink, String language, String url, Validation validation) Description copied from interface:MembersManagerBlCreates new sponsored members.Since there may be error while creating some of the members and we cannot simply rollback the transaction and start over, exceptions during member creation are not thrown and the returned list has this structure: [{"name" -> name, "status" -> "OK" or "Error...", "login" -> login, "password" -> password}] Each list element represents member as map containing keys "name", "status", "login" and "password". "status" has as its value either "OK" or message of exception which was thrown during creation of the member. "name" contains full entry as received (e.g. first name; last name; email), "login" contains login (e.g. učo) if status is OK, "password" contains password if status is OK. - Specified by:
- createSponsoredMembersin interface- MembersManagerBl
- Parameters:
- sess- perun session
- vo- virtual organization to created sponsored members in
- namespace- used for selecting external system in which guest user account will be created
- names- names of members to create, single name should have the format {firstName};{lastName} to be parsed well
- email- (optional) preferred email that will be set to the created user. If no email is provided, "no-reply@muni.cz" is used.
- sponsor- sponsoring user
- sendActivationLink- if true link for manual activation of every created sponsored member account will be send to the email, be careful when using with empty (no-reply) email
- language- language of the activation email (e.g. "en", "cs"). Use english if null.
- url- base URL of Perun Instance
- validation- Type of members validation, when ASYNC do not call this method in a cycle!
- Returns:
- list of maps of name, status, login and password
 
- 
createSponsoredMembersFromCSVpublic List<Map<String,String>> createSponsoredMembersFromCSV(PerunSession sess, Vo vo, String namespace, List<String> data, String header, User sponsor, LocalDate validityTo, boolean sendActivationLink, String language, String url, Validation validation, List<Group> groups) Description copied from interface:MembersManagerBlCreates new sponsored members.Since there may be error while creating some of the members and we cannot simply rollback the transaction and start over, exceptions during member creation are not thrown and the returned list has this structure: [{"name" -> name, "status" -> "OK" or "Error...", "login" -> login, "password" -> password}] Each list element represents member as map containing keys "name", "status", "login" and "password". "status" has as its value either "OK" or message of exception which was thrown during creation of the member. "name" contains full entry as received (e.g. first name; last name; email), "login" contains login (e.g. učo) if status is OK, "password" contains password if status is OK. - Specified by:
- createSponsoredMembersFromCSVin interface- MembersManagerBl
- Parameters:
- sess- perun session
- vo- virtual organization to created sponsored members in
- namespace- used for selecting external system in which guest user account will be created
- data- csv file values separated by semicolon ';' characters
- header- header to the given csv data, it should represent columns for the given data. Required values are - firstname, lastname, urn:perun:user:attribute-def:def:preferredMail Optional values are - urn:perun:user:attribute-def:def:note The order of the items doesn't matter.
- sponsor- sponsoring user
- sendActivationLink- if true link for manual activation of every created sponsored member account will be send to email which was set for him, be careful when using no-reply emails
- language- language of the activation email (e.g. "en", "cs"). Use english if null.
- url- base URL of Perun Instance
- validation- Type of members validation, when ASYNC do not call this method in a cycle!
- groups- groups, to which will be the created users assigned
- Returns:
- list of maps of name, status, login and password
 
- 
deleteAllMembersDescription copied from interface:MembersManagerBlDeletes all VO members.- Specified by:
- deleteAllMembersin interface- MembersManagerBl
- Parameters:
- sess-
- vo-
- Throws:
- MemberAlreadyRemovedException
 
- 
deleteMemberDescription copied from interface:MembersManagerBlDeletes only member data appropriated by member id.- Specified by:
- deleteMemberin interface- MembersManagerBl
- Parameters:
- sess-
- member-
- Throws:
- MemberAlreadyRemovedException
 
- 
deleteMemberspublic void deleteMembers(PerunSession sess, List<Member> members) throws MemberAlreadyRemovedException Description copied from interface:MembersManagerBlDelete given members. It is possible to delete members from multiple vos.- Specified by:
- deleteMembersin interface- MembersManagerBl
- Parameters:
- sess- session
- members- members that will be deleted
- Throws:
- MemberAlreadyRemovedException- if already removed
 
- 
disableMemberDescription copied from interface:MembersManagerBlDisable member.As side effect, on success will change status of the object member. - Specified by:
- disableMemberin interface- MembersManagerBl
- Parameters:
- sess-
- member-
- Returns:
- member with new status set
- Throws:
- MemberNotValidYetException
 
- 
expireMemberpublic Member expireMember(PerunSession sess, Member member) throws WrongReferenceAttributeValueException, WrongAttributeValueException Description copied from interface:MembersManagerBlSet member's status to expired. All attributes are validated if was in INVALID or DISABLED state before. If validation ends with error, member keeps his old status.Method runs in nested transaction. As side effect, on success will change status of the object member. - Specified by:
- expireMemberin interface- MembersManagerBl
- Parameters:
- sess-
- member-
- Returns:
- member with new status set
- Throws:
- WrongReferenceAttributeValueException
- WrongAttributeValueException
 
- 
extendExpirationForSponsoredMemberpublic String extendExpirationForSponsoredMember(PerunSession sess, Member sponsoredMember, User sponsorUser) Description copied from interface:MembersManagerBlExtends expiration date. Sponsored members cannot apply for membership extension, this method allows a sponsor to extend it.- Specified by:
- extendExpirationForSponsoredMemberin interface- MembersManagerBl
- Parameters:
- sess- perun session
- sponsoredMember- member which is sponsored
- sponsorUser- sponsoring user or null for the caller
- Returns:
- new expiration date
 
- 
extendMembershipDescription copied from interface:MembersManagerBlExtend member membership using membershipExpirationRules attribute defined at VO.- Specified by:
- extendMembershipin interface- MembersManagerBl
- Parameters:
- sess-
- member-
- Throws:
- ExtendMembershipException
 
- 
filterOnlyAllowedAttributesDescription copied from interface:MembersManagerBlFor richMember filter all his user and member attributes and remove all which principal has no access to.- Specified by:
- filterOnlyAllowedAttributesin interface- MembersManagerBl
- Parameters:
- sess-
- richMember-
- Returns:
- richMember with only allowed attributes
 
- 
filterOnlyAllowedAttributespublic List<RichMember> filterOnlyAllowedAttributes(PerunSession sess, List<RichMember> richMembers) Description copied from interface:MembersManagerBlFor list of richMembers filter all their user and member attributes and remove all which principal has no access to.- Specified by:
- filterOnlyAllowedAttributesin interface- MembersManagerBl
- Parameters:
- sess-
- richMembers-
- Returns:
- list of richMembers with only allowed attributes
 
- 
filterOnlyAllowedAttributespublic List<RichMember> filterOnlyAllowedAttributes(PerunSession sess, List<RichMember> richMembers, Group group, boolean useContext) Description copied from interface:MembersManagerBlFor list of richMembers filter all their user and member attributes and remove all which principal has no access to.Context means that voId for all members is same (rules can be same for all members in list) if useContext is true: every attribute is unique in context of friendlyName, which means more attributes for more members have same rules if friendly name is same for all of them (better performance, worse authorization check) if useContext is false: every attribute is unique in context of member, which means every attribute for more members need to be check separately, because for example members can be from different vos (better authorization check, worse performance) - Specified by:
- filterOnlyAllowedAttributesin interface- MembersManagerBl
- Parameters:
- sess-
- richMembers- list of richMembers for which attributes need to be filtered
- group-
- useContext- true or false means using context or not using context (more above in javadoc)
- Returns:
- list of richMembers with only allowed attributes
 
- 
findCompleteRichMemberspublic List<RichMember> findCompleteRichMembers(PerunSession sess, Vo vo, List<String> attrsNames, String searchString, boolean onlySponsored) Description copied from interface:MembersManagerBlReturn list of richMembers for specific vo by the searchString with attributes specific for list of attrsNames. If attrsNames is empty or null return all attributes for specific richMembers.- Specified by:
- findCompleteRichMembersin interface- MembersManagerBl
- Parameters:
- sess-
- vo-
- attrsNames-
- searchString-
- onlySponsored- return only sponsored members
- Returns:
- list of founded richMembers with specific attributes from Vo for searchString
 
- 
findCompleteRichMemberspublic List<RichMember> findCompleteRichMembers(PerunSession sess, List<String> attrsNames, String searchString) Description copied from interface:MembersManagerBlReturn list of richMembers by the searchString with attributes specific for list of attrsNames. If attrsNames is empty or null return all attributes for specific richMembers.- Specified by:
- findCompleteRichMembersin interface- MembersManagerBl
- Parameters:
- sess-
- attrsNames-
- searchString-
- Returns:
- list of founded richMembers with specific attributes from Vo for searchString
 
- 
findCompleteRichMemberspublic List<RichMember> findCompleteRichMembers(PerunSession sess, Vo vo, List<String> attrsNames, List<String> allowedStatuses, String searchString) Description copied from interface:MembersManagerBlReturn list of richMembers for specific vo by the searchString with attributes specific for list of attrsNames and who have only status which is contain in list of statuses. If attrsNames is empty or null return all attributes for specific richMembers. If listOfStatuses is empty or null, return all possible statuses.- Specified by:
- findCompleteRichMembersin interface- MembersManagerBl
- Parameters:
- sess-
- vo-
- attrsNames-
- allowedStatuses-
- searchString-
- Returns:
- list of founded richMembers with specific attributes from Vo for searchString with allowed statuses
 
- 
findCompleteRichMemberspublic List<RichMember> findCompleteRichMembers(PerunSession sess, List<String> attrsNames, List<String> allowedStatuses, String searchString) Description copied from interface:MembersManagerBlReturn list of richMembers by the searchString with attributes specific for list of attrsNames and who have only status which is contain in list of statuses. If attrsNames is empty or null return all attributes for specific richMembers. If listOfStatuses is empty or null, return all possible statuses.- Specified by:
- findCompleteRichMembersin interface- MembersManagerBl
- Parameters:
- sess-
- attrsNames-
- allowedStatuses-
- searchString-
- Returns:
- list of founded richMembers with specific attributes by searchString with allowed statuses
 
- 
findCompleteRichMemberspublic List<RichMember> findCompleteRichMembers(PerunSession sess, Group group, List<String> attrsNames, String searchString, boolean lookingInParentGroup) throws ParentGroupNotExistsException Description copied from interface:MembersManagerBlReturn list of richMembers for specific group by the searchString with attributes specific for list of attrsNames. If attrsNames is empty or null return all attributes for specific richMembers.If lookingInParentGroup is true, find all these richMembers only for parentGroup of this group. If this group is top level group, so find richMembers from members group. - Specified by:
- findCompleteRichMembersin interface- MembersManagerBl
- Parameters:
- sess-
- group-
- attrsNames-
- searchString-
- lookingInParentGroup-
- Returns:
- list of founded richMembers with specific attributes from Group for searchString
- Throws:
- ParentGroupNotExistsException
 
- 
findCompleteRichMemberspublic List<RichMember> findCompleteRichMembers(PerunSession sess, Group group, List<String> attrsNames, List<String> allowedStatuses, List<String> allowedGroupStatuses, String searchString, boolean lookingInParentGroup) throws ParentGroupNotExistsException Description copied from interface:MembersManagerBlReturn list of richMembers for specific group by the searchString with attributes specific for list of attrsNames and who have only status which is contain in lists of statuses. If attrsNames is empty or null return all attributes for specific richMembers. If listOfStatuses or listOfGroupStatuses is empty or null, return all possible statuses.If lookingInParentGroup is true, find all these richMembers only for parentGroup of this group. If this group is top level group, so find richMembers from members group. - Specified by:
- findCompleteRichMembersin interface- MembersManagerBl
- Parameters:
- sess-
- group-
- attrsNames-
- allowedStatuses-
- allowedGroupStatuses-
- searchString-
- lookingInParentGroup-
- Returns:
- list of founded richMembers with specific attributes from Group for searchString
- Throws:
- ParentGroupNotExistsException
 
- 
findMemberspublic List<Member> findMembers(PerunSession sess, Vo vo, String searchString, boolean onlySponsored) Description copied from interface:MembersManagerBlReturn list of members VO by specific string. All searches are case insensitive. Looking for searchString in member mail, user preferredMail, logins, name, IDs (user and member) and user UUID. If parameter onlySponsored is true, it will return only sponsored members by searchString. If vo is null, looking for any members in whole Perun. If vo is not null, looking only in specific VO.invalid input: '<'- Specified by:
- findMembersin interface- MembersManagerBl
- Parameters:
- sess-
- vo- for which searching will be filtered, if null there is no filter for vo
- searchString- it will be looking for this search string in the specific parameters in DB
- onlySponsored- it will return only sponsored members in vo
- Returns:
- all members from specific VO by specific string
 
- 
findMembersByNameDescription copied from interface:MembersManagerBlReturn list of members by theirs name.- Specified by:
- findMembersByNamein interface- MembersManagerBl
- Parameters:
- sess-
- searchString-
- Returns:
- list of members
 
- 
findMembersByNameInVoDescription copied from interface:MembersManagerBlReturn list of members by theirs name under defined VO.- Specified by:
- findMembersByNameInVoin interface- MembersManagerBl
- Parameters:
- sess-
- vo-
- searchString-
- Returns:
- list of members
 
- 
findMembersInGroupDescription copied from interface:MembersManagerBlReturn list of members by the searchString under defined Group. Search is done in name, email and login.- Specified by:
- findMembersInGroupin interface- MembersManagerBl
- Parameters:
- sess-
- group-
- searchString-
- Returns:
- list of members
 
- 
findMembersInParentGroupDescription copied from interface:MembersManagerBlReturn list of members by the searchString udner parentGroup of defined Group. Search is done in name, email and login. If the group is top-level group, searching in "members" group of vo in which the group exists.- Specified by:
- findMembersInParentGroupin interface- MembersManagerBl
- Parameters:
- sess-
- group- this group is used to get parent group, we are searching members of the parent group
- searchString-
- Returns:
 
- 
findMembersInVoDescription copied from interface:MembersManagerBlReturn list of members by theirs name or login or email under defined VO.- Specified by:
- findMembersInVoin interface- MembersManagerBl
- Parameters:
- sess-
- vo-
- searchString-
- Returns:
- list of members
 
- 
findRichMemberspublic List<RichMember> findRichMembers(PerunSession sess, String searchString, boolean onlySponsored) Description copied from interface:MembersManagerBlReturn list of rich members by theirs name, id, uuid, login or email- Specified by:
- findRichMembersin interface- MembersManagerBl
- Parameters:
- sess-
- searchString-
- onlySponsored- return only sponsored members
- Returns:
- list of rich members
 
- 
findRichMembersInVopublic List<RichMember> findRichMembersInVo(PerunSession sess, Vo vo, String searchString, boolean onlySposnored) Description copied from interface:MembersManagerBlReturn list of rich members by theirs name, id, uuid, login or email under defined VO.- Specified by:
- findRichMembersInVoin interface- MembersManagerBl
- Parameters:
- sess-
- vo-
- searchString-
- onlySposnored- return only sponsored members
- Returns:
- list of rich members
 
- 
findRichMembersWithAttributespublic List<RichMember> findRichMembersWithAttributes(PerunSession sess, String searchString, List<String> attrsNames) Description copied from interface:MembersManagerBlReturn list of rich members with certain attributes by theirs name or login or email.- Specified by:
- findRichMembersWithAttributesin interface- MembersManagerBl
- Parameters:
- sess- session
- searchString- search string
- attrsNames- list of attribute names that should be found
- Returns:
- list of rich members with certain attributes
 
- 
findRichMembersWithAttributesDescription copied from interface:MembersManagerBlReturn list of rich members with attributes by theirs name or login or email- Specified by:
- findRichMembersWithAttributesin interface- MembersManagerBl
- Parameters:
- sess-
- searchString-
- Returns:
- list of rich members with attributes
 
- 
findRichMembersWithAttributesInGrouppublic List<RichMember> findRichMembersWithAttributesInGroup(PerunSession sess, Group group, String searchString, List<String> attrsNames) Description copied from interface:MembersManagerBlReturn list of rich members with certain attributes by the searchString under defined Group. Search is done in name, email and login.- Specified by:
- findRichMembersWithAttributesInGroupin interface- MembersManagerBl
- Parameters:
- sess- session
- group- group
- searchString- search string
- attrsNames- list of attributes that should be found
- Returns:
- list of rich members with certain attributes
 
- 
findRichMembersWithAttributesInGrouppublic List<RichMember> findRichMembersWithAttributesInGroup(PerunSession sess, Group group, String searchString) Description copied from interface:MembersManagerBlReturn list of rich members with attributes by the searchString under defined Group. Search is done in name, email and login.- Specified by:
- findRichMembersWithAttributesInGroupin interface- MembersManagerBl
- Parameters:
- sess-
- group-
- searchString-
- Returns:
 
- 
findRichMembersWithAttributesInParentGrouppublic List<RichMember> findRichMembersWithAttributesInParentGroup(PerunSession sess, Group group, String searchString) Description copied from interface:MembersManagerBlReturn list of rich members with attributes by the searchString under parent group of defined Group. Search is done in name, email and login.- Specified by:
- findRichMembersWithAttributesInParentGroupin interface- MembersManagerBl
- Parameters:
- sess-
- group- this group is used to get parent group, we are searching members of the parent group
- searchString-
- Returns:
 
- 
findRichMembersWithAttributesInVopublic List<RichMember> findRichMembersWithAttributesInVo(PerunSession sess, Vo vo, String searchString, List<String> attrsNames, boolean onlySponsored) Description copied from interface:MembersManagerBlReturn list of rich members with certain attributes by theirs name or login or email defined VO.- Specified by:
- findRichMembersWithAttributesInVoin interface- MembersManagerBl
- Parameters:
- sess- session
- vo- vo
- searchString- search string
- attrsNames- list of attribute names that should be found
- onlySponsored- return only sponsored members
- Returns:
- list of rich members with certain attributes
 
- 
findRichMembersWithAttributesInVopublic List<RichMember> findRichMembersWithAttributesInVo(PerunSession sess, Vo vo, String searchString) Description copied from interface:MembersManagerBlReturn list of rich members with attributes by theirs name or login or email under defined VO.- Specified by:
- findRichMembersWithAttributesInVoin interface- MembersManagerBl
- Parameters:
- sess-
- vo-
- searchString-
- Returns:
- list of rich members with attributes
 
- 
getAllMembersDescription copied from interface:MembersManagerBlGet all members from all vos.- Specified by:
- getAllMembersin interface- MembersManagerBl
- Parameters:
- sess- session
- Returns:
- list of all members from all Vos.
 
- 
getAllNamespacesRulesDescription copied from interface:MembersManagerBlReturn all loaded namespaces rules.- Specified by:
- getAllNamespacesRulesin interface- MembersManagerBl
- Returns:
- all namespaces rules
 
- 
getCompleteRichMemberspublic List<RichMember> getCompleteRichMembers(PerunSession sess, Vo vo, List<String> attrsNames) throws AttributeNotExistsException Description copied from interface:MembersManagerBlGet all RichMembers with attributes specific for list of attrsNames from the vo. If attrsNames is empty or null return all attributes for specific richMembers.- Specified by:
- getCompleteRichMembersin interface- MembersManagerBl
- Parameters:
- sess-
- vo-
- attrsNames-
- Returns:
- list of richMembers with specific attributes from Vo
- Throws:
- AttributeNotExistsException
 
- 
getCompleteRichMemberspublic List<RichMember> getCompleteRichMembers(PerunSession sess, Vo vo, List<String> attrsNames, List<String> allowedStatuses) throws AttributeNotExistsException Description copied from interface:MembersManagerBlGet all RichMembers with attributes specific for list of attrsNames from the vo and have only status which is contain in list of statuses. If attrsNames is empty or null return all attributes for specific richMembers. If listOfStatuses is empty or null, return all possible statuses.- Specified by:
- getCompleteRichMembersin interface- MembersManagerBl
- Parameters:
- sess-
- vo-
- attrsNames-
- allowedStatuses-
- Returns:
- list of richMembers with specific attributes from Vo
- Throws:
- AttributeNotExistsException
 
- 
getCompleteRichMemberspublic List<RichMember> getCompleteRichMembers(PerunSession sess, Group group, List<String> attrsNames, boolean lookingInParentGroup) throws AttributeNotExistsException, ParentGroupNotExistsException Description copied from interface:MembersManagerBlGet all RichMembers with attributes specific for list of attrsNames from the group. If attrsNames is empty or null return all attributes for specific richMembers.If lookingInParentGroup is true, get all these richMembers only for parentGroup of this group. If this group is top level group, so get richMembers from members group. - Specified by:
- getCompleteRichMembersin interface- MembersManagerBl
- Parameters:
- sess-
- group-
- attrsNames-
- lookingInParentGroup-
- Returns:
- list of richMembers with specific attributes from group
- Throws:
- AttributeNotExistsException
- ParentGroupNotExistsException
 
- 
getCompleteRichMemberspublic List<RichMember> getCompleteRichMembers(PerunSession sess, Group group, List<String> attrsNames, List<String> allowedStatuses, List<String> allowedGroupStatuses, boolean lookingInParentGroup) throws AttributeNotExistsException, ParentGroupNotExistsException Description copied from interface:MembersManagerBlGet all RichMembers with attributes specific for list of attrsNames from the group and have only status which is contain in lists of statuses. If attrsNames is empty or null return all attributes for specific richMembers. If listOfStatuses or listOfGroupStatuses is empty or null, return all possible statuses.If lookingInParentGroup is true, get all these richMembers only for parentGroup of this group. If this group is top level group, so get richMembers from members group. - Specified by:
- getCompleteRichMembersin interface- MembersManagerBl
- Parameters:
- sess-
- group-
- attrsNames-
- allowedStatuses-
- allowedGroupStatuses-
- lookingInParentGroup-
- Returns:
- list of richMembers with specific attributes from group
- Throws:
- AttributeNotExistsException
- ParentGroupNotExistsException
 
- 
getCompleteRichMemberspublic List<RichMember> getCompleteRichMembers(PerunSession sess, Group group, Resource resource, List<String> attrsNames, List<String> allowedStatuses) throws AttributeNotExistsException, GroupResourceMismatchException Description copied from interface:MembersManagerBlGet all RichMembers with attributes specific for list of attrNames. Attributes are defined by member (user) and resource (facility) objects. It returns also user-facility (in userAttributes of RichMember) and member-resource (in memberAttributes of RichMember) attributes. Members are defined by group and are filtered by list of allowed statuses.- Specified by:
- getCompleteRichMembersin interface- MembersManagerBl
- Parameters:
- sess-
- group-
- resource-
- attrsNames-
- allowedStatuses-
- Returns:
- list of richMembers with specific attributes
- Throws:
- AttributeNotExistsException
- GroupResourceMismatchException
 
- 
getMemberByExtSourceNameAndExtLoginpublic Member getMemberByExtSourceNameAndExtLogin(PerunSession sess, Vo vo, String extSourceName, String extLogin) throws ExtSourceNotExistsException, UserExtSourceNotExistsException, MemberNotExistsException, UserNotExistsException Description copied from interface:MembersManagerBlGet member by extSourceName, extSourceLogin and Vo- Specified by:
- getMemberByExtSourceNameAndExtLoginin interface- MembersManagerBl
- Parameters:
- sess-
- vo- Vo where we are looking for member
- extSourceName- name of extSource
- extLogin- login of user in extSource
- Returns:
- member
- Throws:
- ExtSourceNotExistsException
- UserExtSourceNotExistsException
- MemberNotExistsException
- UserNotExistsException
 
- 
getMemberByIdDescription copied from interface:MembersManagerBlReturns member by his id.- Specified by:
- getMemberByIdin interface- MembersManagerBl
- Parameters:
- sess-
- id-
- Returns:
- member
- Throws:
- MemberNotExistsException
 
- 
getMemberByUserDescription copied from interface:MembersManagerBlReturns member by his user and vo.- Specified by:
- getMemberByUserin interface- MembersManagerBl
- Parameters:
- sess-
- vo-
- user-
- Returns:
- member
- Throws:
- MemberNotExistsException
 
- 
getMemberByUserExtSourcepublic Member getMemberByUserExtSource(PerunSession sess, Vo vo, UserExtSource uea) throws MemberNotExistsException Description copied from interface:MembersManagerBlFind member of this Vo by his login in external source- Specified by:
- getMemberByUserExtSourcein interface- MembersManagerBl
- Parameters:
- sess-
- vo-
- uea-
- Returns:
- selected user or throws in case the requested member doesn't exists in this Vo
- Throws:
- MemberNotExistsException
 
- 
getMemberByUserExtSourcespublic Member getMemberByUserExtSources(PerunSession sess, Vo vo, List<UserExtSource> ueas) throws MemberNotExistsException Description copied from interface:MembersManagerBlGet member by its external sources. If the given sources do not belong to a single member and exception is thrown.- Specified by:
- getMemberByUserExtSourcesin interface- MembersManagerBl
- Parameters:
- sess- session
- vo- vo
- ueas- ues
- Returns:
- member
- Throws:
- MemberNotExistsException- member does not exist
 
- 
getMemberByUserIdpublic Member getMemberByUserId(PerunSession sess, Vo vo, int userId) throws MemberNotExistsException Description copied from interface:MembersManagerBlReturns member by his userId.- Specified by:
- getMemberByUserIdin interface- MembersManagerBl
- Parameters:
- sess-
- vo-
- userId-
- Returns:
- member
- Throws:
- MemberNotExistsException
 
- 
getMemberVoDescription copied from interface:MembersManagerBlGet the member VO.- Specified by:
- getMemberVoin interface- MembersManagerBl
- Parameters:
- sess-
- member-
- Returns:
- member's VO
 
- 
getMembersDescription copied from interface:MembersManagerBlGet all VO members.- Specified by:
- getMembersin interface- MembersManagerBl
- Parameters:
- sess-
- vo-
- Returns:
- all members of the VO
 
- 
getMembersDescription copied from interface:MembersManagerBlGet all VO members who have the status.- Specified by:
- getMembersin interface- MembersManagerBl
- Parameters:
- sess-
- vo-
- status- get only members who have this status. If status is null return all members.
- Returns:
- all members of the VO
 
- 
getMembersByIdsDescription copied from interface:MembersManagerBlReturns members by their ids.- Specified by:
- getMembersByIdsin interface- MembersManagerBl
- Parameters:
- sess-
- ids-
- Returns:
- list of members with specified ids
 
- 
getMembersByUserDescription copied from interface:MembersManagerBlReturn all VO Members of the User.- Specified by:
- getMembersByUserin interface- MembersManagerBl
- Parameters:
- sess-
- user-
- Returns:
- List of Members
 
- 
getMembersByUserWithStatusDescription copied from interface:MembersManagerBlReturn all VO Members of the User, which have specified Status in their VO.- Specified by:
- getMembersByUserWithStatusin interface- MembersManagerBl
- Parameters:
- sess-
- user-
- status-
- Returns:
- List of Members
 
- 
getMembersByUsersDescription copied from interface:MembersManagerBlConvert list of users into the list of members.- Specified by:
- getMembersByUsersin interface- MembersManagerBl
- Parameters:
- sess-
- users-
- vo-
- Returns:
- list of members
 
- 
getMembersByUsersIdsDescription copied from interface:MembersManagerBlConvert list of users' ids into the list of members.- Specified by:
- getMembersByUsersIdsin interface- MembersManagerBl
- Parameters:
- sess-
- usersIds-
- vo-
- Returns:
- list of members
 
- 
getMembersCountDescription copied from interface:MembersManagerBlGet the VO members count.- Specified by:
- getMembersCountin interface- MembersManagerBl
- Parameters:
- sess-
- vo-
- Returns:
- count of VO members
 
- 
getMembersCountDescription copied from interface:MembersManagerBlReturns number of Vo members with defined status.- Specified by:
- getMembersCountin interface- MembersManagerBl
- Parameters:
- sess-
- vo-
- status-
- Returns:
- number of members
 
- 
getMembersManagerImplGets the membersManagerImpl.- Returns:
- The membersManagerImpl.
 
- 
getMembersPagepublic Paginated<RichMember> getMembersPage(PerunSession sess, Vo vo, MembersPageQuery query, List<String> attrNames) throws PolicyNotExistsException Description copied from interface:MembersManagerBlGet page of members from the given vo, with the given attributes.- Specified by:
- getMembersPagein interface- MembersManagerBl
- Parameters:
- sess- session
- vo- vo
- query- query with page information
- attrNames- attribute names
- Returns:
- page of requested rich members
- Throws:
- PolicyNotExistsException
 
- 
getMembersPagepublic Paginated<RichMember> getMembersPage(PerunSession sess, Vo vo, MembersPageQuery query, List<String> attrNames, String policy) throws PolicyNotExistsException Description copied from interface:MembersManagerBlGet page of members from the given vo, with the given attributes, based on policy.- Specified by:
- getMembersPagein interface- MembersManagerBl
- Parameters:
- sess- session
- vo- vo
- query- query with page information
- attrNames- attribute names
- policy- policy to use
- Returns:
- page of requested rich members
- Throws:
- PolicyNotExistsException
 
- 
getNamespaceRulesDescription copied from interface:MembersManagerBlGet NamespaceRules for the namespace from the LoginNamespacesRulesConfigContainer- Specified by:
- getNamespaceRulesin interface- MembersManagerBl
- Parameters:
- namespace- for which will be the rules fetched
- Returns:
- NamespaceRules for the namespace
- Throws:
- NamespaceRulesNotExistsException- if there are no rules for the namespace
 
- 
getNewExtendMembershipDescription copied from interface:MembersManagerBlReturns the date to which will be extended member's expiration time.- Specified by:
- getNewExtendMembershipin interface- MembersManagerBl
- Parameters:
- sess-
- member-
- Returns:
- date
 
- 
getNewExtendMembershippublic Date getNewExtendMembership(PerunSession sess, Vo vo, String loa) throws ExtendMembershipException Description copied from interface:MembersManagerBlReturns the date to which will be extended potential member of the VO.- Specified by:
- getNewExtendMembershipin interface- MembersManagerBl
- Parameters:
- sess-
- vo-
- loa-
- Returns:
- date
- Throws:
- ExtendMembershipException
 
- 
getPerunBlGets the perunBl.- Returns:
- The perunBl.
 
- 
getRichMemberDescription copied from interface:MembersManagerBlGet Member to RichMember with attributes.- Specified by:
- getRichMemberin interface- MembersManagerBl
- Parameters:
- sess-
- member-
- Returns:
 
- 
getRichMemberWithAttributesDescription copied from interface:MembersManagerBlGet Member to RichMember with attributes.- Specified by:
- getRichMemberWithAttributesin interface- MembersManagerBl
- Parameters:
- sess-
- member-
- Returns:
 
- 
getRichMembersDescription copied from interface:MembersManagerBlGet rich members for displaying on pages. Rich member object contains user, member, userExtSources.- Specified by:
- getRichMembersin interface- MembersManagerBl
- Parameters:
- sess-
- vo-
- Returns:
- list of rich members on specified page, empty list if there are no user in this VO or in this page
 
- 
getRichMembersDescription copied from interface:MembersManagerBlGet rich members for displaying on pages. Rich member object contains user, member, userExtSources.- Specified by:
- getRichMembersin interface- MembersManagerBl
- Parameters:
- sess-
- group-
- Returns:
- list of rich members on specified page, empty list if there are no user in this Group or in this page
 
- 
getRichMembersDescription copied from interface:MembersManagerBlGet rich members who have the status, for displaying on pages. Rich member object contains user, member, userExtSources.- Specified by:
- getRichMembersin interface- MembersManagerBl
- Parameters:
- sess-
- vo-
- status- get only members who have this status. If status is null return all members.
- Returns:
- list of rich members on specified page, empty list if there are no user in this VO or in this page
 
- 
getRichMembersNoUserAttributesDescription copied from interface:MembersManagerBlGet all rich members of VO. Rich member object contains user, member, userExtSources and member attributes. User attributes aren't included- Specified by:
- getRichMembersNoUserAttributesin interface- MembersManagerBl
- Parameters:
- sess-
- vo-
- Returns:
- list of rich members with all member attributes
 
- 
getRichMembersWithAttributespublic List<RichMember> getRichMembersWithAttributes(PerunSession sess, Vo vo, List<AttributeDefinition> attrsDef) Description copied from interface:MembersManagerBlGet RichMembers with Attributes but only with selected attributes from list attrsDef.- Specified by:
- getRichMembersWithAttributesin interface- MembersManagerBl
- Parameters:
- sess-
- vo-
- attrsDef-
- Returns:
 
- 
getRichMembersWithAttributespublic List<RichMember> getRichMembersWithAttributes(PerunSession sess, List<String> allowedStatuses, Group group) Description copied from interface:MembersManagerBlGet rich members for displaying on pages. Rich member object contains user, member, userExtSources, userAttributes, memberAttributes.- Specified by:
- getRichMembersWithAttributesin interface- MembersManagerBl
- Parameters:
- sess-
- allowedStatuses-
- group-
- Returns:
- list of rich members on specified page, empty list if there are no user in this group or in this page
 
- 
getRichMembersWithAttributespublic List<RichMember> getRichMembersWithAttributes(PerunSession sess, Group group, List<AttributeDefinition> attrsDef) Description copied from interface:MembersManagerBlGet RichMembers with Attributes but only with selected attributes from list attrsDef.- Specified by:
- getRichMembersWithAttributesin interface- MembersManagerBl
- Parameters:
- sess-
- group-
- attrsDef-
- Returns:
 
- 
getRichMembersWithAttributespublic List<RichMember> getRichMembersWithAttributes(PerunSession sess, Group group, List<Member> members, List<AttributeDefinition> attrsDef) Description copied from interface:MembersManagerBlGet RichMembers with Attributes but only with selected attributes from list attrsDef and for specified members.- Specified by:
- getRichMembersWithAttributesin interface- MembersManagerBl
- Parameters:
- sess-
- group-
- attrsDef-
- Returns:
 
- 
getRichMembersWithAttributesDescription copied from interface:MembersManagerBlGet rich members for displaying on pages. Rich member object contains user, member, userExtSources, userAttributes, memberAttributes.- Specified by:
- getRichMembersWithAttributesin interface- MembersManagerBl
- Parameters:
- sess-
- vo-
- Returns:
- list of rich members on specified page, empty list if there are no user in this VO or in this page
 
- 
getRichMembersWithAttributesDescription copied from interface:MembersManagerBlGet rich members who have the status, for displaying on pages. Rich member object contains user, member, userExtSources, userAttributes, memberAttributes.- Specified by:
- getRichMembersWithAttributesin interface- MembersManagerBl
- Parameters:
- sess-
- vo-
- status- get only members who have this status. If status is null return all members.
- Returns:
- list of rich members on specified page, empty list if there are no user in this VO or in this page
 
- 
getRichMembersWithAttributesByNamespublic List<RichMember> getRichMembersWithAttributesByNames(PerunSession sess, Vo vo, List<String> attrsNames) throws AttributeNotExistsException Description copied from interface:MembersManagerBlGet RichMembers with Attributes but only with selected attributes from list attrsNames for vo.- Specified by:
- getRichMembersWithAttributesByNamesin interface- MembersManagerBl
- Parameters:
- sess-
- vo-
- attrsNames- list of attrNames for selected attributes
- Returns:
- list of RichMembers
- Throws:
- AttributeNotExistsException
 
- 
getRichMembersWithAttributesByNamespublic List<RichMember> getRichMembersWithAttributesByNames(PerunSession sess, Group group, List<String> attrsNames) throws AttributeNotExistsException Description copied from interface:MembersManagerBlGet RichMembers with Attributes but only with selected attributes from list attrsDef for group.- Specified by:
- getRichMembersWithAttributesByNamesin interface- MembersManagerBl
- Parameters:
- sess-
- group-
- attrsNames- list of attrNames for selected attributes
- Returns:
- list of RichMembers
- Throws:
- AttributeNotExistsException
 
- 
getRichMembersWithAttributesByNamespublic List<RichMember> getRichMembersWithAttributesByNames(PerunSession sess, Group group, Resource resource, List<String> attrsNames) throws AttributeNotExistsException, GroupResourceMismatchException Description copied from interface:MembersManagerBlGet RichMembers with Attributes but only with selected attributes from list attrsDef for group. Get also user-facility (as user attribute in rich member) and member-resource (as member attributes in rich member) attributes by resource.- Specified by:
- getRichMembersWithAttributesByNamesin interface- MembersManagerBl
- Parameters:
- sess-
- group-
- resource-
- attrsNames- list of attrNames for selected attributes
- Returns:
- list of RichMembers
- Throws:
- AttributeNotExistsException
- GroupResourceMismatchException
 
- 
getServiceUserRichMembersDescription copied from interface:MembersManagerBlGet RichMembers from a VO who are service users.- Specified by:
- getServiceUserRichMembersin interface- MembersManagerBl
- Parameters:
- sess-
- vo-
- Returns:
- List of RichMembers from the VO, who are service users
 
- 
getSponsoredMembersDescription copied from interface:MembersManagerBlGets list of members that are sponsored by the user in the vo.- Specified by:
- getSponsoredMembersin interface- MembersManagerBl
- Parameters:
- sess- perun session
- vo- virtual organization
- user- user sponsoring members
- Returns:
- list of members sponsored by the user in VO
 
- 
getSponsoredMembersDescription copied from interface:MembersManagerBlGets list of members that are sponsored by the user in all vos.- Specified by:
- getSponsoredMembersin interface- MembersManagerBl
- Parameters:
- sess- perun session
- user- user sponsoring members
- Returns:
- list of members sponsored by the user in VO
 
- 
getSponsoredMembersDescription copied from interface:MembersManagerBlGets list of sponsored members of a VO.- Specified by:
- getSponsoredMembersin interface- MembersManagerBl
- Parameters:
- sess- session
- vo- virtual organization from which are the sponsored members chosen
- Returns:
- list of members from given vo who are sponsored
 
- 
getSponsoredRichMembersDescription copied from interface:MembersManagerBlGet list of rich members that are sponsored in the VO.- Specified by:
- getSponsoredRichMembersin interface- MembersManagerBl
- Parameters:
- sess-
- vo-
- Returns:
- list of rich members which are sponsored in the given VO
 
- 
getSponsorshippublic Sponsorship getSponsorship(PerunSession sess, Member sponsoredMember, User sponsor) throws SponsorshipDoesNotExistException Description copied from interface:MembersManagerBlFor the given member and user returns their sponsorship relation object. If there is no such relation, the SponsorshipDoesNotExistException is thrown.- Specified by:
- getSponsorshipin interface- MembersManagerBl
- Parameters:
- sess- session
- sponsoredMember- sponsored member
- sponsor- sponsor
- Returns:
- Sponsorship object
- Throws:
- SponsorshipDoesNotExistException- if there is no sponsorship relation between the given member and user
 
- 
getSponsorshipsExpiringInRangepublic List<Sponsorship> getSponsorshipsExpiringInRange(PerunSession sess, LocalDate from, LocalDate to) Description copied from interface:MembersManagerBlReturns sponsorship, which have validityTo in range [from, to). (from is inclusive, to is exclusive).- Specified by:
- getSponsorshipsExpiringInRangein interface- MembersManagerBl
- Parameters:
- sess- session
- from- lower validityTo bound (inclusive), use LocalDate.MIN if you don't want to specify the lower bound
- to- upper validityTo bound (exclusive), use LocalDate.MAX, if you don't want to specify the upper bound
- Returns:
- list of sponsorships which have validityTo set in the given range
 
- 
getUnifiedMemberGroupStatuspublic MemberGroupStatus getUnifiedMemberGroupStatus(PerunSession sess, Member member, Resource resource) Description copied from interface:MembersManagerBlReturns unified result of MemberGroupStatus for specified member and resource.If member is VALID in at least one group assigned to the resource, result is VALID. If member is not VALID in any of groups assigned to the resource, result is EXPIRED. If member is not assigned to the resource at all, result is NULL. MemberGroupStatus is never related to the members status in a VO as a whole! - Specified by:
- getUnifiedMemberGroupStatusin interface- MembersManagerBl
- Parameters:
- sess- PerunSession
- member- Member to get unified MemberGroupStatus
- resource- Resource to get unified MemberGroupStatus
- Returns:
- MemberGroupStatus for member unified through all his groups assigned to the resource.
 
- 
getUnifiedMemberGroupStatuspublic MemberGroupStatus getUnifiedMemberGroupStatus(PerunSession sess, User user, Facility facility) Description copied from interface:MembersManagerBlReturns unified result of MemberGroupStatus for specified user and facility.If user is VALID in at least one group assigned to at least one resource on facility, result is VALID. If user is not VALID in any of groups assigned to any of resources, result is EXPIRED. If user is not assigned to the resource at all, result is NULL. MemberGroupStatus is never related to the members status in any VO! - Specified by:
- getUnifiedMemberGroupStatusin interface- MembersManagerBl
- Parameters:
- sess- PerunSession
- user- User to get unified MemberGroupStatus
- facility- Facility to get unified MemberGroupStatus
- Returns:
- MemberGroupStatus for user unified throught all his groups assigned to any of resources of facility.
 
- 
haveStatusDescription copied from interface:MembersManagerBlReturn true if member have specified status.- Specified by:
- haveStatusin interface- MembersManagerBl
- Parameters:
- sess-
- member-
- status-
- Returns:
- true if member have the specified status false otherwise
 
- 
insertToMemberGrouppublic void insertToMemberGroup(PerunSession sess, Member member, Vo vo) throws AlreadyMemberException - Throws:
- AlreadyMemberException
 
- 
invalidateMemberDescription copied from interface:MembersManagerBlSet member status to invalid.As side effect it will change status of the object member. - Specified by:
- invalidateMemberin interface- MembersManagerBl
- Parameters:
- sess-
- member-
- Returns:
- member with new status set
 
- 
isMemberAllowedDescription copied from interface:MembersManagerBlReturn false if member has status INVALID or DISABLED. True in other cases.- Specified by:
- isMemberAllowedin interface- MembersManagerBl
- Parameters:
- sess-
- member- the member
- Returns:
- false if member has INVALID or DISABLED status, true in other cases
 
- 
manageMembershipExpirationprotected Pair<Boolean,Date> manageMembershipExpiration(PerunSession sess, Member member, boolean setAttributeValue, boolean throwExceptions) throws ExtendMembershipException More info on https://wiki.metacentrum.cz/wiki/VO_managers%27s_manualIf setAttributeValue is true, then store the membership expiration date into the attribute, otherwise return object pair containing true/false if the member can be extended and date specifying exact date of the new expiration - Parameters:
- sess- sess
- member- member to check / set membership expiration
- setAttributeValue- TRUE = set new membership expiration date / FALSE = do NOT set new expiration date (just calculate it)
- throwExceptions- TRUE = throw exception / FALSE = return false when member can't extend membership
- Returns:
- Pair with result in left side (can / can't extend membership) and Date in right side telling new membership expiration date
- Throws:
- InternalErrorException
- ExtendMembershipException- When member can't extend membership and throwException is set to true.
 
- 
moveMembershippublic void moveMembership(PerunSession sess, Vo vo, User sourceUser, User targetUser) throws MemberNotExistsException, AlreadyMemberException, ExtendMembershipException Description copied from interface:MembersManagerBlMoves membership in VO from source user to target user - moves the source user's memberships in non-synchronized groups, member related attributes, bans and sponsorships in the VO. Removes the source user's member object. If VO is member of any hierarchical parent VO, user's membership is moved in parent VOs also. If VO is parent of any hierarchical member VO, user's membership is not moved in member VOs.- Specified by:
- moveMembershipin interface- MembersManagerBl
- Parameters:
- sess- session
- vo- the VO in which the membership should be moved
- sourceUser- the user to move membership from
- targetUser- the user to move membership to
- Throws:
- MemberNotExistsException- when sourceUser is not member of the VO
- AlreadyMemberException- when targetUser is already member of the VO
- ExtendMembershipException- when the targetUser doesn't have required LOA for the VO
 
- 
removeSponsorDescription copied from interface:MembersManagerBlRemoves a sponsor.- Specified by:
- removeSponsorin interface- MembersManagerBl
- Parameters:
- sess- perun session
- sponsoredMember- member which is sponsored
- sponsorToRemove- sponsoring user
 
- 
retainMembersWithStatusDescription copied from interface:MembersManagerBlRetain only members with specified status.- Specified by:
- retainMembersWithStatusin interface- MembersManagerBl
- Parameters:
- sess-
- members-
- status-
- Returns:
 
- 
sendAccountActivationLinkEmailpublic void sendAccountActivationLinkEmail(PerunSession sess, Member member, String namespace, String url, String mailAddress, String language) Description copied from interface:MembersManagerBlSend mail to user's preferred email address with link for non-authz account activation. Correct authz information is stored in link's URL.- Specified by:
- sendAccountActivationLinkEmailin interface- MembersManagerBl
- Parameters:
- sess- PerunSession
- member- Member to get user to send link mail to
- namespace- Namespace to activate account in (member must have login in)
- url- base URL of Perun instance
- mailAddress- mail address where email will be sent
- language- language of the message
 
- 
sendPasswordResetLinkEmailpublic void sendPasswordResetLinkEmail(PerunSession sess, Member member, String namespace, String url, String mailAddress, String language) Description copied from interface:MembersManagerBlSend mail to user's preferred email address with link for non-authz password reset. Correct authz information is stored in link's URL.- Specified by:
- sendPasswordResetLinkEmailin interface- MembersManagerBl
- Parameters:
- sess- PerunSession
- member- Member to get user to send link mail to
- namespace- Namespace to reset password in (member must have login in)
- url- base URL of Perun instance
- mailAddress- mail address where email will be sent
- language- language of the message
 
- 
sendUsernameReminderEmailpublic void sendUsernameReminderEmail(PerunSession sess, Member member, String namespace, String mailAddress, String language) Description copied from interface:MembersManagerBlSend mail to user's preferred email address with username for the given namespace.- Specified by:
- sendUsernameReminderEmailin interface- MembersManagerBl
- Parameters:
- sess- PerunSession
- member- Member to get user to send mail to
- namespace- Namespace for username/login (member must have login in this namespace)
- mailAddress- mail address where email will be sent
- language- language of the message
 
- 
setOrganizationsAttributespublic void setOrganizationsAttributes(PerunSession sess, Vo vo, Member member) throws AttributeNotExistsException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException, WrongAttributeValueException Description copied from interface:MembersManagerBlSet memberOrganizations and memberOrganizationsHistory attributes for specific member.- Specified by:
- setOrganizationsAttributesin interface- MembersManagerBl
- Parameters:
- sess- session
- vo- VO
- member- member
- Throws:
- AttributeNotExistsException- if the attribute doesn't exists in the underlying data source
- WrongAttributeAssignmentException- if attribute is not vo attribute
- WrongReferenceAttributeValueException- if attribute which is reference for used attribute has illegal value
- WrongAttributeValueException- if the attribute value is illegal
 
- 
setPerunBl
- 
setSponsoredMemberpublic Member setSponsoredMember(PerunSession session, SponsoredUserData data, Vo vo, User userToBeSponsored, User sponsor, LocalDate validityTo, Validation validation) throws AlreadyMemberException, ExtendMembershipException, UserNotInRoleException, WrongAttributeValueException, WrongReferenceAttributeValueException, LoginNotExistsException, PasswordCreationFailedException, InvalidLoginException, ExtSourceNotExistsException, AlreadySponsorException, InvalidSponsoredUserDataException, NamespaceRulesNotExistsException, PasswordStrengthException Description copied from interface:MembersManagerBlCreates a sponsored membership for the given user.- Specified by:
- setSponsoredMemberin interface- MembersManagerBl
- Parameters:
- session- perun session
- data- data about the user, which are used to create an account in an external system, if needed
- vo- virtual organization
- userToBeSponsored- user, that will be sponsored by sponsor
- sponsor- sponsoring user
- validation- Type of members validation, when using Validation.ASYNC do not call this method in a cycle!
- Returns:
- sponsored member
- Throws:
- AlreadyMemberException
- ExtendMembershipException
- UserNotInRoleException
- WrongAttributeValueException
- WrongReferenceAttributeValueException
- LoginNotExistsException
- PasswordCreationFailedException
- InvalidLoginException
- ExtSourceNotExistsException
- AlreadySponsorException
- PasswordStrengthException
- InvalidSponsoredUserDataException
- NamespaceRulesNotExistsException
 
- 
setSponsoredMemberpublic Member setSponsoredMember(PerunSession session, Vo vo, User userToBeSponsored, String namespace, String password, User sponsor, Validation validation) throws AlreadyMemberException, ExtendMembershipException, UserNotInRoleException, WrongAttributeValueException, WrongReferenceAttributeValueException, LoginNotExistsException, PasswordCreationFailedException, InvalidLoginException, ExtSourceNotExistsException, AlreadySponsorException, InvalidSponsoredUserDataException, NamespaceRulesNotExistsException, PasswordStrengthException Description copied from interface:MembersManagerBlCreates a sponsored membership for the given user.- Specified by:
- setSponsoredMemberin interface- MembersManagerBl
- Parameters:
- session- perun session
- vo- virtual organization
- userToBeSponsored- user, that will be sponsored by sponsor
- namespace- used for selecting external system in which guest user account will be created
- password- password
- sponsor- sponsoring user
- validation- Type of members validation, when using Validation.ASYNC do not call this method in a cycle!
- Returns:
- sponsored member
- Throws:
- AlreadyMemberException
- ExtendMembershipException
- UserNotInRoleException
- WrongAttributeValueException
- WrongReferenceAttributeValueException
- LoginNotExistsException
- PasswordCreationFailedException
- InvalidLoginException
- ExtSourceNotExistsException
- AlreadySponsorException
- PasswordStrengthException
- InvalidSponsoredUserDataException
- NamespaceRulesNotExistsException
 
- 
setSponsorshipForMemberpublic Member setSponsorshipForMember(PerunSession session, Member sponsoredMember, User sponsor, LocalDate validityTo) throws AlreadySponsoredMemberException, UserNotInRoleException, AlreadySponsorException Description copied from interface:MembersManagerBlTransform non-sponsored member to sponsored one with defined sponsor- Specified by:
- setSponsorshipForMemberin interface- MembersManagerBl
- Parameters:
- session- perun session
- sponsoredMember- member who will be set as sponsored one
- sponsor- new sponsor of this member
- validityTo- the last day when the sponsorship is active
- Returns:
- sponsored member
- Throws:
- AlreadySponsoredMemberException- if member was already flagged as sponsored
- UserNotInRoleException- if sponsor has not right role in the member's VO
- AlreadySponsorException- sponsoredMember is already sponsored by User and his sponsorship is still active
 
- 
setSponsorshipForMemberpublic Member setSponsorshipForMember(PerunSession session, Member sponsoredMember, User sponsor) throws AlreadySponsoredMemberException, UserNotInRoleException, AlreadySponsorException Description copied from interface:MembersManagerBlTransform non-sponsored member to sponsored one with defined sponsor- Specified by:
- setSponsorshipForMemberin interface- MembersManagerBl
- Parameters:
- session- perun session
- sponsoredMember- member who will be set as sponsored one
- sponsor- new sponsor of this member
- Returns:
- sponsored member
- Throws:
- AlreadySponsoredMemberException- if member was already flagged as sponsored
- UserNotInRoleException- if sponsor has not right role in the member's VO
- AlreadySponsorException- sponsoredMember is already sponsored by User and his sponsorship is still active
 
- 
setStatuspublic Member setStatus(PerunSession sess, Member member, Status status) throws WrongAttributeValueException, WrongReferenceAttributeValueException, MemberNotValidYetException Description copied from interface:MembersManagerBlSet status of the member to specified status.- Specified by:
- setStatusin interface- MembersManagerBl
- Parameters:
- sess-
- member-
- status- new status
- Returns:
- member with status set
- Throws:
- WrongAttributeValueException
- WrongReferenceAttributeValueException
- MemberNotValidYetException
 
- 
sponsorMemberpublic Member sponsorMember(PerunSession session, Member sponsoredMember, User sponsor) throws MemberNotSponsoredException, AlreadySponsorException, UserNotInRoleException Description copied from interface:MembersManagerBlLinks sponsored member and sponsoring user.- Specified by:
- sponsorMemberin interface- MembersManagerBl
- Parameters:
- session- perun session
- sponsoredMember- member which is sponsored
- sponsor- sponsoring user
- Returns:
- member
- Throws:
- MemberNotSponsoredException
- AlreadySponsorException
- UserNotInRoleException
 
- 
sponsorMemberpublic Member sponsorMember(PerunSession session, Member sponsoredMember, User sponsor, LocalDate validityTo) throws MemberNotSponsoredException, AlreadySponsorException, UserNotInRoleException Description copied from interface:MembersManagerBlLinks sponsored member and sponsoring user.- Specified by:
- sponsorMemberin interface- MembersManagerBl
- Parameters:
- session- perun session
- sponsoredMember- member which is sponsored
- sponsor- sponsoring user
- validityTo- last day when the sponsorship is active (null means the sponsorship will last forever)
- Returns:
- member
- Throws:
- MemberNotSponsoredException
- AlreadySponsorException
- UserNotInRoleException
 
- 
suspendMemberTopublic void suspendMemberTo(PerunSession sess, Member member, Date suspendedTo) throws BanAlreadyExistsException Description copied from interface:MembersManagerBlSet date to which will be member suspended in his VO.For almost unlimited time please use time in the far future. - Specified by:
- suspendMemberToin interface- MembersManagerBl
- Parameters:
- sess-
- member- member who will be suspended
- suspendedTo- date to which will be member suspended (after this date, he will not be affected by suspension any more)
- Throws:
- BanAlreadyExistsException
 
- 
unsetSponsorshipForMemberpublic Member unsetSponsorshipForMember(PerunSession session, Member sponsoredMember) throws MemberNotSponsoredException Description copied from interface:MembersManagerBlTransform sponsored member to non-sponsored one. Delete all his sponsors.- Specified by:
- unsetSponsorshipForMemberin interface- MembersManagerBl
- Parameters:
- session- perun session
- sponsoredMember- member which who be unset from sponsoring
- Returns:
- non-sponsored member
- Throws:
- MemberNotSponsoredException- If member was not set as sponsored before calling this method.
 
- 
unsuspendMemberDescription copied from interface:MembersManagerBlRemove suspend state from Member - remove date to which member should be considered as suspended in the VO.WARNING: this method will always succeed if member exists, because it will set date for suspension to null - Specified by:
- unsuspendMemberin interface- MembersManagerBl
- Parameters:
- sess-
- member- member for which the suspend state will be removed
 
- 
updateMemberpublic Member updateMember(PerunSession sess, Member member) throws WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:MembersManagerBlUpdate member in underlaying data source. Member is find by id. Other java attributes are updated.- Specified by:
- updateMemberin interface- MembersManagerBl
- Parameters:
- sess-
- member- member who have set new java attributes.
- Returns:
- updated member
- Throws:
- WrongAttributeValueException
- WrongReferenceAttributeValueException
 
- 
updateOrganizationsAttributespublic void updateOrganizationsAttributes(PerunSession sess, Vo vo, Member member) throws WrongAttributeAssignmentException, AttributeNotExistsException, WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:MembersManagerBlUpdate value of memberOrganizations or memberOrganizationsHistory attribute for specific member.- Specified by:
- updateOrganizationsAttributesin interface- MembersManagerBl
- Parameters:
- sess- session
- vo- VO
- member- member
- Throws:
- WrongAttributeAssignmentException- if attribute is not vo attribute
- AttributeNotExistsException- if the attribute doesn't exists in the underlying data source
- WrongAttributeValueException- if the attribute value is illegal
- WrongReferenceAttributeValueException- if attribute which is reference for used attribute has illegal value
 
- 
updateSponsorshipValiditypublic void updateSponsorshipValidity(PerunSession sess, Member sponsoredMember, User sponsor, LocalDate newValidity) throws SponsorshipDoesNotExistException Description copied from interface:MembersManagerBlUpdate the sponsorship of given member for given sponsor.- Specified by:
- updateSponsorshipValidityin interface- MembersManagerBl
- Parameters:
- sess- session
- sponsoredMember- sponsored member
- sponsor- sponsor
- newValidity- new validity, can be set to null never expire
- Throws:
- SponsorshipDoesNotExistException- if the given user is not sponsor of the given member
 
- 
validateMemberpublic Member validateMember(PerunSession sess, Member member) throws WrongAttributeValueException, WrongReferenceAttributeValueException Description copied from interface:MembersManagerBlValidate all atributes for member and set member's status to VALID. This method runs synchronously.Method runs in nested transaction. As side effect, on success will change status of the object member. - Specified by:
- validateMemberin interface- MembersManagerBl
- Parameters:
- sess-
- member-
- Returns:
- membet with new status set
- Throws:
- WrongAttributeValueException
- WrongReferenceAttributeValueException
 
- 
validateMemberAsyncDescription copied from interface:MembersManagerBlValidate all attributes for member and then set member's status to VALID. This method runs asynchronously. If validation ends with error, member keeps his status.- Specified by:
- validateMemberAsyncin interface- MembersManagerBl
- Parameters:
- sess-
- member-
 
- 
someAvailableSponsorExistsForMemberDescription copied from interface:MembersManagerBlChecks if some vo sponsor who does not already sponsor given member exists.- Specified by:
- someAvailableSponsorExistsForMemberin interface- MembersManagerBl
- Parameters:
- sess- perun session
- member- member
- Returns:
- true if available sponsor exists, false otherwise
 
- 
getAvailableSponsorsForMemberDescription copied from interface:MembersManagerBlReturns all available sponsors for given member.- Specified by:
- getAvailableSponsorsForMemberin interface- MembersManagerBl
- Parameters:
- sess- perun session
- member- member
- Returns:
- list of available sponsors
 
 
-