Interface VosManagerImplApi
- All Known Implementing Classes:
- VosManagerImpl
public interface VosManagerImplApi
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:
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddMemberVo(PerunSession sess, Vo vo, Vo memberVo) Adds new relationship between vo and a member vo.voidcheckVoExists(PerunSession perunSession, Vo vo) Check if vo exists in underlaying data source.voidcreateApplicationForm(PerunSession sess, Vo vo) Creates empty application form definition for VO when VO is createdcreateVo(PerunSession perunSession, Vo vo) Create new VO.deleteVo(PerunSession perunSession, Vo vo) Delete VO.getAdminGroups(PerunSession sess, Vo vo) Deprecated.getAdminGroups(PerunSession sess, Vo vo, String role) Get list of group administrators of the given VO for specific role.getAdmins(PerunSession sess, Vo vo) Deprecated.getAdmins(PerunSession sess, Vo vo, String role) Get list of user administrators of specific vo for specific role.Returns expired bans across all vosgetBanById(PerunSession sess, int banId) Get ban by its id.getBanForMember(PerunSession sess, int memberId) Get ban for given member or NULL if there is no ban.getBansForUser(PerunSession sess, int userId) Gets all rich bans for given user.getBansForVo(PerunSession sess, int voId) Get list of all bans for vo with given id.getDirectAdmins(PerunSession perunSession, Vo vo) Deprecated.getDirectAdmins(PerunSession sess, Vo vo, String role) Get list of direct user administrators of specific vo for specific role.getMemberVos(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.getVoApplicationIds(PerunSession sess, Vo vo) Return list of IDs of all applications, which belongs to VO.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).getVos(PerunSession perunSession) Get list of all Vos.getVosByIds(PerunSession perunSession, List<Integer> ids) Gets VOs by their ids.intgetVosCount(PerunSession perunSession) Get count of all vos.booleanhasEmbeddedGroupsItemInForm(PerunSession sess, int voId) Returns true, if there is a vo with given id which has application form with the EMBEDDED_GROUP_APPLICATION item in it.booleanisMemberBanned(PerunSession sess, int memberId) Information if there is a ban for member with given id.voidremoveBan(PerunSession sess, int banId) Removes ban 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.updateBan(PerunSession sess, BanOnVo banOnVo) Update ban information.updateVo(PerunSession perunSession, Vo vo) Updates VO.booleanvoExists(PerunSession perunSession, Vo vo) Check if vo exists in underlaying data source.
- 
Method Details- 
addMemberVoAdds new relationship between vo and a member vo.- Parameters:
- sess- session
- vo- vo
- memberVo- new member of the vo
- Throws:
- RelationExistsException- if member vo is already member of the vo
 
- 
checkVoExistsCheck if vo exists in underlaying data source.- Parameters:
- perunSession-
- vo-
- Throws:
- InternalErrorException
- VoNotExistsException
 
- 
createApplicationFormCreates empty application form definition for VO when VO is created- Parameters:
- sess-
- vo-
- Throws:
- InternalErrorException
 
- 
createVoCreate new VO.- Parameters:
- perunSession-
- vo-
- Returns:
- newly created VO
- Throws:
- VoExistsException
- InternalErrorException
 
- 
deleteVoDelete VO.- Parameters:
- perunSession-
- vo-
- Returns:
- deleted VO
- Throws:
- InternalErrorException
 
- 
getAdminGroupsGet list of group administrators of the given VO for specific role.- Parameters:
- sess-
- vo-
- Returns:
- List of groups, who are administrators of the Vo with specific role. Returns empty list if there is no such authorized group.
- Throws:
- InternalErrorException
 
- 
getAdminGroupsDeprecated.Get list of group administrators of the given VO.- Parameters:
- sess-
- vo-
- Returns:
- List of groups, who are administrators of the Vo. Returns empty list if there is no VO group admin.
- Throws:
- InternalErrorException
 
- 
getAdminsGet 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.- Parameters:
- sess-
- vo-
- role-
- Returns:
- List of users who are administrators of the vo with specific role. Empty list if there is no such administrator
- Throws:
- InternalErrorException
 
- 
getAdminsDeprecated.Get list of Vo administrators. If some group is administrator of the VO, all members are included in the list.- Parameters:
- sess-
- vo-
- Returns:
- List of users, who are administrators of the Vo. Returns empty list if there is no VO admin.
- Throws:
- InternalErrorException
 
- 
getAllExpiredBansOnVosReturns expired bans across all vos- Parameters:
- sess-
- Returns:
- all expired bans
 
