Interface OwnersManagerImplApi
- All Known Implementing Classes:
OwnersManagerImpl
public interface OwnersManagerImplApi
OwnersManager
- Author:
- Slavek Licehammer
-
Method Summary
Modifier and TypeMethodDescriptionvoid
checkOwnerExists
(PerunSession perunSession, Owner owner) Check if owner exists in underlaying data source.createOwner
(PerunSession perunSession, Owner owner) Create owner in the underlaying data sourcevoid
deleteOwner
(PerunSession perunSession, Owner owner) Delete owner from underlaying data source.getOwnerById
(PerunSession perunSession, int id) Find owner by id.getOwnerByName
(PerunSession perunSession, String name) Find owner by name.getOwners
(PerunSession perunSession) Return all owners.boolean
ownerExists
(PerunSession perunSession, Owner owner) Check if owner exists in underlaying data source.
-
Method Details
-
checkOwnerExists
Check if owner exists in underlaying data source.- Parameters:
perunSession
-owner
-- Throws:
InternalErrorException
OwnerNotExistsException
-
createOwner
Create owner in the underlaying data source- Parameters:
perunSession
-owner
-- Returns:
- owner with id set
- Throws:
InternalErrorException
-
deleteOwner
Delete owner from underlaying data source.- Parameters:
perunSession
-owner
-- Throws:
InternalErrorException
OwnerAlreadyRemovedException
- if there are 0 rows affected by deleting from DB
-
getOwnerById
Find owner by id.- Parameters:
perunSession
-id
-- Returns:
- Owner with specified id
- Throws:
OwnerNotExistsException
InternalErrorException
-
getOwnerByName
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 exist
-
getOwners
Return all owners.- Parameters:
perunSession
-- Returns:
- list of owners
- Throws:
InternalErrorException
-
ownerExists
Check if owner exists in underlaying data source.- Parameters:
perunSession
-owner
-- Returns:
- true if owner exists in underlaying data source, false othewise
- Throws:
InternalErrorException
-