Package cz.metacentrum.perun.core.blImpl
Class VosManagerBlImpl
java.lang.Object
cz.metacentrum.perun.core.blImpl.VosManagerBlImpl
- All Implemented Interfaces:
- VosManagerBl
VosManager business logic
- Author:
- Michal Prochazka michalp@ics.muni.cz, Slavek Licehammer glory@ics.muni.cz
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddMemberVo(PerunSession sess, Vo vo, Vo memberVo) Adds new relationship between vo and a member vo.voidcheckVoExists(PerunSession sess, Vo vo) voidconvertSponsoredUsers(PerunSession sess, Vo vo) For the given vo, creates sponsored members for each sponsored user who is a member of the given vo.voidconvertSponsoredUsersWithNewSponsor(PerunSession sess, Vo vo, User newSponsor) For the given vo, creates sponsored members for each sponsored user who is a member of the given vo.createMemberCandidates(PerunSession sess, List<RichUser> users, Vo vo, Group group, List<Candidate> candidates, List<String> attrNames) Creates MemberCandidates for given RichUsers, vo, group and candidates.createVo(PerunSession sess, Vo vo) Create new VO.voiddeleteVo(PerunSession sess, Vo vo) Delete VO.voiddeleteVo(PerunSession sess, Vo vo, boolean forceDelete) Delete VO.findCandidates(PerunSession sess, Group group, String searchString) Finds users, who can join the group in Vo.findCandidates(PerunSession sess, Group group, String searchString, List<ExtSource> extSources, boolean filterExistingMembers) findCandidates(PerunSession sess, Vo vo, String searchString) Finds users, who can join the Vo.findCandidates(PerunSession sess, Vo vo, String searchString, int maxNumOfResults) Finds users, who can join the Vo.findCandidates(PerunSession sess, Vo vo, String searchString, int maxNumOfResults, List<ExtSource> extSources, boolean filterExistingMembers) getAdminGroups(PerunSession sess, Vo vo) Deprecated.getAdminGroups(PerunSession perunSession, Vo vo, String role) Get list of group administrators of the given VO.getAdmins(PerunSession sess, Vo vo) Deprecated.getAdmins(PerunSession perunSession, Vo vo, String role, boolean onlyDirectAdmins) Get list of user administrators of specific vo for specific role.getBanById(PerunSession sess, int banId) Get ban by its id.getBanForMember(PerunSession sess, int memberId) Get ban for given member, if it exists.getBansForUser(PerunSession sess, int userId) Gets all bans for given usergetBansForVo(PerunSession sess, int voId) Get list of all bans for vo with given id.getCompleteCandidates(PerunSession sess, Vo vo, Group group, List<String> attrNames, String searchString, List<ExtSource> extSources) Finds MemberCandidates who can join the Group.getCompleteCandidates(PerunSession sess, Vo vo, List<String> attrNames, String searchString) Finds MemberCandidates who can join the Vo.getDirectAdmins(PerunSession sess, Vo vo) Deprecated.getDirectRichAdmins(PerunSession sess, Vo vo) Deprecated.getDirectRichAdminsWithSpecificAttributes(PerunSession perunSession, Vo vo, List<String> specificAttributes) Deprecated.getEnrichedBansForUser(PerunSession sess, int userId, List<String> attrNames) Get all Enriched Bans for given UsergetEnrichedBansForVo(PerunSession sess, Vo vo, List<String> attrNames) Get all Enriched Bans for given VO and attribute namesgetEnrichedVoById(PerunSession sess, int id) Finds existing vo by and id and returns corresponding EnrichedVogetEnrichedVos(PerunSession sess) Get list of all EnrichedVosgetMemberVos(PerunSession sess, int voId) Gets all member organizations of the given vo.getParentVos(PerunSession sess, int memberVoId) Gets all organizations where given vo is direct member.Gets the perunBl.getRichAdmins(PerunSession perunSession, Vo vo) Deprecated.getRichAdmins(PerunSession perunSession, Vo vo, String role, List<String> specificAttributes, boolean allUserAttributes, boolean onlyDirectAdmins) Get list of richUser administrators of specific vo for specific role.getRichAdminsWithAttributes(PerunSession perunSession, Vo vo) Deprecated.getRichAdminsWithSpecificAttributes(PerunSession perunSession, Vo vo, List<String> specificAttributes) Deprecated.getVoById(PerunSession sess, int id) Finds existing VO by id.getVoByShortName(PerunSession sess, String shortName) Find existing VO by short name (short name is unique).getVoMembersCountsByStatus(PerunSession sess, Vo vo) Returns number of vo members by their status.getVos(PerunSession sess) Get list of all Vos.getVosByIds(PerunSession sess, List<Integer> ids) Finds existing VOs by ids.getVosByPerunBean(PerunSession sess, Facility facility) Returns list of vos connected with a facilitygetVosByPerunBean(PerunSession sess, Group group) Returns list of vos connected with a groupgetVosByPerunBean(PerunSession sess, Host host) Returns list of vos connected with a hostgetVosByPerunBean(PerunSession sess, Member member) Returns list of vos connected with a membergetVosByPerunBean(PerunSession sess, Resource resource) Returns list of vos connected with a resourcegetVosByPerunBean(PerunSession sess, User user) Returns list of vos connected with a userintgetVosCount(PerunSession sess) Get count of all vos.voidhandleGroupLostVoRole(PerunSession sess, Group group, Vo vo, String role) Handles a group that lost a role.voidhandleUserLostVoRole(PerunSession sess, User user, Vo vo, String role) Handles a user that lost a role.booleanisMemberBanned(PerunSession sess, int memberId) Information if there is a ban for member with given id.booleanisUserInRoleForVo(PerunSession session, User user, String role, Vo vo, boolean checkGroups) Check whether a user is in a role for a given VO, possibly checking also user's groups.voidRemove all expired bans on vos to now date.voidremoveBan(PerunSession sess, int banId) Removes ban with given id.voidremoveBanForMember(PerunSession sess, int memberId) Removes ban for member with given id.voidremoveMemberVo(PerunSession sess, Vo vo, Vo memberVo) Removes member vo from given vo.searchForVos(PerunSession sess, String searchString, boolean includeIDs) Similarity substring search in all VOs based on shortname and descriptionsearchForVos(PerunSession sess, String searchString, Set<Integer> voIds, boolean includeIDs) Similarity substring search in provided VOs based on shortname and descriptionsetBan(PerunSession sess, BanOnVo banOnVo) Set given ban.voidsetPerunBl(PerunBl perunBl) Sets the perunBl for this instance.updateBan(PerunSession sess, BanOnVo banOnVo) Update ban information.updateVo(PerunSession sess, Vo vo) Updates VO.booleanusesEmbeddedGroupRegistrations(PerunSession sess, Vo vo) Returns true, if the given vo uses EMBEDDED_GROUP_APPLICATION item in its form.
- 
Field Details- 
A_MEMBER_DEF_MEMBER_ORGANIZATIONS- See Also:
 
