fr.ifremer.allegro.administration.user.generic.service
Class RemotePersonFullServiceBase

java.lang.Object
  extended by fr.ifremer.allegro.administration.user.generic.service.RemotePersonFullServiceBase
All Implemented Interfaces:
RemotePersonFullService
Direct Known Subclasses:
RemotePersonFullServiceImpl

public abstract class RemotePersonFullServiceBase
extends java.lang.Object
implements RemotePersonFullService

Spring Service base class for fr.ifremer.allegro.administration.user.generic.service.RemotePersonFullService, provides access to all services and entities referenced by this service.

See Also:
RemotePersonFullService

Constructor Summary
RemotePersonFullServiceBase()
           
 
Method Summary
 ClusterPerson addOrUpdateClusterPerson(ClusterPerson clusterPerson)
           
 RemotePersonFullVO addPerson(RemotePersonFullVO person)
           
protected  AgeReaderQualificationDao getAgeReaderQualificationDao()
          Gets the reference to ageReaderQualification's DAO.
 ClusterPerson[] getAllClusterPersonSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
 RemotePersonFullVO[] getAllPerson()
           
 ClusterPerson getClusterPersonByIdentifiers(java.lang.Integer id)
           
protected  DepartmentDao getDepartmentDao()
          Gets the reference to department's DAO.
protected  java.lang.String getMessage(java.lang.String key)
          Gets the message having the given key in the underlying message bundle.
protected  java.lang.String getMessage(java.lang.String key, java.lang.Object[] arguments)
          Gets the message having the given key and arguments in the underlying message bundle.
protected  java.lang.String getMessage(java.lang.String key, java.lang.Object[] arguments, java.util.Locale locale)
          Gets the message having the given key using the given arguments for the given locale.
protected  org.springframework.context.MessageSource getMessages()
          Gets the message source available to this service.
 RemotePersonFullVO[] getPersonByDepartmentId(java.lang.Integer id)
           
 RemotePersonFullVO getPersonById(java.lang.Integer id)
           
 RemotePersonFullVO[] getPersonByIds(java.lang.Integer[] id)
           
 RemotePersonFullVO getPersonByNaturalId(RemotePersonNaturalId personNaturalId)
           
 RemotePersonFullVO[] getPersonByStatusCode(java.lang.String code)
           
protected  PersonDao getPersonDao()
          Gets the reference to person's DAO.
 RemotePersonNaturalId getPersonNaturalIdById(java.lang.Integer id)
           
 RemotePersonNaturalId[] getPersonNaturalIds()
           
protected  java.security.Principal getPrincipal()
          Gets the current principal if one has been set, otherwise returns null.
protected  Program2PersonDao getProgram2PersonDao()
          Gets the reference to program2Person's DAO.
protected  StatusDao getStatusDao()
          Gets the reference to status's DAO.
protected abstract  ClusterPerson handleAddOrUpdateClusterPerson(ClusterPerson clusterPerson)
          Performs the core logic for addOrUpdateClusterPerson(fr.ifremer.allegro.administration.user.generic.cluster.ClusterPerson)
protected abstract  RemotePersonFullVO handleAddPerson(RemotePersonFullVO person)
          Performs the core logic for addPerson(fr.ifremer.allegro.administration.user.generic.vo.RemotePersonFullVO)
protected abstract  ClusterPerson[] handleGetAllClusterPersonSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
          Performs the core logic for getAllClusterPersonSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
protected abstract  RemotePersonFullVO[] handleGetAllPerson()
          Performs the core logic for getAllPerson()
protected abstract  ClusterPerson handleGetClusterPersonByIdentifiers(java.lang.Integer id)
          Performs the core logic for getClusterPersonByIdentifiers(java.lang.Integer)
protected abstract  RemotePersonFullVO[] handleGetPersonByDepartmentId(java.lang.Integer id)
          Performs the core logic for getPersonByDepartmentId(java.lang.Integer)
protected abstract  RemotePersonFullVO handleGetPersonById(java.lang.Integer id)
          Performs the core logic for getPersonById(java.lang.Integer)
