Package cz.metacentrum.perun.core.api
Interface VosManager
- All Known Implementing Classes:
- VosManagerEntry
public interface VosManager
VOs manager can create, delete, update and find VO.
You must get an instance of VosManager from Perun:
    PerunSession ps;
    //...
    VosManager vm = ps.getPerun().getVosManager();
 - Author:
- Michal Prochazka, Slavek Licehammer
- See Also:
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddAdmin(PerunSession perunSession, Vo vo, Group group) Add a group administrator to the VO.voidaddAdmin(PerunSession perunSession, Vo vo, User user) Add a user administrator to the VO.voidaddMemberVo(PerunSession sess, Vo vo, Vo memberVo) Adds new relationship between vo and a member vo.voidaddSponsorRole(PerunSession sess, Vo vo, Group group) Adds role SPONSOR for group in a VO.voidaddSponsorRole(PerunSession sess, Vo vo, User user) Adds role SPONSOR for user in a 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.createVo(PerunSession perunSession, Vo vo) Create new VO.voiddeleteVo(PerunSession perunSession, Vo vo) Delete VO.voiddeleteVo(PerunSession perunSession, Vo vo, boolean forceDelete) Delete VO.findCandidates(PerunSession sess, Group group, String searchString) Finds users, who can join the group in Vo.findCandidates(PerunSession perunSession, Vo vo, String searchString) Finds users, who can join the Vo.findCandidates(PerunSession perunSession, Vo vo, String searchString, int maxNumOfResults) Finds users, who can join the Vo.getAdminGroups(PerunSession perunSession, Vo vo) Deprecated.getAdminGroups(PerunSession perunSession, Vo vo, String role) Deprecated.getAdmins(PerunSession perunSession, Vo vo) Deprecated.getAdmins(PerunSession perunSession, Vo vo, String role, boolean onlyDirectAdmins) Deprecated.getAllVos(PerunSession perunSession) Get list of Vos without any privilege.getBanById(PerunSession sess, int banId) Get vo ban with given id.getBanForMember(PerunSession sess, Member member) Get ban for given member, or null if he is not banned.getBansForVo(PerunSession sess, int voId) Get list of all bans for vo with given id.getCompleteCandidates(PerunSession sess, Group group, List<String> attrNames, String searchString) 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 perunSession, Vo vo) Deprecated.getDirectRichAdminsWithSpecificAttributes(PerunSession perunSession, Vo vo, List<String> specificAttributes) Deprecated.getEnrichedBansForUser(PerunSession sess, int userId, List<String> attrNames) Gets all Enriched Bans for given user.getEnrichedBansForVo(PerunSession sess, int voId, List<String> attrNames) Gets all Enriched Bans for given vo.getEnrichedVoById(PerunSession perunSession, int id) Finds existing vo by and id and returns corresponding EnrichedVogetEnrichedVos(PerunSession perunSession) Get list of EnrichedVos of all the VOs the user has access togetMemberVos(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.getRichAdmins(PerunSession perunSession, Vo vo) Deprecated.getRichAdmins(PerunSession perunSession, Vo vo, String role, List<String> specificAttributes, boolean allUserAttributes, boolean onlyDirectAdmins) Deprecated.getRichAdminsWithAttributes(PerunSession perunSession, Vo vo) Deprecated.getRichAdminsWithSpecificAttributes(PerunSession perunSession, Vo vo, List<String> specificAttributes) Deprecated.getVoById(PerunSession perunSession, int id) Finds existing VO by id.getVoByShortName(PerunSession perunSession, 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 perunSession) Get list of Vos by Access Righs: If User is: - PERUNADMIN : get all Vos - VoAdmin : Vo where user is Admin - GroupAdmin: Vo where user is GroupAdmingetVosByIds(PerunSession perunSession, List<Integer> ids) Finds existing VOs by ids.intgetVosCount(PerunSession sess) Get count of all vos.voidremoveAdmin(PerunSession perunSession, Vo vo, Group group) Removes a group administrator from the VO.voidremoveAdmin(PerunSession perunSession, Vo vo, User user) Removes a user administrator from the VO.voidremoveBan(PerunSession sess, int banId) Remove vo ban with given id.voidremoveBanForMember(PerunSession sess, Member member) Remove vo ban for given member.voidremoveMemberVo(PerunSession sess, Vo vo, Vo memberVo) Removes member vo from given vo.voidremoveSponsorRole(PerunSession sess, Vo vo, Group group) Removes role SPONSOR from group in a VO.voidremoveSponsorRole(PerunSession sess, Vo vo, User user) Removes role SPONSOR from user in a VO.setBan(PerunSession sess, BanOnVo ban) Set ban for member on his vo.updateBan(PerunSession sess, BanOnVo banOnVo) Update existing ban (description, validation timestamp)updateVo(PerunSession perunSession, Vo vo) Updates VO.
- 
Field Details- 
MEMBERS_GROUP- See Also:
 
- 
MEMBERS_GROUP_DESCRIPTION- See Also:
 
 
- 
- 
Method Details- 
addAdminvoid addAdmin(PerunSession perunSession, Vo vo, User user) throws PrivilegeException, AlreadyAdminException, VoNotExistsException, UserNotExistsException, RoleCannotBeManagedException, RoleCannotBeSetException Add a user administrator to the VO.- Parameters:
- perunSession-
- vo-
- user- user who will became an VO administrator
- Throws:
- InternalErrorException
- PrivilegeException
- AlreadyAdminException
- VoNotExistsException
- UserNotExistsException
- RoleCannotBeManagedException
- RoleCannotBeSetException
 
- 
addAdminvoid addAdmin(PerunSession perunSession, Vo vo, Group group) throws PrivilegeException, AlreadyAdminException, VoNotExistsException, GroupNotExistsException, RoleCannotBeManagedException, RoleCannotBeSetException Add a group administrator to the VO.- Parameters:
- perunSession-
- vo-
- group- that will become a VO administrator
- Throws:
- InternalErrorException
- PrivilegeException
- AlreadyAdminException
- VoNotExistsException
- GroupNotExistsException
- RoleCannotBeManagedException
- RoleCannotBeSetException
 
- 
addMemberVovoid addMemberVo(PerunSession sess, Vo vo, Vo memberVo) throws RelationExistsException, PrivilegeException, VoNotExistsException Adds 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.- Parameters:
- sess- session
- vo- vo
- memberVo- new member of the vo
- Throws:
- RelationExistsException- if member vo is already member of the vo
- PrivilegeException- if not authorized
- VoNotExistsException- if any of the vos don't exist
 
- 
addSponsorRolevoid addSponsorRole(PerunSession sess, Vo vo, User user) throws AlreadyAdminException, VoNotExistsException, UserNotExistsException, PrivilegeException, RoleCannotBeManagedException, RoleCannotBeSetException Adds role SPONSOR for user in a VO.- Parameters:
- sess- perun session
- vo- virtual organization
- user- specific user in VO
- Throws:
- InternalErrorException
- AlreadyAdminException
- VoNotExistsException
- UserNotExistsException
- PrivilegeException
- RoleCannotBeManagedException
- RoleCannotBeSetException
 
- 
addSponsorRolevoid addSponsorRole(PerunSession sess, Vo vo, Group group) throws AlreadyAdminException, VoNotExistsException, GroupNotExistsException, PrivilegeException, RoleCannotBeManagedException, RoleCannotBeSetException Adds role SPONSOR for group in a VO.- Parameters:
- sess- perun session
- vo- virtual organization
- group- specific group in VO
- Throws:
- InternalErrorException
- AlreadyAdminException
- VoNotExistsException
- GroupNotExistsException
- PrivilegeException
- RoleCannotBeSetException
- RoleCannotBeManagedException
 
- 
convertSponsoredUsersFor 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.- Parameters:
- sess- session
- vo- vo where members will be converted
- Throws:
- PrivilegeException
 
- 
convertSponsoredUsersWithNewSponsorvoid convertSponsoredUsersWithNewSponsor(PerunSession sess, Vo vo, User newSponsor) throws PrivilegeException For 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.- Parameters:
- sess- session
- vo- vo where members will be converted
- newSponsor- user, who will be set as a sponsor to the sponsored members
- Throws:
- PrivilegeException
 
- 
createVoCreate new VO.- Parameters:
- perunSession-
- vo- vo object with prefilled voShortName and voName
- Returns:
- newly created VO
- Throws:
- VoExistsException
- InternalErrorException
- PrivilegeException
 
- 
deleteVoDelete VO.- Parameters:
- perunSession-
- vo-
- Throws:
- VoNotExistsException
- InternalErrorException
- PrivilegeException
 
- 
deleteVovoid deleteVo(PerunSession perunSession, Vo vo, boolean forceDelete) throws VoNotExistsException, PrivilegeException Delete VO.- Parameters:
- perunSession-
- vo-
- forceDelete- force the deletion of the VO, regardless there are any existing entities associated with the VO (they will be deleted)
- Throws:
- VoNotExistsException
- InternalErrorException
- PrivilegeException
 
- 
findCandidatesList<Candidate> findCandidates(PerunSession perunSession, Vo vo, String searchString, int maxNumOfResults) throws VoNotExistsException, PrivilegeException Finds users, who can join the Vo.- Parameters:
- perunSession-
- 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
- Throws:
- InternalErrorException
- VoNotExistsException
- PrivilegeException
 
- 
findCandidatesList<Candidate> findCandidates(PerunSession perunSession, Vo vo, String searchString) throws VoNotExistsException, PrivilegeException Finds users, who can join the Vo.- Parameters:
- perunSession-
- 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
- Throws:
- InternalErrorException
- VoNotExistsException
- PrivilegeException
 
- 
findCandidatesList<Candidate> findCandidates(PerunSession sess, Group group, String searchString) throws GroupNotExistsException, PrivilegeException Finds users, who can join the group in Vo.- 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
- Throws:
- InternalErrorException
- GroupNotExistsException
- PrivilegeException
 
- 
getAdminGroups@Deprecated List<Group> getAdminGroups(PerunSession perunSession, Vo vo, String role) throws PrivilegeException, VoNotExistsException, RoleNotSupportedException Deprecated.Get list of group administrators of the given VO.Supported roles: VOOBSERVER, TOPGROUPCREATOR, VOADMIN, SPONSOR - 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.
- Throws:
- VoNotExistsException
- InternalErrorException
- PrivilegeException
- RoleNotSupportedException
 
- 
getAdminGroups@Deprecated List<Group> getAdminGroups(PerunSession perunSession, Vo vo) throws PrivilegeException, VoNotExistsException Deprecated.Get list of group administrators of the given VO.- Parameters:
- perunSession-
- vo-
- Returns:
- List of groups, who are administrators of the Vo. Returns empty list if there is no VO group admin.
- Throws:
- VoNotExistsException
- InternalErrorException
- PrivilegeException
 
- 
getAdmins@Deprecated List<User> getAdmins(PerunSession perunSession, Vo vo, String role, boolean onlyDirectAdmins) throws PrivilegeException, VoNotExistsException, RoleNotSupportedException Deprecated.Get 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 - 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
- Throws:
- InternalErrorException
- PrivilegeException
- RoleNotSupportedException
- VoNotExistsException
 
- 
getAdmins@Deprecated List<User> getAdmins(PerunSession perunSession, Vo vo) throws PrivilegeException, VoNotExistsException Deprecated.Get list of Vo administrators. If some group is administrator of the VO, all members are included in the list.- Parameters:
- perunSession-
- vo-
- Returns:
- List of users, who are administrators of the Vo. Returns empty list if there is no VO admin.
- Throws:
- VoNotExistsException
- InternalErrorException
- PrivilegeException
 
- 
getAllVosGet list of Vos without any privilege.- Parameters:
- perunSession-
- Returns:
- List of VOs or empty ArrayList
- Throws:
- RelationExistsException
- InternalErrorException
- PrivilegeException
 
- 
getBanByIdGet vo ban with given id.- Parameters:
- sess- session
- banId- ban id
- Returns:
- found ban
- Throws:
- BanNotExistsException- if there is no such ban
- PrivilegeException- insufficient permissions
 
- 
getBanForMemberBanOnVo getBanForMember(PerunSession sess, Member member) throws PrivilegeException, MemberNotExistsException Get ban for given member, or null if he is not banned.- Parameters:
- sess- session
- member- member
- Returns:
- found ban or null if the member is not banned
- Throws:
- PrivilegeException- insufficient permissions
- MemberNotExistsException- if there is no such member
 
- 
getBansForVoList<BanOnVo> getBansForVo(PerunSession sess, int voId) throws PrivilegeException, VoNotExistsException Get list of all bans for vo with given id.- Parameters:
- sess- session
- voId- vo id
- Returns:
- vo bans for given vo
- Throws:
- PrivilegeException- insufficient permissions
- VoNotExistsException- if there is no vo with given id
 
- 
getCompleteCandidatesList<MemberCandidate> getCompleteCandidates(PerunSession sess, Vo vo, List<String> attrNames, String searchString) throws VoNotExistsException, PrivilegeException Finds MemberCandidates who can join the Vo.- Parameters:
- sess- session
- vo- vo to be used
- attrNames- names of attributes that will be found
- searchString- depends on the extSource of the Group, could by part of the name, email or something like that.
- Returns:
- list of MemberCandidates for given vo.
- Throws:
- InternalErrorException- internal error
- VoNotExistsException- when vo does not exist
- PrivilegeException- privilege exception
 
- 
getCompleteCandidatesList<MemberCandidate> getCompleteCandidates(PerunSession sess, Group group, List<String> attrNames, String searchString) throws GroupNotExistsException, PrivilegeException Finds MemberCandidates who can join the Group.- Parameters:
- sess- session
- group- group to be used
- attrNames- names of attributes that will be found
- searchString- depends on the extSource of the Group, could by part of the name, email or something like that.
- Returns:
- list of MemberCandidates for given vo.
- Throws:
- InternalErrorException- internal error
- GroupNotExistsException- when group does not exist
- PrivilegeException- privilege exception
 
- 
getDirectAdmins@Deprecated List<User> getDirectAdmins(PerunSession perunSession, Vo vo) throws PrivilegeException, VoNotExistsException Deprecated.Gets 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.- Parameters:
- perunSession-
- vo-
- Throws:
- InternalErrorException
- PrivilegeException
- VoNotExistsException
 
- 
getDirectRichAdminsWithSpecificAttributes@Deprecated List<RichUser> getDirectRichAdminsWithSpecificAttributes(PerunSession perunSession, Vo vo, List<String> specificAttributes) throws PrivilegeException, VoNotExistsException Deprecated.Get 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)- Parameters:
- perunSession-
- vo-
- specificAttributes-
- Returns:
- list of RichUsers with specific attributes.
- Throws:
- InternalErrorException
- PrivilegeException
- VoNotExistsException
 
