|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.dragon.service.organization.PersonManagerImpl
public class PersonManagerImpl
| Constructor Summary | |
|---|---|
PersonManagerImpl()
|
|
| 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 |
GenericUnifiedDAO<Person,java.lang.String> |
getPersonUnifiedDAO()
|
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 options)
Retrieve a list of persons matching the given criteria for the given properties |
void |
setPersonDAO(PersonDAO personDAO)
|
void |
setPersonUnifiedDAO(GenericUnifiedDAO<Person,java.lang.String> personUnifiedDAO)
|
void |
setTransfertObjectAssembler(TransfertObjectAssembler transfertObjectAssembler)
|
java.lang.String |
updatePerson(PersonTO personTO)
Update the person in the registry |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PersonManagerImpl()
| Method Detail |
|---|
public java.lang.String createPerson(PersonTO personTO)
throws OrganizationException
PersonManager
createPerson in interface PersonManagerpersonTO - 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 emailpublic java.util.List<PersonTO> getAllPersons(RequestOptionsTO requestOptionsTO)
PersonManager
getAllPersons in interface PersonManagerrequestOptionsTO - 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
public PersonTO getPerson(java.lang.String personId)
throws OrganizationException
PersonManager
getPerson in interface PersonManagerpersonId - a Person id
PersonTO handling data of the Person matching
the given id
OrganizationException - if no person found for the given idpublic GenericUnifiedDAO<Person,java.lang.String> getPersonUnifiedDAO()
public java.util.List<PersonTO> getPersonsByOrgAndPost(java.lang.String organizationId,
java.lang.String postId,
RequestOptionsTO optionsTO)
PersonManager
getPersonsByOrgAndPost in interface PersonManagerorganizationId - 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
public java.util.List<PersonTO> getPersonsByOrganization(java.lang.String organizationId,
RequestOptionsTO requestOptionsTO)
throws OrganizationException
PersonManager
getPersonsByOrganization in interface PersonManagerorganizationId - 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
public java.util.List<PersonTO> getPersonsByPost(java.lang.String postId,
RequestOptionsTO requestOptionsTO)
throws OrganizationException
PersonManager
getPersonsByPost in interface PersonManagerpostId - 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 retrievalpublic void removePerson(java.lang.String personId)
PersonManager
removePerson in interface PersonManagerpersonId - a Person id
public java.util.List<PersonTO> searchPersons(java.lang.String searchCriteria,
java.util.List<PersonSearchProperties> searchedProperties,
RequestOptionsTO options)
throws OrganizationException
PersonManager
searchPersons in interface PersonManagersearchCriteria - the search criteria (a String containing criteria separated
with whitespaces)searchedProperties - the searched propertiesoptions - 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 retrievalpublic void setPersonUnifiedDAO(GenericUnifiedDAO<Person,java.lang.String> personUnifiedDAO)
public void setTransfertObjectAssembler(TransfertObjectAssembler transfertObjectAssembler)
public java.lang.String updatePerson(PersonTO personTO)
throws OrganizationException
PersonManager
updatePerson in interface PersonManagerpersonTO - the PersonTO handling information of the
Person to update
Person id
OrganizationException - if an error occurs during person updatepublic void setPersonDAO(PersonDAO personDAO)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||