protected abstract  RemotePersonFullVO[] handleGetPersonByIds(java.lang.Integer[] id)
          Performs the core logic for getPersonByIds(java.lang.Integer[])
protected abstract  RemotePersonFullVO handleGetPersonByNaturalId(RemotePersonNaturalId personNaturalId)
          Performs the core logic for getPersonByNaturalId(fr.ifremer.allegro.administration.user.generic.vo.RemotePersonNaturalId)
protected abstract  RemotePersonFullVO[] handleGetPersonByStatusCode(java.lang.String code)
          Performs the core logic for getPersonByStatusCode(java.lang.String)
protected abstract  RemotePersonNaturalId handleGetPersonNaturalIdById(java.lang.Integer id)
          Performs the core logic for getPersonNaturalIdById(java.lang.Integer)
protected abstract  RemotePersonNaturalId[] handleGetPersonNaturalIds()
          Performs the core logic for getPersonNaturalIds()
protected abstract  boolean handleRemotePersonFullVOsAreEqual(RemotePersonFullVO remotePersonFullVOFirst, RemotePersonFullVO remotePersonFullVOSecond)
          Performs the core logic for remotePersonFullVOsAreEqual(fr.ifremer.allegro.administration.user.generic.vo.RemotePersonFullVO, fr.ifremer.allegro.administration.user.generic.vo.RemotePersonFullVO)
protected abstract  boolean handleRemotePersonFullVOsAreEqualOnIdentifiers(RemotePersonFullVO remotePersonFullVOFirst, RemotePersonFullVO remotePersonFullVOSecond)
          Performs the core logic for remotePersonFullVOsAreEqualOnIdentifiers(fr.ifremer.allegro.administration.user.generic.vo.RemotePersonFullVO, fr.ifremer.allegro.administration.user.generic.vo.RemotePersonFullVO)
protected abstract  void handleRemovePerson(RemotePersonFullVO person)
          Performs the core logic for removePerson(fr.ifremer.allegro.administration.user.generic.vo.RemotePersonFullVO)
protected abstract  void handleUpdatePerson(RemotePersonFullVO person)
          Performs the core logic for updatePerson(fr.ifremer.allegro.administration.user.generic.vo.RemotePersonFullVO)
 boolean remotePersonFullVOsAreEqual(RemotePersonFullVO remotePersonFullVOFirst, RemotePersonFullVO remotePersonFullVOSecond)
           
 boolean remotePersonFullVOsAreEqualOnIdentifiers(RemotePersonFullVO remotePersonFullVOFirst, RemotePersonFullVO remotePersonFullVOSecond)
           
 void removePerson(RemotePersonFullVO person)
           
 void setAgeReaderQualificationDao(AgeReaderQualificationDao ageReaderQualificationDao)
          Sets the reference to ageReaderQualification's DAO.
 void setDepartmentDao(DepartmentDao departmentDao)
          Sets the reference to department's DAO.
 void setPersonDao(PersonDao personDao)
          Sets the reference to person's DAO.
 void setProgram2PersonDao(Program2PersonDao program2PersonDao)
          Sets the reference to program2Person's DAO.
 void setStatusDao(StatusDao statusDao)
          Sets the reference to status's DAO.
 void updatePerson(RemotePersonFullVO person)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemotePersonFullServiceBase

public RemotePersonFullServiceBase()
Method Detail

setPersonDao

public void setPersonDao(PersonDao personDao)
Sets the reference to person's DAO.


getPersonDao

protected PersonDao getPersonDao()
Gets the reference to person's DAO.


setStatusDao

public void setStatusDao(StatusDao statusDao)
Sets the reference to status's DAO.


getStatusDao

protected StatusDao getStatusDao()
Gets the reference to status's DAO.


setDepartmentDao

public void setDepartmentDao(DepartmentDao departmentDao)
Sets the reference to department's DAO.


getDepartmentDao

protected DepartmentDao getDepartmentDao()
Gets the reference to department's DAO.


setAgeReaderQualificationDao

public void setAgeReaderQualificationDao(AgeReaderQualificationDao ageReaderQualificationDao)
Sets the reference to ageReaderQualification's DAO.