- 
getEnrichedBansForUserList<EnrichedBanOnVo> getEnrichedBansForUser(PerunSession sess, int userId, List<String> attrNames) throws PrivilegeException, UserNotExistsException, AttributeNotExistsException Gets all Enriched Bans for given user.- Parameters:
- sess- session
- userId- id of user
- attrNames- List of attribute names, returns all attributes if empty or null
- Returns:
- List of Enriched Bans
- Throws:
- UserNotExistsException- if user does not exist
- PrivilegeException
- AttributeNotExistsException
 
- 
getEnrichedBansForVoList<EnrichedBanOnVo> getEnrichedBansForVo(PerunSession sess, int voId, List<String> attrNames) throws PrivilegeException, AttributeNotExistsException, VoNotExistsException Gets all Enriched Bans for given vo. Attr names specify which attributes should be included in RichMember.- Parameters:
- sess- session
- voId- id of vo
- attrNames- List of attribute names, returns all attributes if empty or null
- Returns:
- List of Enriched Bans
- Throws:
- PrivilegeException
- AttributeNotExistsException
- VoNotExistsException
 
- 
getEnrichedVoByIdEnrichedVo getEnrichedVoById(PerunSession perunSession, int id) throws VoNotExistsException, PrivilegeException Finds existing vo by and id and returns corresponding EnrichedVo- Parameters:
- perunSession-
- id-
- Returns:
- EnrichedVO object of requested VO, which contains its member and parent VOs
- Throws:
- VoNotExistsException
- PrivilegeException
 