- 
A_MEMBER_DEF_MEMBER_ORGANIZATIONS_HISTORY- See Also:
 
 
- 
- 
Constructor Details- 
VosManagerBlImplConstructor.
 
- 
- 
Method Details- 
addMemberVoDescription copied from interface:VosManagerBlAdds new relationship between vo and a member vo. If user is member in both vos, updates memberOrganizations list attribute. If user is member only in member vo, creates member in parent vo and sets memberOrganizations list attribute.- Specified by:
- addMemberVoin interface- VosManagerBl
- Parameters:
- sess- session
- vo- vo
- memberVo- new member of the vo
- Throws:
- RelationExistsException- if member vo is already member of the vo
 
- 
checkVoExists- Specified by:
- checkVoExistsin interface- VosManagerBl
- Throws:
- VoNotExistsException
 
- 
convertSponsoredUsersDescription copied from interface:VosManagerBlFor the given vo, creates sponsored members for each sponsored user who is a member of the given vo. Original sponsors of the users will be set to the sponsored members.- Specified by:
- convertSponsoredUsersin interface- VosManagerBl
- Parameters:
- sess- session
- vo- vo where members will be converted
 
- 
convertSponsoredUsersWithNewSponsorDescription copied from interface:VosManagerBlFor the given vo, creates sponsored members for each sponsored user who is a member of the given vo. The sponsored members will be sponsored by the given user, not by its original sponsors.- Specified by:
- convertSponsoredUsersWithNewSponsorin interface- VosManagerBl
- Parameters:
- sess- session
- vo- vo where members will be converted
- newSponsor- user, who will be set as a sponsor to the sponsored members
 
