Package cz.metacentrum.perun.core.api
Interface OwnersManager
- All Known Implementing Classes:
- OwnersManagerEntry
Deprecated.
OwnersManager
- Author:
- Slavek Licehammer
- 
Method SummaryModifier and TypeMethodDescriptioncreateOwner(PerunSession perunSession, Owner owner) Deprecated.Create owner in the underlaying data sourcevoiddeleteOwner(PerunSession perunSession, Owner owner) Deprecated.Delete owner from underlaying data source.voiddeleteOwner(PerunSession perunSession, Owner owner, boolean forceDelete) Deprecated.Delete owner from underlaying data source.voiddeleteOwners(PerunSession sess, List<Owner> owners, boolean forceDelete) Deprecated.Delete owners from underlaying data source.getOwnerById(PerunSession perunSession, int id) Deprecated.Find owner by id.getOwnerByName(PerunSession perunSession, String name) Deprecated.Find owner by name.getOwners(PerunSession perunSession) Deprecated.Return all owners.
- 
Method Details- 
createOwnerDeprecated.Create owner in the underlaying data source- Parameters:
- perunSession-
- owner-
- Returns:
- owner with id set
- Throws:
- InternalErrorException
- PrivilegeException
 
- 
deleteOwnervoid deleteOwner(PerunSession perunSession, Owner owner) throws OwnerNotExistsException, PrivilegeException, RelationExistsException, OwnerAlreadyRemovedException Deprecated.Delete owner from underlaying data source.- Parameters:
- perunSession-
- owner-
- Throws:
- OwnerNotExistsException
- InternalErrorException
- PrivilegeException
- RelationExistsException
- OwnerAlreadyRemovedException- if there are 0 rows affected by deleting from DB
 
- 
deleteOwnervoid deleteOwner(PerunSession perunSession, Owner owner, boolean forceDelete) throws OwnerNotExistsException, PrivilegeException, RelationExistsException, OwnerAlreadyRemovedException Deprecated.Delete owner from underlaying data source.- Parameters:
- perunSession-
- owner-
- forceDelete-
- Throws:
- OwnerNotExistsException
- InternalErrorException
- PrivilegeException
- RelationExistsException
- OwnerAlreadyRemovedException- if there are 0 rows affected by deleting from DB
 
- 
deleteOwnersvoid deleteOwners(PerunSession sess, List<Owner> owners, boolean forceDelete) throws OwnerNotExistsException, PrivilegeException, RelationExistsException, OwnerAlreadyRemovedException Deprecated.Delete owners from underlaying data source.- Parameters:
- sess- perun session
- owners- list of owners
- forceDelete-
- Throws:
- OwnerNotExistsException
- InternalErrorException
- PrivilegeException
- RelationExistsException
- OwnerAlreadyRemovedException- if there are 0 rows affected by deleting from DB
 
- 
getOwnerByIdOwner getOwnerById(PerunSession perunSession, int id) throws OwnerNotExistsException, PrivilegeException Deprecated.Find owner by id.- Parameters:
- perunSession-
- id-
- Returns:
- Owner with specified id
- Throws:
- OwnerNotExistsException
- InternalErrorException
- PrivilegeException
 
- 
getOwnerByNameOwner getOwnerByName(PerunSession perunSession, String name) throws OwnerNotExistsException, PrivilegeException Deprecated.Find owner by name.- Parameters:
- perunSession- perun session
- name- name of the owner
- Returns:
- Owner with specified name
- Throws:
- OwnerNotExistsException- if owner with given name does not exist
- PrivilegeException- if user does not have sufficient permissions
 
- 
getOwnersDeprecated.Return all owners.- Parameters:
- perunSession-
- Returns:
- list of owners
- Throws:
- InternalErrorException
- PrivilegeException
 
 
-