getAgeReaderQualificationDao

protected AgeReaderQualificationDao getAgeReaderQualificationDao()
Gets the reference to ageReaderQualification's DAO.


setProgram2PersonDao

public void setProgram2PersonDao(Program2PersonDao program2PersonDao)
Sets the reference to program2Person's DAO.


getProgram2PersonDao

protected Program2PersonDao getProgram2PersonDao()
Gets the reference to program2Person's DAO.


addPerson

public RemotePersonFullVO addPerson(RemotePersonFullVO person)
Specified by:
addPerson in interface RemotePersonFullService
See Also:
RemotePersonFullService.addPerson(fr.ifremer.allegro.administration.user.generic.vo.RemotePersonFullVO)

handleAddPerson

protected abstract RemotePersonFullVO handleAddPerson(RemotePersonFullVO person)
                                               throws java.lang.Exception
Performs the core logic for addPerson(fr.ifremer.allegro.administration.user.generic.vo.RemotePersonFullVO)

Throws:
java.lang.Exception

updatePerson

public void updatePerson(RemotePersonFullVO person)
Specified by:
updatePerson in interface RemotePersonFullService
See Also:
RemotePersonFullService.updatePerson(fr.ifremer.allegro.administration.user.generic.vo.RemotePersonFullVO)

handleUpdatePerson

protected abstract void handleUpdatePerson(RemotePersonFullVO person)
                                    throws java.lang.Exception
Performs the core logic for updatePerson(fr.ifremer.allegro.administration.user.generic.vo.RemotePersonFullVO)

Throws:
java.lang.Exception

removePerson

public void removePerson(RemotePersonFullVO person)
Specified by:
removePerson in interface RemotePersonFullService
See Also:
RemotePersonFullService.removePerson(fr.ifremer.allegro.administration.user.generic.vo.RemotePersonFullVO)

handleRemovePerson

protected abstract void handleRemovePerson(RemotePersonFullVO person)
                                    throws java.lang.Exception
Performs the core logic for removePerson(fr.ifremer.allegro.administration.user.generic.vo.RemotePersonFullVO)

Throws:
java.lang.Exception

getAllPerson

public RemotePersonFullVO[] getAllPerson()
Specified by:
getAllPerson in interface RemotePersonFullService
See Also:
RemotePersonFullService.getAllPerson()

handleGetAllPerson

protected abstract RemotePersonFullVO[] handleGetAllPerson()
                                                    throws java.lang.Exception
Performs the core logic for getAllPerson()

Throws:
java.lang.Exception

getPersonById

public RemotePersonFullVO getPersonById(java.lang.Integer id)
Specified by:
getPersonById in interface RemotePersonFullService
See Also:
RemotePersonFullService.getPersonById(java.lang.Integer)

handleGetPersonById

protected abstract RemotePersonFullVO handleGetPersonById(java.lang.Integer id)
                                                   throws java.lang.Exception
Performs the core logic for getPersonById(java.lang.Integer)

Throws:
java.lang.Exception

getPersonByIds

public RemotePersonFullVO[] getPersonByIds(java.lang.Integer[] id)
Specified by:
getPersonByIds in interface RemotePersonFullService
See Also:
RemotePersonFullService.getPersonByIds(java.lang.Integer[])

handleGetPersonByIds

protected abstract RemotePersonFullVO[] handleGetPersonByIds(java.lang.Integer[] id)
                                                      throws java.lang.Exception
Performs the core logic for getPersonByIds(java.lang.Integer[])

Throws:
java.lang.Exception

getPersonByStatusCode

public RemotePersonFullVO[] getPersonByStatusCode(java.lang.String code)
Specified by:
getPersonByStatusCode in interface RemotePersonFullService
See Also:
RemotePersonFullService.getPersonByStatusCode(java.lang.String)

handleGetPersonByStatusCode

protected abstract RemotePersonFullVO[] handleGetPersonByStatusCode(java.lang.String code)
                                                             throws java.lang.Exception
Performs the core logic for getPersonByStatusCode(java.lang.String)