- 
createMemberCandidatespublic List<MemberCandidate> createMemberCandidates(PerunSession sess, List<RichUser> users, Vo vo, Group group, List<Candidate> candidates, List<String> attrNames) Creates MemberCandidates for given RichUsers, vo, group and candidates. If the given group is not null then to all members who are in this group is assigned the sourceGroupId of the given group. The given group can be null.- Parameters:
- sess- session
- users- users
- group- group
- candidates- candidates
- attrNames- names of attributes that will be returned
- Returns:
- list of MemberCandidates for given RichUsers, group and candidates
- Throws:
- InternalErrorException- internal error
 
- 
createVoDescription copied from interface:VosManagerBlCreate new VO.- Specified by:
- createVoin interface- VosManagerBl
- Parameters:
- sess-
- vo- vo object with prefilled voShortName and voName
- Returns:
- newly created VO
- Throws:
- VoExistsException
 
- 
deleteVoDescription copied from interface:VosManagerBlDelete VO.- Specified by:
- deleteVoin interface- VosManagerBl
- Parameters:
- sess-
- vo-
- forceDelete- force the deletion of the VO, regardless there are any existing entities associated with the VO (they will be deleted)
 
- 
deleteVoDescription copied from interface:VosManagerBlDelete VO.- Specified by:
- deleteVoin interface- VosManagerBl
- Parameters:
- sess-
- vo-
 
- 
findCandidatespublic List<Candidate> findCandidates(PerunSession sess, Vo vo, String searchString, int maxNumOfResults) Description copied from interface:VosManagerBlFinds users, who can join the Vo.- Specified by:
- findCandidatesin interface- VosManagerBl
- Parameters:
- sess-
- vo-
- searchString- depends on the extSource of the VO, could by part of the name, email or something like that.
- maxNumOfResults- limit the maximum number of returned entries
- Returns:
- list of candidates who match the searchString
 
- 
findCandidates
- 
findCandidatesDescription copied from interface:VosManagerBlFinds users, who can join the Vo.- Specified by:
- findCandidatesin interface- VosManagerBl
- Parameters:
- sess-
- vo- vo to be used
- searchString- depends on the extSource of the VO, could by part of the name, email or something like that.
- Returns:
- list of candidates who match the searchString
 
- 
findCandidatesDescription copied from interface:VosManagerBlFinds users, who can join the group in Vo.- Specified by:
- findCandidatesin interface- VosManagerBl
- Parameters:
- sess-
- group- group to be used
- searchString- depends on the extSource of the Group, could by part of the name, email or something like that.
- Returns:
- list of candidates who match the searchString
 
- 
findCandidates
- 
getAdminGroupsDescription copied from interface:VosManagerBlGet list of group administrators of the given VO.Supported roles: VOOBSERVER, TOPGROUPCREATOR, VOADMIN - Specified by:
- getAdminGroupsin interface- VosManagerBl
- Parameters:
- perunSession-
- vo-
- role-
- Returns:
- List of groups, who are administrators of the Vo with supported role. Returns empty list if there is no VO group admin.
 
- 
getAdminGroupsDeprecated.Description copied from interface:VosManagerBlGet list of group administrators of the given VO.- Specified by:
- getAdminGroupsin interface- VosManagerBl
- Parameters:
- sess-
- vo-
- Returns:
- List of groups, who are administrators of the Vo. Returns empty list if there is no VO group admin.
 
- 
getAdminspublic List<User> getAdmins(PerunSession perunSession, Vo vo, String role, boolean onlyDirectAdmins) Description copied from interface:VosManagerBlGet list of user administrators of specific vo for specific role. If some group is administrator of the VO, all VALID members are included in the list.If onlyDirectAdmins is true, return only direct users of the group for supported role. Supported roles: VOOBSERVER, TOPGROUPCREATOR, VOADMIN - Specified by:
- getAdminsin interface- VosManagerBl
- Parameters:
- perunSession-
- vo-
- role- supported role
- onlyDirectAdmins- if true, get only direct user administrators (if false, get both direct and indirect)
- Returns:
- list of all user administrators of the given vo for supported role
 
- 
getAdminsDeprecated.Description copied from interface:VosManagerBlGet list of Vo administrators. If some group is administrator of the VO, all members are included in the list.- Specified by:
- getAdminsin interface- VosManagerBl
- Parameters:
- sess-
- vo-
- Returns:
- List of users, who are administrators of the Vo. Returns empty list if there is no VO admin.
 
