|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Transactional public interface PersonManager
A manager of persons. Provides methods to create, retrieve, delete or update persons
| Method Summary | |
|---|---|
java.lang.String |
createPerson(PersonTO personTO)
Add a new person in registry. |
java.util.List<PersonTO> |
getAllPersons(RequestOptionsTO requestOptionsTO)
Return the list of all persons in the registry |
PersonTO |
getPerson(java.lang.String personId)
Retrieve the person matching the given ID |
java.util.List<PersonTO> |
getPersonsByOrgAndPost(java.lang.String organizationId,
java.lang.String postId,
RequestOptionsTO optionsTO)
Retrieve the list of persons that are assigned to the given post in the given organization unit |
java.util.List<PersonTO> |
getPersonsByOrganization(java.lang.String organizationId,
RequestOptionsTO requestOptionsTO)
Retrieve the list of persons that are parts of the given organization unit |
java.util.List<PersonTO> |
getPersonsByPost(java.lang.String postId,
RequestOptionsTO requestOptionsTO)
Retrieve the list of persons that are assigned to the given post |
void |
removePerson(java.lang.String personId)
Remove the person matching the given id from the registry |
java.util.List<PersonTO> |
searchPersons(java.lang.String searchCriteria,
java.util.List<PersonSearchProperties> searchedProperties,
RequestOptionsTO iOptions)
Retrieve a list of persons matching the given criteria for the given properties |
java.lang.String |
updatePerson(PersonTO personTO)
Update the person in the registry |
| Method Detail |
|---|
java.lang.String createPerson(PersonTO personTO)
throws OrganizationException
personTO - the PersonTO handling data of the Person to
add
Person
OrganizationException - if you try to create a person with firstname/lastname/email
that already exists or a person without firstname, lastname
and email@Transactional(readOnly=true) java.util.List<PersonTO> getAllPersons(RequestOptionsTO requestOptionsTO)
requestOptionsTO - sort, pagination and case sensitive parameters, could be null
List of all PersonTO handling Person
data in the registry, couldn't be null, can be empty
@Transactional(readOnly=true)
PersonTO getPerson(java.lang.String personId)
throws OrganizationException
personId - a Person id
PersonTO handling data of the Person matching
the given id
OrganizationException - if no person found for the given id
java.util.List<PersonTO> getPersonsByOrgAndPost(java.lang.String organizationId,
java.lang.String postId,
RequestOptionsTO optionsTO)
organizationId - an OrganizationUnit idpostId - a Post idoptionsTO - sort, pagination and case sensitive parameters, could be null
List of PersonTOs that are assigned to the
given post in the given organization unit
@Transactional(readOnly=true)
java.util.List<PersonTO> getPersonsByOrganization(java.lang.String organizationId,
RequestOptionsTO requestOptionsTO)
throws OrganizationException
organizationId - an OrganizationUnit idrequestOptionsTO - sort, pagination and case sensitive parameters, could be null
List of PersonTOs that are parts of the given
OrganizationUnit
OrganizationException - if an error occurs during persons retrieval
@Transactional(readOnly=true)
java.util.List<PersonTO> getPersonsByPost(java.lang.String postId,
RequestOptionsTO requestOptionsTO)
throws OrganizationException
postId - a Post idrequestOptionsTO - sort, pagination and case sensitive parameters, could be null
List of PersonTOs that are assigned to the
given Post
OrganizationException - if an error occurs during persons retrievalvoid removePerson(java.lang.String personId)
personId - a Person id
@Transactional(readOnly=true)
java.util.List<PersonTO> searchPersons(java.lang.String searchCriteria,
java.util.List<PersonSearchProperties> searchedProperties,
RequestOptionsTO iOptions)
throws OrganizationException
searchCriteria - the search criteria (a String containing criteria separated
with whitespaces)searchedProperties - the searched propertiesiOptions - sort, pagination and case sensitive parameters, could be null
List of PersonTO matching the given criteria
for the given properties
OrganizationException - if an error occurs during persons retrieval
java.lang.String updatePerson(PersonTO personTO)
throws OrganizationException
personTO - the PersonTO handling information of the
Person to update
Person id
OrganizationException - if an error occurs during person update
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||