fr.ifremer.allegro.referential.pmfm.generic.service
Class RemoteUnitFullServiceBase

java.lang.Object
  extended by fr.ifremer.allegro.referential.pmfm.generic.service.RemoteUnitFullServiceBase
All Implemented Interfaces:
RemoteUnitFullService
Direct Known Subclasses:
RemoteUnitFullServiceImpl

public abstract class RemoteUnitFullServiceBase
extends java.lang.Object
implements RemoteUnitFullService

Spring Service base class for fr.ifremer.allegro.referential.pmfm.generic.service.RemoteUnitFullService, provides access to all services and entities referenced by this service.

See Also:
RemoteUnitFullService

Constructor Summary
RemoteUnitFullServiceBase()
           
 
Method Summary
 ClusterUnit addOrUpdateClusterUnit(ClusterUnit clusterUnit)
           
 RemoteUnitFullVO addUnit(RemoteUnitFullVO unit)
           
 ClusterUnit[] getAllClusterUnitSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
 RemoteUnitFullVO[] getAllUnit()
           
 ClusterUnit getClusterUnitByIdentifiers(java.lang.Integer id)
           
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  StatusDao getStatusDao()
          Gets the reference to status's DAO.
 RemoteUnitFullVO getUnitById(java.lang.Integer id)
           
 RemoteUnitFullVO[] getUnitByIds(java.lang.Integer[] id)
           
 RemoteUnitFullVO getUnitByNaturalId(RemoteUnitNaturalId unitNaturalId)
           
 RemoteUnitFullVO[] getUnitByStatusCode(java.lang.String code)
           
protected  UnitDao getUnitDao()
          Gets the reference to unit's DAO.
 RemoteUnitNaturalId getUnitNaturalIdById(java.lang.Integer id)
           
 RemoteUnitNaturalId[] getUnitNaturalIds()
           
protected abstract  ClusterUnit handleAddOrUpdateClusterUnit(ClusterUnit clusterUnit)
          Performs the core logic for addOrUpdateClusterUnit(fr.ifremer.allegro.referential.pmfm.generic.cluster.ClusterUnit)
protected abstract  RemoteUnitFullVO handleAddUnit(RemoteUnitFullVO unit)
          Performs the core logic for addUnit(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteUnitFullVO)