- 
removeAllExpiredBansOnVosDescription copied from interface:VosManagerBlRemove all expired bans on vos to now date.Get all expired bans and remove them one by one with auditing process. This method is for purpose of removing expired bans using some cron tool. - Specified by:
- removeAllExpiredBansOnVosin interface- VosManagerBl
- Parameters:
- sess-
 
- 
getBanByIdDescription copied from interface:VosManagerBlGet ban by its id.- Specified by:
- getBanByIdin interface- VosManagerBl
- Parameters:
- sess- session
- banId- ban id
- Returns:
- ban object
- Throws:
- BanNotExistsException- if ban with given id is not found
 
- 
getBanForMemberDescription copied from interface:VosManagerBlGet ban for given member, if it exists.- Specified by:
- getBanForMemberin interface- VosManagerBl
- Parameters:
- sess- session
- memberId- member id
- Returns:
- ban object, or null if there is no ban for given member
 
- 
getBansForUserDescription copied from interface:VosManagerBlGets all bans for given user- Specified by:
- getBansForUserin interface- VosManagerBl
- Parameters:
- sess- session
- userId- id of user
- Returns:
- list of bans for given user
 
- 
getBansForVoDescription copied from interface:VosManagerBlGet list of all bans for vo with given id.- Specified by:
- getBansForVoin interface- VosManagerBl
- Parameters:
- sess- session
- voId- vo id
- Returns:
- list of bans for given vo
 
- 
getCompleteCandidatespublic List<MemberCandidate> getCompleteCandidates(PerunSession sess, Vo vo, List<String> attrNames, String searchString) Description copied from interface:VosManagerBlFinds MemberCandidates who can join the Vo.- Specified by:
- getCompleteCandidatesin interface- VosManagerBl
- Parameters:
- sess- session
- vo- vo to be used
- attrNames- name of attributes to be searched
- searchString- depends on the extSource of the Vo, could by part of the name, email or something like that.
- Returns:
- list of memberCandidates who match the searchString
 
- 
getCompleteCandidatespublic List<MemberCandidate> getCompleteCandidates(PerunSession sess, Vo vo, Group group, List<String> attrNames, String searchString, List<ExtSource> extSources) Description copied from interface:VosManagerBlFinds MemberCandidates who can join the Group. If the given vo is not null, it searches only users who belong to this Vo or who have ues in any of given extSources.- Specified by:
- getCompleteCandidatesin interface- VosManagerBl
- Parameters:
- sess- session
- vo- vo if vo is null, users are searched in whole perun, otherwise users are searched in members of given vo and in users with ues in any of given extSources
- group- group to be used
- attrNames- name of attributes to be searched
- searchString- depends on the extSource of the Vo, could by part of the name, email or something like that.
- extSources- extSources used to find candidates and possibly users
- Returns:
- list of memberCandidates who match the searchString
 
- 
getDirectAdminsDeprecated.Description copied from interface:VosManagerBlGets list of direct user administrators of the VO. 'Direct' means, there aren't included users, who are members of group administrators, in the returned list.- Specified by:
- getDirectAdminsin interface- VosManagerBl
- Parameters:
- sess-
- vo-
 
- 
getDirectRichAdminsDeprecated.Description copied from interface:VosManagerBlGet list of Vo administrators directly assigned to VO like RichUsers without attributes.- Specified by:
- getDirectRichAdminsin interface- VosManagerBl
- Parameters:
- sess-
- vo-
- Returns:
- List of users, who are administrators of the Vo. Returns empty list if there is no VO admin.
 
- 
getDirectRichAdminsWithSpecificAttributes@Deprecated public List<RichUser> getDirectRichAdminsWithSpecificAttributes(PerunSession perunSession, Vo vo, List<String> specificAttributes) Deprecated.Description copied from interface:VosManagerBlGet list of Vo administrators, which are directly assigned (not by group membership) with specific attributes. From list of specificAttributes get all Users Attributes and find those for every RichAdmin (only, other attributes are not searched)- Specified by:
- getDirectRichAdminsWithSpecificAttributesin interface- VosManagerBl
- Parameters:
- perunSession-
- vo-
- specificAttributes-
- Returns:
- list of RichUsers with specific attributes.
 