- 
getEnrichedVosGet list of EnrichedVos of all the VOs the user has access to- Parameters:
- perunSession-
- Returns:
- List of EnrichedVos or empty list
- Throws:
- PrivilegeException
 
- 
getMemberVosGets all member organizations of the given vo.- Parameters:
- sess- session
- voId- vo id
- Returns:
- list of member vos
- Throws:
- VoNotExistsException- if given vo does not exist
- PrivilegeException- if not authorized
 
- 
getParentVosList<Vo> getParentVos(PerunSession sess, int memberVoId) throws VoNotExistsException, PrivilegeException Gets all organizations where given vo is direct member.- Parameters:
- sess- session
- memberVoId- member vo id
- Returns:
- list of direct parent vos
- Throws:
- VoNotExistsException- if given member vo does not exist
- PrivilegeException- if not authorized
 
- 
getRichAdmins@Deprecated List<RichUser> getRichAdmins(PerunSession perunSession, Vo vo, String role, List<String> specificAttributes, boolean allUserAttributes, boolean onlyDirectAdmins) throws PrivilegeException, VoNotExistsException, RoleNotSupportedException, UserNotExistsException Deprecated.Get 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, SPONSOR 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. - 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:
- InternalErrorException
- PrivilegeException
- VoNotExistsException
- RoleNotSupportedException
- UserNotExistsException
 