- 
getBanByIdGet ban by its id.- Parameters:
- sess- session
- banId- ban id
- Returns:
- ban object
- Throws:
- BanNotExistsException- if ban with given id is not found
 
- 
getBanForMemberGet ban for given member or NULL if there is no ban.- Parameters:
- sess- session
- memberId- member id
- Returns:
- ban object or NULL
 
- 
getBansForUserGets all rich bans for given user.- Parameters:
- sess- session
- userId- user id
- Returns:
 
- 
getBansForVoGet list of all bans for vo with given id.- Parameters:
- sess- session
- voId- vo id
- Returns:
- list of bans for given vo
 
- 
getDirectAdminsGet list of direct user administrators of specific vo for specific role. 'Direct' means, there aren't included users, who are members of group administrators, in the returned list.- Parameters:
- sess-
- vo-
- role-
- Returns:
- List of direct users who are administrators of the vo with specific role. Empty list if there is no such administrator
- Throws:
- InternalErrorException
 
- 
getDirectAdminsDeprecated.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
 
- 
getMemberVosGets all member organizations of the given vo.- Parameters:
- sess- session
- voId- vo id
- Returns:
- list of member vos
 
- 
getParentVosGets all organizations where given vo is direct member.- Parameters:
- sess- session
- memberVoId- member vo id
- Returns:
- list of direct parent vos
 
- 
getVoApplicationIdsReturn list of IDs of all applications, which belongs to VO.- Parameters:
- sess-
- vo-
- Returns:
- list of all vo applications ids
- Throws:
- InternalErrorException
 
- 
getVoByIdFinds existing VO by id.- Parameters:
- perunSession-
- id- id of the VO you are looking for
- Returns:
- found VO
- Throws:
- VoNotExistsException
- InternalErrorException
 
- 
getVoByShortNameFind existing VO by short name (short name is unique).- Parameters:
- perunSession-
- shortName-
- Returns:
- vo
- Throws:
- VoNotExistsException
- InternalErrorException
 
- 
getVosGet list of all Vos.- Parameters:
- perunSession-
- Returns:
- List of VOs
- Throws:
- InternalErrorException
 
- 
getVosByIdsGets VOs by their ids. Silently skips non-existing VOs.- Parameters:
- perunSession-
- ids-
- Returns:
- List of VOs with specified ids
- Throws:
- InternalErrorException
 
- 
getVosCountGet count of all vos.- Parameters:
- perunSession-
- Returns:
- count of all vos
- Throws:
- InternalErrorException
 
- 
hasEmbeddedGroupsItemInFormReturns true, if there is a vo with given id which has application form with the EMBEDDED_GROUP_APPLICATION item in it.- Parameters:
- sess- session
- voId- vo id
- Returns:
- true, if there is a vo with given id which has application form with the EMBEDDED_GROUP_APPLICATION item in it, false otherwise
 
- 
isMemberBannedInformation if there is a ban for member with given id.- Parameters:
- sess- session
- memberId- member id
- Returns:
- true, if member with given id is banned, false otherwise
 
- 
removeBanRemoves ban with given id.- Parameters:
- sess- session
- banId- ban id
- Throws:
- BanNotExistsException- if there is no ban with given id
 
- 
removeMemberVoRemoves member vo from given vo.- Parameters:
- sess- session
- vo- vo
- memberVo- vo to be removed
- Throws:
- RelationNotExistsException- if member vo is not a member of the vo
 
- 
searchForVosSimilarity substring search in all VOs based on shortname and description- Parameters:
- sess- session
- searchString- string to search for
- includeIDs- whether to search in IDs as well, used for PERUNADMINs
- Returns:
- list of matched vos
 
- 
searchForVosList<Vo> searchForVos(PerunSession sess, String searchString, Set<Integer> voIds, boolean includeIDs) Similarity substring search in provided VOs based on shortname and description- 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
 
- 
setBanSet given ban.- Parameters:
- sess- session
- banOnVo- ban information, memberId, voId, validity and description are needed
- Returns:
- created ban object
 
- 
updateBanUpdate ban information. Only description and validity are updated.- Parameters:
- sess- session
- banOnVo- updated ban
- Returns:
- updated ban object
 
- 
updateVoUpdates VO.- Parameters:
- perunSession-
- vo-
- Returns:
- returns updated VO
- Throws:
- InternalErrorException
 
- 
voExistsCheck if vo exists in underlaying data source.- Parameters:
- perunSession-
- vo-
- Returns:
- true if vo exists in underlaying data source, false otherwise
- Throws:
- InternalErrorException
 
 
-