- 
getEnrichedBansForUserpublic List<EnrichedBanOnVo> getEnrichedBansForUser(PerunSession sess, int userId, List<String> attrNames) throws AttributeNotExistsException Description copied from interface:VosManagerBlGet all Enriched Bans for given User- Specified by:
- getEnrichedBansForUserin interface- VosManagerBl
- Parameters:
- sess- sesion
- userId- User ID
- attrNames- List of attributes, returns all attributes if null or empty
- Returns:
- List of Enriched Bans
- Throws:
- AttributeNotExistsException
 
- 
getEnrichedBansForVopublic List<EnrichedBanOnVo> getEnrichedBansForVo(PerunSession sess, Vo vo, List<String> attrNames) throws AttributeNotExistsException Description copied from interface:VosManagerBlGet all Enriched Bans for given VO and attribute names- Specified by:
- getEnrichedBansForVoin interface- VosManagerBl
- Parameters:
- sess- sesion
- vo- VO
- attrNames- List of attributes, returns all attributes if null or empty
- Returns:
- list of enriched bans
- Throws:
- AttributeNotExistsException
 
- 
getEnrichedVoByIdDescription copied from interface:VosManagerBlFinds existing vo by and id and returns corresponding EnrichedVo- Specified by:
- getEnrichedVoByIdin interface- VosManagerBl
- Parameters:
- sess-
- id-
- Returns:
- EnrichedVO object of requested VO, which contains its member and parent VOs
- Throws:
- VoNotExistsException
 
- 
getEnrichedVosDescription copied from interface:VosManagerBlGet list of all EnrichedVos- Specified by:
- getEnrichedVosin interface- VosManagerBl
- Parameters:
- sess-
- Returns:
- List of EnrichedVos or empty list
 
- 
getMemberVosDescription copied from interface:VosManagerBlGets all member organizations of the given vo.- Specified by:
- getMemberVosin interface- VosManagerBl
- Parameters:
- sess- session
- voId- vo id
- Returns:
- list of member vos
 
- 
getParentVosDescription copied from interface:VosManagerBlGets all organizations where given vo is direct member.- Specified by:
- getParentVosin interface- VosManagerBl
- Parameters:
- sess- session
- memberVoId- member vo id
- Returns:
- list of direct parent vos
 
- 
getPerunBlGets the perunBl.- Returns:
- The perunBl.
 
- 
getRichAdminspublic List<RichUser> getRichAdmins(PerunSession perunSession, Vo vo, String role, List<String> specificAttributes, boolean allUserAttributes, boolean onlyDirectAdmins) throws UserNotExistsException Description copied from interface:VosManagerBlGet list of richUser administrators of specific vo for specific role. If some group is administrator of the VO, all VALID members are included in the list.Supported roles: VOOBSERVER, TOPGROUPCREATOR, VOADMIN If "onlyDirectAdmins" is "true", return only direct users of the vo for supported role with specific attributes. If "allUserAttributes" is "true", do not specify attributes through list and return them all in objects richUser . Ignoring list of specific attributes. - Specified by:
- getRichAdminsin interface- VosManagerBl
- Parameters:
- perunSession-
- vo-
- specificAttributes- list of specified attributes which are needed in object richUser
- allUserAttributes- if true, get all possible user attributes and ignore list of specificAttributes (if false, get only specific attributes)
- onlyDirectAdmins- if true, get only direct user administrators (if false, get both direct and indirect)
- Returns:
- list of RichUser administrators for the vo and supported role with attributes
- Throws:
- UserNotExistsException
 
- 
getRichAdminsDeprecated.Description copied from interface:VosManagerBlGet list of Vo administrators like RichUsers without attributes.- Specified by:
- getRichAdminsin interface- VosManagerBl
- Parameters:
- perunSession-
- vo-
- Returns:
- List of users, who are administrators of the Vo. Returns empty list if there is no VO admin.
 
- 
getRichAdminsWithAttributes@Deprecated public List<RichUser> getRichAdminsWithAttributes(PerunSession perunSession, Vo vo) throws UserNotExistsException Deprecated.Description copied from interface:VosManagerBlGet list of Vo administrators like RichUsers with attributes.- Specified by:
- getRichAdminsWithAttributesin interface- VosManagerBl
- Parameters:
- perunSession-
- vo-
- Returns:
- List of users, who are administrators of the Vo. Returns empty list if there is no VO admin.
- Throws:
- UserNotExistsException
 