- 
getRichAdmins@Deprecated List<RichUser> getRichAdmins(PerunSession perunSession, Vo vo) throws PrivilegeException, VoNotExistsException Deprecated.Get list of Vo administrators like RichUsers without attributes.- Parameters:
- perunSession-
- vo-
- Returns:
- List of users, who are administrators of the Vo. Returns empty list if there is no VO admin.
- Throws:
- VoNotExistsException
- InternalErrorException
- PrivilegeException
 
- 
getRichAdminsWithAttributes@Deprecated List<RichUser> getRichAdminsWithAttributes(PerunSession perunSession, Vo vo) throws PrivilegeException, VoNotExistsException, UserNotExistsException Deprecated.Get list of Vo administrators like RichUsers with attributes.- Parameters:
- perunSession-
- vo-
- Returns:
- List of users, who are administrators of the Vo. Returns empty list if there is no VO admin.
- Throws:
- VoNotExistsException
- InternalErrorException
- UserNotExistsException
- PrivilegeException
 
- 
getRichAdminsWithSpecificAttributes@Deprecated List<RichUser> getRichAdminsWithSpecificAttributes(PerunSession perunSession, Vo vo, List<String> specificAttributes) throws PrivilegeException, VoNotExistsException Deprecated.Get 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)- Parameters:
- perunSession-
- vo-
- specificAttributes-
- Returns:
- list of RichUsers with specific attributes.
- Throws:
- InternalErrorException
- PrivilegeException
- VoNotExistsException
 