protected abstract  ClusterUnit[] handleGetAllClusterUnitSinceDateSynchro(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 getAllClusterUnitSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
protected abstract  RemoteUnitFullVO[] handleGetAllUnit()
          Performs the core logic for getAllUnit()
protected abstract  ClusterUnit handleGetClusterUnitByIdentifiers(java.lang.Integer id)
          Performs the core logic for getClusterUnitByIdentifiers(java.lang.Integer)
protected abstract  RemoteUnitFullVO handleGetUnitById(java.lang.Integer id)
          Performs the core logic for getUnitById(java.lang.Integer)
protected abstract  RemoteUnitFullVO[] handleGetUnitByIds(java.lang.Integer[] id)
          Performs the core logic for getUnitByIds(java.lang.Integer[])
protected abstract  RemoteUnitFullVO handleGetUnitByNaturalId(RemoteUnitNaturalId unitNaturalId)
          Performs the core logic for getUnitByNaturalId(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteUnitNaturalId)
protected abstract  RemoteUnitFullVO[] handleGetUnitByStatusCode(java.lang.String code)
          Performs the core logic for getUnitByStatusCode(java.lang.String)
protected abstract  RemoteUnitNaturalId handleGetUnitNaturalIdById(java.lang.Integer id)
          Performs the core logic for getUnitNaturalIdById(java.lang.Integer)
protected abstract  RemoteUnitNaturalId[] handleGetUnitNaturalIds()
          Performs the core logic for getUnitNaturalIds()
protected abstract  boolean handleRemoteUnitFullVOsAreEqual(RemoteUnitFullVO remoteUnitFullVOFirst, RemoteUnitFullVO remoteUnitFullVOSecond)
          Performs the core logic for remoteUnitFullVOsAreEqual(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteUnitFullVO, fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteUnitFullVO)
protected abstract  boolean handleRemoteUnitFullVOsAreEqualOnIdentifiers(RemoteUnitFullVO remoteUnitFullVOFirst, RemoteUnitFullVO remoteUnitFullVOSecond)
          Performs the core logic for remoteUnitFullVOsAreEqualOnIdentifiers(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteUnitFullVO, fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteUnitFullVO)
protected abstract  void handleRemoveUnit(RemoteUnitFullVO unit)
          Performs the core logic for removeUnit(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteUnitFullVO)
protected abstract  void handleUpdateUnit(RemoteUnitFullVO unit)
          Performs the core logic for updateUnit(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteUnitFullVO)
 boolean remoteUnitFullVOsAreEqual(RemoteUnitFullVO remoteUnitFullVOFirst, RemoteUnitFullVO remoteUnitFullVOSecond)
           
 boolean remoteUnitFullVOsAreEqualOnIdentifiers(RemoteUnitFullVO remoteUnitFullVOFirst, RemoteUnitFullVO remoteUnitFullVOSecond)
           
 void removeUnit(RemoteUnitFullVO unit)
           
 void setStatusDao(StatusDao statusDao)
          Sets the reference to status's DAO.
 void setUnitDao(UnitDao unitDao)
          Sets the reference to unit's DAO.
 void updateUnit(RemoteUnitFullVO unit)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteUnitFullServiceBase

public RemoteUnitFullServiceBase()
Method Detail

setUnitDao

public void setUnitDao(UnitDao unitDao)
Sets the reference to unit's DAO.


getUnitDao

protected UnitDao getUnitDao()
Gets the reference to unit'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.


addUnit

public RemoteUnitFullVO addUnit(RemoteUnitFullVO unit)
Specified by:
addUnit in interface RemoteUnitFullService
See Also:
RemoteUnitFullService.addUnit(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteUnitFullVO)

handleAddUnit

protected abstract RemoteUnitFullVO handleAddUnit(RemoteUnitFullVO unit)
                                           throws java.lang.Exception
Performs the core logic for addUnit(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteUnitFullVO)

Throws:
java.lang.Exception

updateUnit

public void updateUnit(RemoteUnitFullVO unit)
Specified by:
updateUnit in interface RemoteUnitFullService
See Also:
RemoteUnitFullService.updateUnit(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteUnitFullVO)

handleUpdateUnit

protected abstract void handleUpdateUnit(RemoteUnitFullVO unit)
                                  throws java.lang.Exception
Performs the core logic for updateUnit(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteUnitFullVO)

Throws:
java.lang.Exception

removeUnit

public void removeUnit(RemoteUnitFullVO unit)
Specified by:
removeUnit in interface RemoteUnitFullService
See Also:
RemoteUnitFullService.removeUnit(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteUnitFullVO)

handleRemoveUnit

protected abstract void handleRemoveUnit(RemoteUnitFullVO unit)
                                  throws java.lang.Exception
Performs the core logic for removeUnit(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteUnitFullVO)

Throws:
java.lang.Exception

getAllUnit

public RemoteUnitFullVO[] getAllUnit()
Specified by:
getAllUnit in interface RemoteUnitFullService
See Also:
RemoteUnitFullService.getAllUnit()

handleGetAllUnit

protected abstract RemoteUnitFullVO[] handleGetAllUnit()
                                                throws java.lang.Exception
Performs the core logic for getAllUnit()

Throws:
java.lang.Exception

getUnitById

public RemoteUnitFullVO getUnitById(java.lang.Integer id)
Specified by:
getUnitById in interface RemoteUnitFullService
See Also:
RemoteUnitFullService.getUnitById(java.lang.Integer)

handleGetUnitById

protected abstract RemoteUnitFullVO handleGetUnitById(java.lang.Integer id)
                                               throws java.lang.Exception
Performs the core logic for getUnitById(java.lang.Integer)

Throws:
java.lang.Exception

getUnitByIds

public RemoteUnitFullVO[] getUnitByIds(java.lang.Integer[] id)
Specified by:
getUnitByIds in interface RemoteUnitFullService
See Also:
RemoteUnitFullService.getUnitByIds(java.lang.Integer[])

handleGetUnitByIds

protected abstract RemoteUnitFullVO[] handleGetUnitByIds(java.lang.Integer[] id)
                                                  throws java.lang.Exception
Performs the core logic for getUnitByIds(java.lang.Integer[])

Throws:
java.lang.Exception

getUnitByStatusCode

public RemoteUnitFullVO[] getUnitByStatusCode(java.lang.String code)
Specified by:
getUnitByStatusCode in interface RemoteUnitFullService
See Also:
RemoteUnitFullService.getUnitByStatusCode(java.lang.String)

handleGetUnitByStatusCode

protected abstract RemoteUnitFullVO[] handleGetUnitByStatusCode(java.lang.String code)
                                                         throws java.lang.Exception
Performs the core logic for getUnitByStatusCode(java.lang.String)

Throws:
java.lang.Exception

remoteUnitFullVOsAreEqualOnIdentifiers

public boolean remoteUnitFullVOsAreEqualOnIdentifiers(RemoteUnitFullVO remoteUnitFullVOFirst,
                                                      RemoteUnitFullVO remoteUnitFullVOSecond)
Specified by:
remoteUnitFullVOsAreEqualOnIdentifiers in interface RemoteUnitFullService
See Also:
RemoteUnitFullService.remoteUnitFullVOsAreEqualOnIdentifiers(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteUnitFullVO, fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteUnitFullVO)

handleRemoteUnitFullVOsAreEqualOnIdentifiers

protected abstract boolean handleRemoteUnitFullVOsAreEqualOnIdentifiers(RemoteUnitFullVO remoteUnitFullVOFirst,
                                                                        RemoteUnitFullVO remoteUnitFullVOSecond)
                                                                 throws java.lang.Exception
Performs the core logic for remoteUnitFullVOsAreEqualOnIdentifiers(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteUnitFullVO, fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteUnitFullVO)

Throws:
java.lang.Exception

remoteUnitFullVOsAreEqual

public boolean remoteUnitFullVOsAreEqual(RemoteUnitFullVO remoteUnitFullVOFirst,
                                         RemoteUnitFullVO remoteUnitFullVOSecond)
Specified by:
remoteUnitFullVOsAreEqual in interface RemoteUnitFullService
See Also:
RemoteUnitFullService.remoteUnitFullVOsAreEqual(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteUnitFullVO, fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteUnitFullVO)

handleRemoteUnitFullVOsAreEqual

protected abstract boolean handleRemoteUnitFullVOsAreEqual(RemoteUnitFullVO remoteUnitFullVOFirst,
                                                           RemoteUnitFullVO remoteUnitFullVOSecond)
                                                    throws java.lang.Exception
Performs the core logic for remoteUnitFullVOsAreEqual(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteUnitFullVO, fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteUnitFullVO)

Throws:
java.lang.Exception

getUnitNaturalIds

public RemoteUnitNaturalId[] getUnitNaturalIds()
Specified by:
getUnitNaturalIds in interface RemoteUnitFullService
See Also:
RemoteUnitFullService.getUnitNaturalIds()

handleGetUnitNaturalIds

protected abstract RemoteUnitNaturalId[] handleGetUnitNaturalIds()
                                                          throws java.lang.Exception
Performs the core logic for getUnitNaturalIds()

Throws:
java.lang.Exception

getUnitByNaturalId

public RemoteUnitFullVO getUnitByNaturalId(RemoteUnitNaturalId unitNaturalId)
Specified by:
getUnitByNaturalId in interface RemoteUnitFullService
See Also:
RemoteUnitFullService.getUnitByNaturalId(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteUnitNaturalId)

handleGetUnitByNaturalId

protected abstract RemoteUnitFullVO handleGetUnitByNaturalId(RemoteUnitNaturalId unitNaturalId)
                                                      throws java.lang.Exception
Performs the core logic for getUnitByNaturalId(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteUnitNaturalId)

Throws:
java.lang.Exception

getUnitNaturalIdById

public RemoteUnitNaturalId getUnitNaturalIdById(java.lang.Integer id)
Specified by:
getUnitNaturalIdById in interface RemoteUnitFullService
See Also:
RemoteUnitFullService.getUnitNaturalIdById(java.lang.Integer)

handleGetUnitNaturalIdById

protected abstract RemoteUnitNaturalId handleGetUnitNaturalIdById(java.lang.Integer id)
                                                           throws java.lang.Exception
Performs the core logic for getUnitNaturalIdById(java.lang.Integer)

Throws:
java.lang.Exception

addOrUpdateClusterUnit

public ClusterUnit addOrUpdateClusterUnit(ClusterUnit clusterUnit)
Specified by:
addOrUpdateClusterUnit in interface RemoteUnitFullService
See Also:
RemoteUnitFullService.addOrUpdateClusterUnit(fr.ifremer.allegro.referential.pmfm.generic.cluster.ClusterUnit)

handleAddOrUpdateClusterUnit

protected abstract ClusterUnit handleAddOrUpdateClusterUnit(ClusterUnit clusterUnit)
                                                     throws java.lang.Exception
Performs the core logic for addOrUpdateClusterUnit(fr.ifremer.allegro.referential.pmfm.generic.cluster.ClusterUnit)

Throws:
java.lang.Exception

getAllClusterUnitSinceDateSynchro

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

handleGetAllClusterUnitSinceDateSynchro

protected abstract ClusterUnit[] handleGetAllClusterUnitSinceDateSynchro(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 getAllClusterUnitSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

Throws:
java.lang.Exception

getClusterUnitByIdentifiers

public ClusterUnit getClusterUnitByIdentifiers(java.lang.Integer id)
Specified by:
getClusterUnitByIdentifiers in interface RemoteUnitFullService
See Also:
RemoteUnitFullService.getClusterUnitByIdentifiers(java.lang.Integer)

handleGetClusterUnitByIdentifiers

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