Throws:
java.lang.Exception

getPersonByDepartmentId

public RemotePersonFullVO[] getPersonByDepartmentId(java.lang.Integer id)
Specified by:
getPersonByDepartmentId in interface RemotePersonFullService
See Also:
RemotePersonFullService.getPersonByDepartmentId(java.lang.Integer)

handleGetPersonByDepartmentId

protected abstract RemotePersonFullVO[] handleGetPersonByDepartmentId(java.lang.Integer id)
                                                               throws java.lang.Exception
Performs the core logic for getPersonByDepartmentId(java.lang.Integer)

Throws:
java.lang.Exception

remotePersonFullVOsAreEqualOnIdentifiers

public boolean remotePersonFullVOsAreEqualOnIdentifiers(RemotePersonFullVO remotePersonFullVOFirst,
                                                        RemotePersonFullVO remotePersonFullVOSecond)
Specified by:
remotePersonFullVOsAreEqualOnIdentifiers in interface RemotePersonFullService
See Also:
RemotePersonFullService.remotePersonFullVOsAreEqualOnIdentifiers(fr.ifremer.allegro.administration.user.generic.vo.RemotePersonFullVO, fr.ifremer.allegro.administration.user.generic.vo.RemotePersonFullVO)

handleRemotePersonFullVOsAreEqualOnIdentifiers

protected abstract boolean handleRemotePersonFullVOsAreEqualOnIdentifiers(RemotePersonFullVO remotePersonFullVOFirst,
                                                                          RemotePersonFullVO remotePersonFullVOSecond)
                                                                   throws java.lang.Exception
Performs the core logic for remotePersonFullVOsAreEqualOnIdentifiers(fr.ifremer.allegro.administration.user.generic.vo.RemotePersonFullVO, fr.ifremer.allegro.administration.user.generic.vo.RemotePersonFullVO)

Throws:
java.lang.Exception

remotePersonFullVOsAreEqual

public boolean remotePersonFullVOsAreEqual(RemotePersonFullVO remotePersonFullVOFirst,
                                           RemotePersonFullVO remotePersonFullVOSecond)
Specified by:
remotePersonFullVOsAreEqual in interface RemotePersonFullService
See Also:
RemotePersonFullService.remotePersonFullVOsAreEqual(fr.ifremer.allegro.administration.user.generic.vo.RemotePersonFullVO, fr.ifremer.allegro.administration.user.generic.vo.RemotePersonFullVO)

handleRemotePersonFullVOsAreEqual

protected abstract boolean handleRemotePersonFullVOsAreEqual(RemotePersonFullVO remotePersonFullVOFirst,
                                                             RemotePersonFullVO remotePersonFullVOSecond)
                                                      throws java.lang.Exception
Performs the core logic for remotePersonFullVOsAreEqual(fr.ifremer.allegro.administration.user.generic.vo.RemotePersonFullVO, fr.ifremer.allegro.administration.user.generic.vo.RemotePersonFullVO)

Throws:
java.lang.Exception

getPersonNaturalIds

public RemotePersonNaturalId[] getPersonNaturalIds()
Specified by:
getPersonNaturalIds in interface RemotePersonFullService
See Also:
RemotePersonFullService.getPersonNaturalIds()

handleGetPersonNaturalIds

protected abstract RemotePersonNaturalId[] handleGetPersonNaturalIds()
                                                              throws java.lang.Exception
Performs the core logic for getPersonNaturalIds()

Throws:
java.lang.Exception

getPersonByNaturalId

public RemotePersonFullVO getPersonByNaturalId(RemotePersonNaturalId personNaturalId)
Specified by:
getPersonByNaturalId in interface RemotePersonFullService
See Also:
RemotePersonFullService.getPersonByNaturalId(fr.ifremer.allegro.administration.user.generic.vo.RemotePersonNaturalId)

handleGetPersonByNaturalId

protected abstract RemotePersonFullVO handleGetPersonByNaturalId(RemotePersonNaturalId personNaturalId)
                                                          throws java.lang.Exception
Performs the core logic for getPersonByNaturalId(fr.ifremer.allegro.administration.user.generic.vo.RemotePersonNaturalId)