- 
getVoByIdFinds existing VO by id.- Parameters:
- perunSession-
- id-
- Returns:
- VO with requested id or throws VoNotExistsException if the VO with specified id doesn't exist
- Throws:
- VoNotExistsException
- InternalErrorException
- PrivilegeException
 
- 
getVoByShortNameVo getVoByShortName(PerunSession perunSession, String shortName) throws VoNotExistsException, PrivilegeException Find existing VO by short name (short name is unique).- Parameters:
- perunSession-
- shortName- short name of VO which you find (for example "KZCU")
- Returns:
- VO with requested shortName or throws VoNotExistsException if the VO with specified shortName doesn't exist
- Throws:
- VoNotExistsException
- PrivilegeException
- InternalErrorException
 
- 
getVoMembersCountsByStatusMap<Status,Integer> getVoMembersCountsByStatus(PerunSession sess, Vo vo) throws VoNotExistsException, PrivilegeException Returns number of vo members by their status.- Parameters:
- sess- perun session
- vo- vo of members
- Returns:
- map of status in vo to number of vo members with the status
- Throws:
- VoNotExistsException- if vo does not exist
- PrivilegeException- insufficient permissions
 
- 
getVosGet list of Vos by Access Righs: If User is: - PERUNADMIN : get all Vos - VoAdmin : Vo where user is Admin - GroupAdmin: Vo where user is GroupAdmin- Parameters:
- perunSession-
- Returns:
- List of VOs or empty ArrayList
- Throws:
- RelationExistsException
- InternalErrorException
- PrivilegeException
 
- 
getVosByIdsFinds existing VOs by ids.- Parameters:
- perunSession-
- ids-
- Returns:
- VOs with requested ids
- Throws:
- InternalErrorException
- PrivilegeException
 
- 
getVosCountGet count of all vos.- Parameters:
- sess- PerunSession
- Returns:
- count of all vos
- Throws:
- InternalErrorException
 
