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

java.lang.Object
  extended by fr.ifremer.allegro.referential.pmfm.generic.service.RemoteMethodFullServiceBase
All Implemented Interfaces:
RemoteMethodFullService
Direct Known Subclasses:
RemoteMethodFullServiceImpl

public abstract class RemoteMethodFullServiceBase
extends java.lang.Object
implements RemoteMethodFullService

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

See Also:
RemoteMethodFullService

Constructor Summary
RemoteMethodFullServiceBase()
           
 
Method Summary
 RemoteMethodFullVO addMethod(RemoteMethodFullVO method)
           
 ClusterMethod addOrUpdateClusterMethod(ClusterMethod clusterMethod)
           
 ClusterMethod[] getAllClusterMethodSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
 RemoteMethodFullVO[] getAllMethod()
           
 ClusterMethod getClusterMethodByIdentifiers(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.
 RemoteMethodFullVO getMethodById(java.lang.Integer id)
           
 RemoteMethodFullVO[] getMethodByIds(java.lang.Integer[] id)
           
 RemoteMethodFullVO getMethodByNaturalId(RemoteMethodNaturalId methodNaturalId)
           
 RemoteMethodFullVO[] getMethodByStatusCode(java.lang.String code)
           
protected  MethodDao getMethodDao()
          Gets the reference to method's DAO.
 RemoteMethodNaturalId getMethodNaturalIdById(java.lang.Integer id)
           
 RemoteMethodNaturalId[] getMethodNaturalIds()
           
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.
protected abstract  RemoteMethodFullVO handleAddMethod(RemoteMethodFullVO method)
          Performs the core logic for addMethod(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteMethodFullVO)
protected abstract  ClusterMethod handleAddOrUpdateClusterMethod(ClusterMethod clusterMethod)
          Performs the core logic for addOrUpdateClusterMethod(fr.ifremer.allegro.referential.pmfm.generic.cluster.ClusterMethod)
protected abstract  ClusterMethod[] handleGetAllClusterMethodSinceDateSynchro(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 getAllClusterMethodSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
protected abstract  RemoteMethodFullVO[] handleGetAllMethod()
          Performs the core logic for getAllMethod()
protected abstract  ClusterMethod handleGetClusterMethodByIdentifiers(java.lang.Integer id)
          Performs the core logic for getClusterMethodByIdentifiers(java.lang.Integer)
protected abstract  RemoteMethodFullVO handleGetMethodById(java.lang.Integer id)
          Performs the core logic for getMethodById(java.lang.Integer)
protected abstract  RemoteMethodFullVO[] handleGetMethodByIds(java.lang.Integer[] id)
          Performs the core logic for getMethodByIds(java.lang.Integer[])
protected abstract  RemoteMethodFullVO handleGetMethodByNaturalId(RemoteMethodNaturalId methodNaturalId)
          Performs the core logic for getMethodByNaturalId(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteMethodNaturalId)
protected abstract  RemoteMethodFullVO[] handleGetMethodByStatusCode(java.lang.String code)
          Performs the core logic for getMethodByStatusCode(java.lang.String)
protected abstract  RemoteMethodNaturalId handleGetMethodNaturalIdById(java.lang.Integer id)
          Performs the core logic for getMethodNaturalIdById(java.lang.Integer)
protected abstract  RemoteMethodNaturalId[] handleGetMethodNaturalIds()
          Performs the core logic for getMethodNaturalIds()
protected abstract  boolean handleRemoteMethodFullVOsAreEqual(RemoteMethodFullVO remoteMethodFullVOFirst, RemoteMethodFullVO remoteMethodFullVOSecond)
          Performs the core logic for remoteMethodFullVOsAreEqual(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteMethodFullVO, fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteMethodFullVO)
protected abstract  boolean handleRemoteMethodFullVOsAreEqualOnIdentifiers(RemoteMethodFullVO remoteMethodFullVOFirst, RemoteMethodFullVO remoteMethodFullVOSecond)
          Performs the core logic for remoteMethodFullVOsAreEqualOnIdentifiers(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteMethodFullVO, fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteMethodFullVO)
protected abstract  void handleRemoveMethod(RemoteMethodFullVO method)
          Performs the core logic for removeMethod(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteMethodFullVO)
protected abstract  void handleUpdateMethod(RemoteMethodFullVO method)
          Performs the core logic for updateMethod(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteMethodFullVO)
 boolean remoteMethodFullVOsAreEqual(RemoteMethodFullVO remoteMethodFullVOFirst, RemoteMethodFullVO remoteMethodFullVOSecond)
           
 boolean remoteMethodFullVOsAreEqualOnIdentifiers(RemoteMethodFullVO remoteMethodFullVOFirst, RemoteMethodFullVO remoteMethodFullVOSecond)
           
 void removeMethod(RemoteMethodFullVO method)
           
 void setMethodDao(MethodDao methodDao)
          Sets the reference to method's DAO.
 void setStatusDao(StatusDao statusDao)
          Sets the reference to status's DAO.
 void updateMethod(RemoteMethodFullVO method)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteMethodFullServiceBase

public RemoteMethodFullServiceBase()
Method Detail

setMethodDao

public void setMethodDao(MethodDao methodDao)
Sets the reference to method's DAO.


getMethodDao

protected MethodDao getMethodDao()
Gets the reference to method'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.


addMethod

public RemoteMethodFullVO addMethod(RemoteMethodFullVO method)
Specified by:
addMethod in interface RemoteMethodFullService
See Also:
RemoteMethodFullService.addMethod(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteMethodFullVO)

handleAddMethod

protected abstract RemoteMethodFullVO handleAddMethod(RemoteMethodFullVO method)
                                               throws java.lang.Exception
Performs the core logic for addMethod(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteMethodFullVO)

Throws:
java.lang.Exception

updateMethod

public void updateMethod(RemoteMethodFullVO method)
Specified by:
updateMethod in interface RemoteMethodFullService
See Also:
RemoteMethodFullService.updateMethod(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteMethodFullVO)

handleUpdateMethod

protected abstract void handleUpdateMethod(RemoteMethodFullVO method)
                                    throws java.lang.Exception
Performs the core logic for updateMethod(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteMethodFullVO)

Throws:
java.lang.Exception

removeMethod

public void removeMethod(RemoteMethodFullVO method)
Specified by:
removeMethod in interface RemoteMethodFullService
See Also:
RemoteMethodFullService.removeMethod(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteMethodFullVO)

handleRemoveMethod

protected abstract void handleRemoveMethod(RemoteMethodFullVO method)
                                    throws java.lang.Exception
Performs the core logic for removeMethod(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteMethodFullVO)

Throws:
java.lang.Exception

getAllMethod

public RemoteMethodFullVO[] getAllMethod()
Specified by:
getAllMethod in interface RemoteMethodFullService
See Also:
RemoteMethodFullService.getAllMethod()

handleGetAllMethod

protected abstract RemoteMethodFullVO[] handleGetAllMethod()
                                                    throws java.lang.Exception
Performs the core logic for getAllMethod()

Throws:
java.lang.Exception

getMethodById

public RemoteMethodFullVO getMethodById(java.lang.Integer id)
Specified by:
getMethodById in interface RemoteMethodFullService
See Also:
RemoteMethodFullService.getMethodById(java.lang.Integer)

handleGetMethodById

protected abstract RemoteMethodFullVO handleGetMethodById(java.lang.Integer id)
                                                   throws java.lang.Exception
Performs the core logic for getMethodById(java.lang.Integer)

Throws:
java.lang.Exception

getMethodByIds

public RemoteMethodFullVO[] getMethodByIds(java.lang.Integer[] id)
Specified by:
getMethodByIds in interface RemoteMethodFullService
See Also:
RemoteMethodFullService.getMethodByIds(java.lang.Integer[])

handleGetMethodByIds

protected abstract RemoteMethodFullVO[] handleGetMethodByIds(java.lang.Integer[] id)
                                                      throws java.lang.Exception
Performs the core logic for getMethodByIds(java.lang.Integer[])

Throws:
java.lang.Exception

getMethodByStatusCode

public RemoteMethodFullVO[] getMethodByStatusCode(java.lang.String code)
Specified by:
getMethodByStatusCode in interface RemoteMethodFullService
See Also:
RemoteMethodFullService.getMethodByStatusCode(java.lang.String)

handleGetMethodByStatusCode

protected abstract RemoteMethodFullVO[] handleGetMethodByStatusCode(java.lang.String code)
                                                             throws java.lang.Exception
Performs the core logic for getMethodByStatusCode(java.lang.String)

Throws:
java.lang.Exception

remoteMethodFullVOsAreEqualOnIdentifiers

public boolean remoteMethodFullVOsAreEqualOnIdentifiers(RemoteMethodFullVO remoteMethodFullVOFirst,
                                                        RemoteMethodFullVO remoteMethodFullVOSecond)
Specified by:
remoteMethodFullVOsAreEqualOnIdentifiers in interface RemoteMethodFullService
See Also:
RemoteMethodFullService.remoteMethodFullVOsAreEqualOnIdentifiers(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteMethodFullVO, fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteMethodFullVO)

handleRemoteMethodFullVOsAreEqualOnIdentifiers

protected abstract boolean handleRemoteMethodFullVOsAreEqualOnIdentifiers(RemoteMethodFullVO remoteMethodFullVOFirst,
                                                                          RemoteMethodFullVO remoteMethodFullVOSecond)
                                                                   throws java.lang.Exception
Performs the core logic for remoteMethodFullVOsAreEqualOnIdentifiers(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteMethodFullVO, fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteMethodFullVO)

Throws:
java.lang.Exception

remoteMethodFullVOsAreEqual

public boolean remoteMethodFullVOsAreEqual(RemoteMethodFullVO remoteMethodFullVOFirst,
                                           RemoteMethodFullVO remoteMethodFullVOSecond)
Specified by:
remoteMethodFullVOsAreEqual in interface RemoteMethodFullService
See Also:
RemoteMethodFullService.remoteMethodFullVOsAreEqual(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteMethodFullVO, fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteMethodFullVO)

handleRemoteMethodFullVOsAreEqual

protected abstract boolean handleRemoteMethodFullVOsAreEqual(RemoteMethodFullVO remoteMethodFullVOFirst,
                                                             RemoteMethodFullVO remoteMethodFullVOSecond)
                                                      throws java.lang.Exception
Performs the core logic for remoteMethodFullVOsAreEqual(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteMethodFullVO, fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteMethodFullVO)

Throws:
java.lang.Exception

getMethodNaturalIds

public RemoteMethodNaturalId[] getMethodNaturalIds()
Specified by:
getMethodNaturalIds in interface RemoteMethodFullService
See Also:
RemoteMethodFullService.getMethodNaturalIds()

handleGetMethodNaturalIds

protected abstract RemoteMethodNaturalId[] handleGetMethodNaturalIds()
                                                              throws java.lang.Exception
Performs the core logic for getMethodNaturalIds()

Throws:
java.lang.Exception

getMethodByNaturalId

public RemoteMethodFullVO getMethodByNaturalId(RemoteMethodNaturalId methodNaturalId)
Specified by:
getMethodByNaturalId in interface RemoteMethodFullService
See Also:
RemoteMethodFullService.getMethodByNaturalId(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteMethodNaturalId)

handleGetMethodByNaturalId

protected abstract RemoteMethodFullVO handleGetMethodByNaturalId(RemoteMethodNaturalId methodNaturalId)
                                                          throws java.lang.Exception
Performs the core logic for getMethodByNaturalId(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteMethodNaturalId)

Throws:
java.lang.Exception

getMethodNaturalIdById

public RemoteMethodNaturalId getMethodNaturalIdById(java.lang.Integer id)
Specified by:
getMethodNaturalIdById in interface RemoteMethodFullService
See Also:
RemoteMethodFullService.getMethodNaturalIdById(java.lang.Integer)

handleGetMethodNaturalIdById

protected abstract RemoteMethodNaturalId handleGetMethodNaturalIdById(java.lang.Integer id)
                                                               throws java.lang.Exception
Performs the core logic for getMethodNaturalIdById(java.lang.Integer)

Throws:
java.lang.Exception

addOrUpdateClusterMethod

public ClusterMethod addOrUpdateClusterMethod(ClusterMethod clusterMethod)
Specified by:
addOrUpdateClusterMethod in interface RemoteMethodFullService
See Also:
RemoteMethodFullService.addOrUpdateClusterMethod(fr.ifremer.allegro.referential.pmfm.generic.cluster.ClusterMethod)

handleAddOrUpdateClusterMethod

protected abstract ClusterMethod handleAddOrUpdateClusterMethod(ClusterMethod clusterMethod)
                                                         throws java.lang.Exception
Performs the core logic for addOrUpdateClusterMethod(fr.ifremer.allegro.referential.pmfm.generic.cluster.ClusterMethod)

Throws:
java.lang.Exception

getAllClusterMethodSinceDateSynchro

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

handleGetAllClusterMethodSinceDateSynchro

protected abstract ClusterMethod[] handleGetAllClusterMethodSinceDateSynchro(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 getAllClusterMethodSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

Throws:
java.lang.Exception

getClusterMethodByIdentifiers

public ClusterMethod getClusterMethodByIdentifiers(java.lang.Integer id)
Specified by:
getClusterMethodByIdentifiers in interface RemoteMethodFullService
See Also:
RemoteMethodFullService.getClusterMethodByIdentifiers(java.lang.Integer)

handleGetClusterMethodByIdentifiers

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