Throws:
java.lang.Exception

getPersonNaturalIdById

public RemotePersonNaturalId getPersonNaturalIdById(java.lang.Integer id)
Specified by:
getPersonNaturalIdById in interface RemotePersonFullService
See Also:
RemotePersonFullService.getPersonNaturalIdById(java.lang.Integer)

handleGetPersonNaturalIdById

protected abstract RemotePersonNaturalId handleGetPersonNaturalIdById(java.lang.Integer id)
                                                               throws java.lang.Exception
Performs the core logic for getPersonNaturalIdById(java.lang.Integer)

Throws:
java.lang.Exception

addOrUpdateClusterPerson

public ClusterPerson addOrUpdateClusterPerson(ClusterPerson clusterPerson)
Specified by:
addOrUpdateClusterPerson in interface RemotePersonFullService
See Also:
RemotePersonFullService.addOrUpdateClusterPerson(fr.ifremer.allegro.administration.user.generic.cluster.ClusterPerson)

handleAddOrUpdateClusterPerson

protected abstract ClusterPerson handleAddOrUpdateClusterPerson(ClusterPerson clusterPerson)
                                                         throws java.lang.Exception
Performs the core logic for addOrUpdateClusterPerson(fr.ifremer.allegro.administration.user.generic.cluster.ClusterPerson)

Throws:
java.lang.Exception

getAllClusterPersonSinceDateSynchro

public ClusterPerson[] getAllClusterPersonSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp,
                                                           java.lang.Integer userId,
                                                           java.lang.Integer[] registrationLocationIds,
                                                           java.lang.Integer pageNumber,
                                                           java.lang.Integer pageSize)
Specified by:
getAllClusterPersonSinceDateSynchro in interface RemotePersonFullService
See Also:
RemotePersonFullService.getAllClusterPersonSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

handleGetAllClusterPersonSinceDateSynchro

protected abstract ClusterPerson[] handleGetAllClusterPersonSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp,
                                                                             java.lang.Integer userId,
                                                                             java.lang.Integer[] registrationLocationIds,
                                                                             java.lang.Integer pageNumber,
                                                                             java.lang.Integer pageSize)
                                                                      throws java.lang.Exception
Performs the core logic for getAllClusterPersonSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

Throws:
java.lang.Exception

getClusterPersonByIdentifiers

public ClusterPerson getClusterPersonByIdentifiers(java.lang.Integer id)
Specified by:
getClusterPersonByIdentifiers in interface RemotePersonFullService
See Also:
RemotePersonFullService.getClusterPersonByIdentifiers(java.lang.Integer)

handleGetClusterPersonByIdentifiers

protected abstract ClusterPerson handleGetClusterPersonByIdentifiers(java.lang.Integer id)
                                                              throws java.lang.Exception
Performs the core logic for getClusterPersonByIdentifiers(java.lang.Integer)

Throws:
java.lang.Exception

getPrincipal

protected java.security.Principal getPrincipal()
Gets the current principal if one has been set, otherwise returns null.

Returns:
the current principal

getMessages

protected org.springframework.context.MessageSource getMessages()
Gets the message source available to this service.


getMessage

protected java.lang.String getMessage(java.lang.String key)
Gets the message having the given key in the underlying message bundle.

Parameters:
key - the key of the message in the messages.properties message bundle.

getMessage

protected java.lang.String getMessage(java.lang.String key,
                                      java.lang.Object[] arguments)
Gets the message having the given key and arguments in the underlying message bundle.

Parameters:
key - the key of the message in the messages.properties message bundle.
arguments - any arguments to substitute when resolving the message.

getMessage

protected java.lang.String getMessage(java.lang.String key,
                                      java.lang.Object[] arguments,
                                      java.util.Locale locale)
Gets the message having the given key using the given arguments for the given locale.

Parameters:
key - the key of the message in the messages.properties message bundle.
arguments - any arguments to substitute when resolving the message.
locale - the locale of the messages to retrieve.


Copyright © 2008-2010 IFREMER. All Rights Reserved.