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

java.lang.Object
  extended by fr.ifremer.allegro.administration.user.generic.service.RemoteDepartmentFullServiceBase
All Implemented Interfaces:
RemoteDepartmentFullService
Direct Known Subclasses:
RemoteDepartmentFullServiceImpl

public abstract class RemoteDepartmentFullServiceBase
extends java.lang.Object
implements RemoteDepartmentFullService

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

See Also:
RemoteDepartmentFullService

Constructor Summary
RemoteDepartmentFullServiceBase()
           
 
Method Summary
 RemoteDepartmentFullVO addDepartment(RemoteDepartmentFullVO department)
           
 ClusterDepartment addOrUpdateClusterDepartment(ClusterDepartment clusterDepartment)
           
 ClusterDepartment[] getAllClusterDepartmentSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
 RemoteDepartmentFullVO[] getAllDepartment()
           
 ClusterDepartment getClusterDepartmentByIdentifiers(java.lang.Integer id)
           
 RemoteDepartmentFullVO getDepartmentById(java.lang.Integer id)
           
 RemoteDepartmentFullVO[] getDepartmentByIds(java.lang.Integer[] id)
           
 RemoteDepartmentFullVO getDepartmentByNaturalId(RemoteDepartmentNaturalId departmentNaturalId)
           
 RemoteDepartmentFullVO[] getDepartmentByParentDepartmentId(java.lang.Integer id)
           
 RemoteDepartmentFullVO[] getDepartmentByStatusCode(java.lang.String code)
           
protected  DepartmentDao getDepartmentDao()
          Gets the reference to department's DAO.
 RemoteDepartmentNaturalId getDepartmentNaturalIdById(java.lang.Integer id)
           
 RemoteDepartmentNaturalId[] getDepartmentNaturalIds()
           
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.
protected  java.security.Principal getPrincipal()
          Gets the current principal if one has been set, otherwise returns null.
protected  Program2DepartmentDao getProgram2DepartmentDao()
          Gets the reference to program2Department's DAO.
protected  StatusDao getStatusDao()
          Gets the reference to status's DAO.
protected abstract  RemoteDepartmentFullVO handleAddDepartment(RemoteDepartmentFullVO department)
          Performs the core logic for addDepartment(fr.ifremer.allegro.administration.user.generic.vo.RemoteDepartmentFullVO)
protected abstract  ClusterDepartment handleAddOrUpdateClusterDepartment(ClusterDepartment clusterDepartment)
          Performs the core logic for addOrUpdateClusterDepartment(fr.ifremer.allegro.administration.user.generic.cluster.ClusterDepartment)
