Package cz.metacentrum.perun.core.api
Interface OwnersManager
- All Known Implementing Classes:
OwnersManagerEntry
Deprecated.
OwnersManager
- Author:
- Slavek Licehammer
-
Method Summary
Modifier 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
-
createOwner
Deprecated.Create owner in the underlaying data source- Parameters:
perunSession-owner-- Returns:
- owner with id set
- Throws:
InternalErrorExceptionPrivilegeException
-
deleteOwner
void deleteOwner(PerunSession perunSession, Owner owner) throws OwnerNotExistsException, PrivilegeException, RelationExistsException, OwnerAlreadyRemovedException Deprecated.Delete owner from underlaying data source.- Parameters:
perunSession-owner-- Throws:
OwnerNotExistsExceptionInternalErrorExceptionPrivilegeExceptionRelationExistsExceptionOwnerAlreadyRemovedException- if there are 0 rows affected by deleting from DB
-
deleteOwner
void deleteOwner(PerunSession perunSession, Owner owner, boolean forceDelete) throws OwnerNotExistsException, PrivilegeException, RelationExistsException, OwnerAlreadyRemovedException Deprecated.Delete owner from underlaying data source.- Parameters:
perunSession-owner-forceDelete-- Throws:
OwnerNotExistsExceptionInternalErrorExceptionPrivilegeExceptionRelationExistsExceptionOwnerAlreadyRemovedException- if there are 0 rows affected by deleting from DB
-
deleteOwners
void deleteOwners(PerunSession sess, List<Owner> owners, boolean forceDelete) throws OwnerNotExistsException, PrivilegeException, RelationExistsException, OwnerAlreadyRemovedException Deprecated.Delete owners from underlaying data source.- Parameters:
sess- perun sessionowners- list of ownersforceDelete-- Throws:
OwnerNotExistsExceptionInternalErrorExceptionPrivilegeExceptionRelationExistsExceptionOwnerAlreadyRemovedException- if there are 0 rows affected by deleting from DB
-
getOwnerById
Owner getOwnerById(PerunSession perunSession, int id) throws OwnerNotExistsException, PrivilegeException Deprecated.Find owner by id.- Parameters:
perunSession-id-- Returns:
- Owner with specified id
- Throws:
OwnerNotExistsExceptionInternalErrorExceptionPrivilegeException
-
getOwnerByName
Owner getOwnerByName(PerunSession perunSession, String name) throws OwnerNotExistsException, PrivilegeException Deprecated.Find owner by name.- Parameters:
perunSession- perun sessionname- name of the owner- Returns:
- Owner with specified name
- Throws:
OwnerNotExistsException- if owner with given name does not existPrivilegeException- if user does not have sufficient permissions
-
getOwners
Deprecated.Return all owners.- Parameters:
perunSession-- Returns:
- list of owners
- Throws:
InternalErrorExceptionPrivilegeException
-