- 
getRichAdminsWithSpecificAttributes@Deprecated public List<RichUser> getRichAdminsWithSpecificAttributes(PerunSession perunSession, Vo vo, List<String> specificAttributes) Deprecated.Description copied from interface:VosManagerBlGet list of Vo administrators with specific attributes. From list of specificAttributes get all Users Attributes and find those for every RichAdmin (only, other attributes are not searched)- Specified by:
- getRichAdminsWithSpecificAttributesin interface- VosManagerBl
- Parameters:
- perunSession-
- vo-
- specificAttributes-
- Returns:
- list of RichUsers with specific attributes.
 
- 
getVoByIdDescription copied from interface:VosManagerBlFinds existing VO by id.- Specified by:
- getVoByIdin interface- VosManagerBl
- Parameters:
- sess-
- id-
- Returns:
- VO with requested id or throws if the VO with specified id doesn't exist
- Throws:
- VoNotExistsException
 
- 
getVoByShortNameDescription copied from interface:VosManagerBlFind existing VO by short name (short name is unique).- Specified by:
- getVoByShortNamein interface- VosManagerBl
- Parameters:
- sess-
- shortName- short name of VO which you find (for example "KZCU")
- Returns:
- VO with requested shortName or throws if the VO with specified shortName doesn't exist
- Throws:
- VoNotExistsException
 
- 
getVoMembersCountsByStatusDescription copied from interface:VosManagerBlReturns number of vo members by their status.- Specified by:
- getVoMembersCountsByStatusin interface- VosManagerBl
- Parameters:
- sess- perun session
- vo- vo of members
- Returns:
- map of status in vo to number of vo members with the status
 
- 
getVosDescription copied from interface:VosManagerBlGet list of all Vos.- Specified by:
- getVosin interface- VosManagerBl
- Parameters:
- sess-
- Returns:
- List of VOs or empty ArrayList
 
- 
getVosByIdsDescription copied from interface:VosManagerBlFinds existing VOs by ids.- Specified by:
- getVosByIdsin interface- VosManagerBl
- Parameters:
- sess-
- ids-
- Returns:
- VOs with requested ids
 
- 
getVosByPerunBeanDescription copied from interface:VosManagerBlReturns list of vos connected with a group- Specified by:
- getVosByPerunBeanin interface- VosManagerBl
- Parameters:
- sess-
- group-
- Returns:
- list of vos connected with group
- Throws:
- VoNotExistsException
 
- 
getVosByPerunBeanDescription copied from interface:VosManagerBlReturns list of vos connected with a member- Specified by:
- getVosByPerunBeanin interface- VosManagerBl
- Parameters:
- sess-
- member-
- Returns:
- list of vos connected with member
 
- 
getVosByPerunBeanDescription copied from interface:VosManagerBlReturns list of vos connected with a resource- Specified by:
- getVosByPerunBeanin interface- VosManagerBl
- Parameters:
- sess-
- resource-
- Returns:
- list of vos connected with resource
- Throws:
- VoNotExistsException
 
- 
getVosByPerunBeanDescription copied from interface:VosManagerBlReturns list of vos connected with a user- Specified by:
- getVosByPerunBeanin interface- VosManagerBl
- Parameters:
- sess-
- user-
- Returns:
- list of vos connected with user
 
- 
getVosByPerunBeanDescription copied from interface:VosManagerBlReturns list of vos connected with a host- Specified by:
- getVosByPerunBeanin interface- VosManagerBl
- Parameters:
- sess-
- host-
- Returns:
- list of vos connected with host
 
- 
getVosByPerunBeanDescription copied from interface:VosManagerBlReturns list of vos connected with a facility- Specified by:
- getVosByPerunBeanin interface- VosManagerBl
- Parameters:
- sess-
- facility-
- Returns:
- list of vos connected with facility
 
- 
getVosCountDescription copied from interface:VosManagerBlGet count of all vos.- Specified by:
- getVosCountin interface- VosManagerBl
- Parameters:
- sess-
- Returns:
- count of all vos
 
- 
handleGroupLostVoRoleDescription copied from interface:VosManagerBlHandles a group that lost a role.- Specified by:
- handleGroupLostVoRolein interface- VosManagerBl
- Parameters:
- sess- perun session
- group- group
- vo- virtual organization
- role- role of group in VO
 