protected abstract  ClusterDepartment[] handleGetAllClusterDepartmentSinceDateSynchro(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 getAllClusterDepartmentSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
protected abstract  RemoteDepartmentFullVO[] handleGetAllDepartment()
          Performs the core logic for getAllDepartment()
protected abstract  ClusterDepartment handleGetClusterDepartmentByIdentifiers(java.lang.Integer id)
          Performs the core logic for getClusterDepartmentByIdentifiers(java.lang.Integer)
protected abstract  RemoteDepartmentFullVO handleGetDepartmentById(java.lang.Integer id)
          Performs the core logic for getDepartmentById(java.lang.Integer)
protected abstract  RemoteDepartmentFullVO[] handleGetDepartmentByIds(java.lang.Integer[] id)
          Performs the core logic for getDepartmentByIds(java.lang.Integer[])
protected abstract  RemoteDepartmentFullVO handleGetDepartmentByNaturalId(RemoteDepartmentNaturalId departmentNaturalId)
          Performs the core logic for getDepartmentByNaturalId(fr.ifremer.allegro.administration.user.generic.vo.RemoteDepartmentNaturalId)
protected abstract  RemoteDepartmentFullVO[] handleGetDepartmentByParentDepartmentId(java.lang.Integer id)
          Performs the core logic for getDepartmentByParentDepartmentId(java.lang.Integer)
protected abstract  RemoteDepartmentFullVO[] handleGetDepartmentByStatusCode(java.lang.String code)
          Performs the core logic for getDepartmentByStatusCode(java.lang.String)
protected abstract  RemoteDepartmentNaturalId handleGetDepartmentNaturalIdById(java.lang.Integer id)
          Performs the core logic for getDepartmentNaturalIdById(java.lang.Integer)
protected abstract  RemoteDepartmentNaturalId[] handleGetDepartmentNaturalIds()
          Performs the core logic for getDepartmentNaturalIds()
protected abstract  boolean handleRemoteDepartmentFullVOsAreEqual(RemoteDepartmentFullVO remoteDepartmentFullVOFirst, RemoteDepartmentFullVO remoteDepartmentFullVOSecond)
          Performs the core logic for remoteDepartmentFullVOsAreEqual(fr.ifremer.allegro.administration.user.generic.vo.RemoteDepartmentFullVO, fr.ifremer.allegro.administration.user.generic.vo.RemoteDepartmentFullVO)
protected abstract  boolean handleRemoteDepartmentFullVOsAreEqualOnIdentifiers(RemoteDepartmentFullVO remoteDepartmentFullVOFirst, RemoteDepartmentFullVO remoteDepartmentFullVOSecond)
          Performs the core logic for remoteDepartmentFullVOsAreEqualOnIdentifiers(fr.ifremer.allegro.administration.user.generic.vo.RemoteDepartmentFullVO, fr.ifremer.allegro.administration.user.generic.vo.RemoteDepartmentFullVO)
protected abstract  void handleRemoveDepartment(RemoteDepartmentFullVO department)
          Performs the core logic for removeDepartment(fr.ifremer.allegro.administration.user.generic.vo.RemoteDepartmentFullVO)
protected abstract  void handleUpdateDepartment(RemoteDepartmentFullVO department)
          Performs the core logic for updateDepartment(fr.ifremer.allegro.administration.user.generic.vo.RemoteDepartmentFullVO)
 boolean remoteDepartmentFullVOsAreEqual(RemoteDepartmentFullVO remoteDepartmentFullVOFirst, RemoteDepartmentFullVO remoteDepartmentFullVOSecond)
           
 boolean remoteDepartmentFullVOsAreEqualOnIdentifiers(RemoteDepartmentFullVO remoteDepartmentFullVOFirst, RemoteDepartmentFullVO remoteDepartmentFullVOSecond)
           
 void removeDepartment(RemoteDepartmentFullVO department)
           
 void setDepartmentDao(DepartmentDao departmentDao)
          Sets the reference to department's DAO.
 void setProgram2DepartmentDao(Program2DepartmentDao program2DepartmentDao)
          Sets the reference to program2Department's DAO.
 void setStatusDao(StatusDao statusDao)
          Sets the reference to status's DAO.
 void updateDepartment(RemoteDepartmentFullVO department)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteDepartmentFullServiceBase

public RemoteDepartmentFullServiceBase()
Method Detail

setDepartmentDao

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


getDepartmentDao

protected DepartmentDao getDepartmentDao()
Gets the reference to department'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.


setProgram2DepartmentDao

public void setProgram2DepartmentDao(Program2DepartmentDao program2DepartmentDao)
Sets the reference to program2Department's DAO.


getProgram2DepartmentDao

protected Program2DepartmentDao getProgram2DepartmentDao()
Gets the reference to program2Department's DAO.


addDepartment

public RemoteDepartmentFullVO addDepartment(RemoteDepartmentFullVO department)
Specified by:
addDepartment in interface RemoteDepartmentFullService
See Also:
RemoteDepartmentFullService.addDepartment(fr.ifremer.allegro.administration.user.generic.vo.RemoteDepartmentFullVO)

handleAddDepartment

protected abstract RemoteDepartmentFullVO handleAddDepartment(RemoteDepartmentFullVO department)
                                                       throws java.lang.Exception
Performs the core logic for addDepartment(fr.ifremer.allegro.administration.user.generic.vo.RemoteDepartmentFullVO)

Throws:
java.lang.Exception

updateDepartment

public void updateDepartment(RemoteDepartmentFullVO department)
Specified by:
updateDepartment in interface RemoteDepartmentFullService
See Also:
RemoteDepartmentFullService.updateDepartment(fr.ifremer.allegro.administration.user.generic.vo.RemoteDepartmentFullVO)

handleUpdateDepartment

protected abstract void handleUpdateDepartment(RemoteDepartmentFullVO department)
                                        throws java.lang.Exception
Performs the core logic for updateDepartment(fr.ifremer.allegro.administration.user.generic.vo.RemoteDepartmentFullVO)

Throws:
java.lang.Exception

removeDepartment

public void removeDepartment(RemoteDepartmentFullVO department)
Specified by:
removeDepartment in interface RemoteDepartmentFullService
See Also:
RemoteDepartmentFullService.removeDepartment(fr.ifremer.allegro.administration.user.generic.vo.RemoteDepartmentFullVO)

handleRemoveDepartment

protected abstract void handleRemoveDepartment(RemoteDepartmentFullVO department)
                                        throws java.lang.Exception
Performs the core logic for removeDepartment(fr.ifremer.allegro.administration.user.generic.vo.RemoteDepartmentFullVO)

Throws:
java.lang.Exception

getAllDepartment

public RemoteDepartmentFullVO[] getAllDepartment()
Specified by:
getAllDepartment in interface RemoteDepartmentFullService
See Also:
RemoteDepartmentFullService.getAllDepartment()

handleGetAllDepartment

protected abstract RemoteDepartmentFullVO[] handleGetAllDepartment()
                                                            throws java.lang.Exception
Performs the core logic for getAllDepartment()

Throws:
java.lang.Exception

getDepartmentById

public RemoteDepartmentFullVO getDepartmentById(java.lang.Integer id)
Specified by:
getDepartmentById in interface RemoteDepartmentFullService
See Also:
RemoteDepartmentFullService.getDepartmentById(java.lang.Integer)

handleGetDepartmentById

protected abstract RemoteDepartmentFullVO handleGetDepartmentById(java.lang.Integer id)
                                                           throws java.lang.Exception
Performs the core logic for getDepartmentById(java.lang.Integer)

Throws:
java.lang.Exception

getDepartmentByIds

public RemoteDepartmentFullVO[] getDepartmentByIds(java.lang.Integer[] id)
Specified by:
getDepartmentByIds in interface RemoteDepartmentFullService
See Also:
RemoteDepartmentFullService.getDepartmentByIds(java.lang.Integer[])

handleGetDepartmentByIds

protected abstract RemoteDepartmentFullVO[] handleGetDepartmentByIds(java.lang.Integer[] id)
                                                              throws java.lang.Exception
Performs the core logic for getDepartmentByIds(java.lang.Integer[])

Throws:
java.lang.Exception

getDepartmentByParentDepartmentId

public RemoteDepartmentFullVO[] getDepartmentByParentDepartmentId(java.lang.Integer id)
Specified by:
getDepartmentByParentDepartmentId in interface RemoteDepartmentFullService
See Also:
RemoteDepartmentFullService.getDepartmentByParentDepartmentId(java.lang.Integer)

handleGetDepartmentByParentDepartmentId

protected abstract RemoteDepartmentFullVO[] handleGetDepartmentByParentDepartmentId(java.lang.Integer id)
                                                                             throws java.lang.Exception
Performs the core logic for getDepartmentByParentDepartmentId(java.lang.Integer)

Throws:
java.lang.Exception

getDepartmentByStatusCode

public RemoteDepartmentFullVO[] getDepartmentByStatusCode(java.lang.String code)
Specified by:
getDepartmentByStatusCode in interface RemoteDepartmentFullService
See Also:
RemoteDepartmentFullService.getDepartmentByStatusCode(java.lang.String)

handleGetDepartmentByStatusCode

protected abstract RemoteDepartmentFullVO[] handleGetDepartmentByStatusCode(java.lang.String code)
                                                                     throws java.lang.Exception
Performs the core logic for getDepartmentByStatusCode(java.lang.String)

Throws:
java.lang.Exception

remoteDepartmentFullVOsAreEqualOnIdentifiers

public boolean remoteDepartmentFullVOsAreEqualOnIdentifiers(RemoteDepartmentFullVO remoteDepartmentFullVOFirst,
                                                            RemoteDepartmentFullVO remoteDepartmentFullVOSecond)
Specified by:
remoteDepartmentFullVOsAreEqualOnIdentifiers in interface RemoteDepartmentFullService
See Also:
RemoteDepartmentFullService.remoteDepartmentFullVOsAreEqualOnIdentifiers(fr.ifremer.allegro.administration.user.generic.vo.RemoteDepartmentFullVO, fr.ifremer.allegro.administration.user.generic.vo.RemoteDepartmentFullVO)

handleRemoteDepartmentFullVOsAreEqualOnIdentifiers

protected abstract boolean handleRemoteDepartmentFullVOsAreEqualOnIdentifiers(RemoteDepartmentFullVO remoteDepartmentFullVOFirst,
                                                                              RemoteDepartmentFullVO remoteDepartmentFullVOSecond)
                                                                       throws java.lang.Exception
Performs the core logic for remoteDepartmentFullVOsAreEqualOnIdentifiers(fr.ifremer.allegro.administration.user.generic.vo.RemoteDepartmentFullVO, fr.ifremer.allegro.administration.user.generic.vo.RemoteDepartmentFullVO)

Throws:
java.lang.Exception

remoteDepartmentFullVOsAreEqual

public boolean remoteDepartmentFullVOsAreEqual(RemoteDepartmentFullVO remoteDepartmentFullVOFirst,
                                               RemoteDepartmentFullVO remoteDepartmentFullVOSecond)
Specified by:
remoteDepartmentFullVOsAreEqual in interface RemoteDepartmentFullService
See Also:
RemoteDepartmentFullService.remoteDepartmentFullVOsAreEqual(fr.ifremer.allegro.administration.user.generic.vo.RemoteDepartmentFullVO, fr.ifremer.allegro.administration.user.generic.vo.RemoteDepartmentFullVO)

handleRemoteDepartmentFullVOsAreEqual

protected abstract boolean handleRemoteDepartmentFullVOsAreEqual(RemoteDepartmentFullVO remoteDepartmentFullVOFirst,
                                                                 RemoteDepartmentFullVO remoteDepartmentFullVOSecond)
                                                          throws java.lang.Exception
Performs the core logic for remoteDepartmentFullVOsAreEqual(fr.ifremer.allegro.administration.user.generic.vo.RemoteDepartmentFullVO, fr.ifremer.allegro.administration.user.generic.vo.RemoteDepartmentFullVO)

Throws:
java.lang.Exception

getDepartmentNaturalIds

public RemoteDepartmentNaturalId[] getDepartmentNaturalIds()
Specified by:
getDepartmentNaturalIds in interface RemoteDepartmentFullService
See Also:
RemoteDepartmentFullService.getDepartmentNaturalIds()

handleGetDepartmentNaturalIds

protected abstract RemoteDepartmentNaturalId[] handleGetDepartmentNaturalIds()
                                                                      throws java.lang.Exception
Performs the core logic for getDepartmentNaturalIds()

Throws:
java.lang.Exception

getDepartmentByNaturalId

public RemoteDepartmentFullVO getDepartmentByNaturalId(RemoteDepartmentNaturalId departmentNaturalId)
Specified by:
getDepartmentByNaturalId in interface RemoteDepartmentFullService
See Also:
RemoteDepartmentFullService.getDepartmentByNaturalId(fr.ifremer.allegro.administration.user.generic.vo.RemoteDepartmentNaturalId)

handleGetDepartmentByNaturalId

protected abstract RemoteDepartmentFullVO handleGetDepartmentByNaturalId(RemoteDepartmentNaturalId departmentNaturalId)
                                                                  throws java.lang.Exception
Performs the core logic for getDepartmentByNaturalId(fr.ifremer.allegro.administration.user.generic.vo.RemoteDepartmentNaturalId)

Throws:
java.lang.Exception

getDepartmentNaturalIdById

public RemoteDepartmentNaturalId getDepartmentNaturalIdById(java.lang.Integer id)
Specified by:
getDepartmentNaturalIdById in interface RemoteDepartmentFullService
See Also:
RemoteDepartmentFullService.getDepartmentNaturalIdById(java.lang.Integer)

handleGetDepartmentNaturalIdById

protected abstract RemoteDepartmentNaturalId handleGetDepartmentNaturalIdById(java.lang.Integer id)
                                                                       throws java.lang.Exception
Performs the core logic for getDepartmentNaturalIdById(java.lang.Integer)

Throws:
java.lang.Exception

addOrUpdateClusterDepartment

public ClusterDepartment addOrUpdateClusterDepartment(ClusterDepartment clusterDepartment)
Specified by:
addOrUpdateClusterDepartment in interface RemoteDepartmentFullService
See Also:
RemoteDepartmentFullService.addOrUpdateClusterDepartment(fr.ifremer.allegro.administration.user.generic.cluster.ClusterDepartment)

handleAddOrUpdateClusterDepartment

protected abstract ClusterDepartment handleAddOrUpdateClusterDepartment(ClusterDepartment clusterDepartment)
                                                                 throws java.lang.Exception
Performs the core logic for addOrUpdateClusterDepartment(fr.ifremer.allegro.administration.user.generic.cluster.ClusterDepartment)

Throws:
java.lang.Exception

getAllClusterDepartmentSinceDateSynchro

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

handleGetAllClusterDepartmentSinceDateSynchro

protected abstract ClusterDepartment[] handleGetAllClusterDepartmentSinceDateSynchro(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 getAllClusterDepartmentSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

Throws:
java.lang.Exception

getClusterDepartmentByIdentifiers

public ClusterDepartment getClusterDepartmentByIdentifiers(java.lang.Integer id)
Specified by:
getClusterDepartmentByIdentifiers in interface RemoteDepartmentFullService
See Also:
RemoteDepartmentFullService.getClusterDepartmentByIdentifiers(java.lang.Integer)

handleGetClusterDepartmentByIdentifiers

protected abstract ClusterDepartment handleGetClusterDepartmentByIdentifiers(java.lang.Integer id)
                                                                      throws java.lang.Exception
Performs the core logic for getClusterDepartmentByIdentifiers(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.