- 
removeAdminvoid removeAdmin(PerunSession perunSession, Vo vo, User user) throws PrivilegeException, VoNotExistsException, UserNotAdminException, UserNotExistsException, RoleCannotBeManagedException Removes a user administrator from the VO.- Parameters:
- perunSession-
- vo-
- user- user who will lose an VO administrator role
- Throws:
- InternalErrorException
- PrivilegeException
- VoNotExistsException
- UserNotAdminException
- UserNotExistsException
- RoleCannotBeManagedException
 
- 
removeAdminvoid removeAdmin(PerunSession perunSession, Vo vo, Group group) throws PrivilegeException, VoNotExistsException, GroupNotAdminException, GroupNotExistsException, RoleCannotBeManagedException Removes a group administrator from the VO.- Parameters:
- perunSession-
- vo-
- group- group that will lose a VO administrator role
- Throws:
- InternalErrorException
- PrivilegeException
- VoNotExistsException
- GroupNotAdminException
- GroupNotExistsException
- RoleCannotBeManagedException
 
- 
removeBanRemove vo ban with given id.- Parameters:
- sess- session
- banId- if of vo ban
- Throws:
- PrivilegeException- insufficient permissions
- BanNotExistsException- if there is no ban with specified id
 
- 
removeBanForMembervoid removeBanForMember(PerunSession sess, Member member) throws PrivilegeException, BanNotExistsException, MemberNotExistsException Remove vo ban for given member.- Parameters:
- sess- session
- member- member
- Throws:
- PrivilegeException- insufficient permissions
- BanNotExistsException- if there is no ban for member with given id
- MemberNotExistsException- if there is no such member
 
- 
removeMemberVovoid removeMemberVo(PerunSession sess, Vo vo, Vo memberVo) throws RelationNotExistsException, PrivilegeException, VoNotExistsException Removes member vo from given vo. Updates memberOrganizations list attribute for those members of parent vo who came from the member vo.- Parameters:
- sess- session
- vo- vo
- memberVo- member vo to be removed
- Throws:
- RelationNotExistsException- if member vo is not a member of the vo
- PrivilegeException- if not authorized
- VoNotExistsException- if any of the vos don't exist
 
- 
removeSponsorRolevoid removeSponsorRole(PerunSession sess, Vo vo, User user) throws UserNotAdminException, VoNotExistsException, UserNotExistsException, PrivilegeException, RoleCannotBeManagedException Removes role SPONSOR from user in a VO.- Parameters:
- sess- perun session
- vo- virtual organization
- user- user in VO for removal of sponsor role
- Throws:
- InternalErrorException
- UserNotAdminException
- VoNotExistsException
- UserNotExistsException
- PrivilegeException
- RoleCannotBeManagedException
 
- 
removeSponsorRolevoid removeSponsorRole(PerunSession sess, Vo vo, Group group) throws GroupNotAdminException, VoNotExistsException, GroupNotExistsException, PrivilegeException, RoleCannotBeManagedException Removes role SPONSOR from group in a VO.- Parameters:
- sess- perun session
- vo- virtual organization
- group- group in VO for removal of sponsor role
- Throws:
- InternalErrorException
- GroupNotAdminException
- VoNotExistsException
- GroupNotExistsException
- PrivilegeException
- RoleCannotBeManagedException
 
- 
setBanBanOnVo setBan(PerunSession sess, BanOnVo ban) throws PrivilegeException, MemberNotExistsException, BanAlreadyExistsException Set ban for member on his vo.- Parameters:
- sess- session
- ban- ban information
- Returns:
- created ban object
- Throws:
- PrivilegeException- insufficient permissions
- MemberNotExistsException- if there is no member with specified id
- BanAlreadyExistsException
 
- 
updateBanBanOnVo updateBan(PerunSession sess, BanOnVo banOnVo) throws PrivilegeException, BanNotExistsException, VoNotExistsException Update existing ban (description, validation timestamp)- Parameters:
- sess-
- banOnVo- the specific ban
- Returns:
- updated ban
- Throws:
- InternalErrorException
- PrivilegeException
- BanNotExistsException
- VoNotExistsException
 
- 
updateVoUpdates VO.- Parameters:
- perunSession-
- vo-
- Returns:
- returns updated VO
- Throws:
- VoNotExistsException
- PrivilegeException
- InternalErrorException
 
 
-