- 
handleUserLostVoRoleDescription copied from interface:VosManagerBlHandles a user that lost a role.- Specified by:
- handleUserLostVoRolein interface- VosManagerBl
- Parameters:
- sess- perun session
- user- user
- vo- virtual organization
- role- role of user in VO
 
- 
isMemberBannedDescription copied from interface:VosManagerBlInformation if there is a ban for member with given id.- Specified by:
- isMemberBannedin interface- VosManagerBl
- Parameters:
- sess- session
- memberId- member id
- Returns:
- true, if member with given id is banned, false otherwise
 
- 
isUserInRoleForVopublic boolean isUserInRoleForVo(PerunSession session, User user, String role, Vo vo, boolean checkGroups) Description copied from interface:VosManagerBlCheck whether a user is in a role for a given VO, possibly checking also user's groups.- Specified by:
- isUserInRoleForVoin interface- VosManagerBl
- Parameters:
- session- session
- user- user
- role- role
- vo- virtual organization
- checkGroups- check also groups of the user whether they have the role
- Returns:
- true if user is directly in role for the vo, or if "checkGroups" flag is set and at least one of the groups is in the role
 
- 
removeBanDescription copied from interface:VosManagerBlRemoves ban with given id.- Specified by:
- removeBanin interface- VosManagerBl
- Parameters:
- sess- session
- banId- ban id
- Throws:
- BanNotExistsException- if there is no ban with given id
 
- 
removeBanForMemberDescription copied from interface:VosManagerBlRemoves ban for member with given id.- Specified by:
- removeBanForMemberin interface- VosManagerBl
- Parameters:
- sess- session
- memberId- member id
- Throws:
- BanNotExistsException- if there is no ban for member with given id
 
- 
removeMemberVoDescription copied from interface:VosManagerBlRemoves member vo from given vo. Updates memberOrganizations list attribute for those members of parent vo who came from the member vo.- Specified by:
- removeMemberVoin interface- VosManagerBl
- Parameters:
- sess- session
- vo- vo
- memberVo- vo to be removed
- Throws:
- RelationNotExistsException- if member vo is not a member of the vo
 
- 
searchForVosDescription copied from interface:VosManagerBlSimilarity substring search in all VOs based on shortname and description- Specified by:
- searchForVosin interface- VosManagerBl
- Parameters:
- sess- session
- searchString- string to search for
- includeIDs- whether to search in IDs as well, used for PERUNADMINs
- Returns:
- list of matched vos
 
- 
searchForVospublic List<Vo> searchForVos(PerunSession sess, String searchString, Set<Integer> voIds, boolean includeIDs) Description copied from interface:VosManagerBlSimilarity substring search in provided VOs based on shortname and description- Specified by:
- searchForVosin interface- VosManagerBl
- Parameters:
- sess- session
- searchString- string to search for
- voIds- VO IDs in which to perform the search
- includeIDs- whether to search in IDs as well, used for PERUNADMINs
- Returns:
- list of matched vos
 
- 
setBanpublic BanOnVo setBan(PerunSession sess, BanOnVo banOnVo) throws MemberNotExistsException, BanAlreadyExistsException Description copied from interface:VosManagerBlSet given ban.- Specified by:
- setBanin interface- VosManagerBl
- Parameters:
- sess- session
- banOnVo- ban information, memberId, voId, validity and description are needed
- Returns:
- created ban object
- Throws:
- MemberNotExistsException
- BanAlreadyExistsException
 
- 
setPerunBlSets the perunBl for this instance.- Parameters:
- perunBl- The perunBl.
 
- 
updateBanDescription copied from interface:VosManagerBlUpdate ban information. Only description and validity are updated.- Specified by:
- updateBanin interface- VosManagerBl
- Parameters:
- sess- session
- banOnVo- updated ban
- Returns:
- updated ban object
 
- 
updateVoDescription copied from interface:VosManagerBlUpdates VO.- Specified by:
- updateVoin interface- VosManagerBl
- Parameters:
- sess-
- vo-
- Returns:
- returns updated VO
 
- 
usesEmbeddedGroupRegistrationsDescription copied from interface:VosManagerBlReturns true, if the given vo uses EMBEDDED_GROUP_APPLICATION item in its form.- Specified by:
- usesEmbeddedGroupRegistrationsin interface- VosManagerBl
- Parameters:
- sess- session
- vo- vo
- Returns:
- true, if the given vo uses EMBEDDED_GROUP_APPLICATION item in its form, false otherwise.
 
 
-