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

java.lang.Object
  extended by fr.ifremer.allegro.referential.pmfm.generic.service.RemoteParameterFullServiceBase
All Implemented Interfaces:
RemoteParameterFullService
Direct Known Subclasses:
RemoteParameterFullServiceImpl

public abstract class RemoteParameterFullServiceBase
extends java.lang.Object
implements RemoteParameterFullService

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

See Also:
RemoteParameterFullService

Constructor Summary
RemoteParameterFullServiceBase()
           
 
Method Summary
 ClusterParameter addOrUpdateClusterParameter(ClusterParameter clusterParameter)
           
 RemoteParameterFullVO addParameter(RemoteParameterFullVO parameter)
           
 ClusterParameter[] getAllClusterParameterSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
 RemoteParameterFullVO[] getAllParameter()
           
 ClusterParameter getClusterParameterByIdentifiers(java.lang.String code)
           
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.
 RemoteParameterFullVO getParameterByCode(java.lang.String code)
           
 RemoteParameterFullVO[] getParameterByCodes(java.lang.String[] code)
           
 RemoteParameterFullVO getParameterByNaturalId(RemoteParameterNaturalId parameterNaturalId)
           
 RemoteParameterFullVO[] getParameterByParameterGroupId(java.lang.Integer id)
           
 RemoteParameterFullVO[] getParameterByStatusCode(java.lang.String code)
           
protected  ParameterDao getParameterDao()
          Gets the reference to parameter's DAO.
protected  ParameterGroupDao getParameterGroupDao()
          Gets the reference to parameterGroup's DAO.
 RemoteParameterNaturalId getParameterNaturalIdByCode(java.lang.String code)
           
 RemoteParameterNaturalId[] getParameterNaturalIds()
           
protected  java.security.Principal getPrincipal()
          Gets the current principal if one has been set, otherwise returns null.
protected  QualitativeValueDao getQualitativeValueDao()
          Gets the reference to qualitativeValue's DAO.
protected  StatusDao getStatusDao()
          Gets the reference to status's DAO.
protected abstract  ClusterParameter handleAddOrUpdateClusterParameter(ClusterParameter clusterParameter)
          Performs the core logic for addOrUpdateClusterParameter(fr.ifremer.allegro.referential.pmfm.generic.cluster.ClusterParameter)
protected abstract  RemoteParameterFullVO handleAddParameter(RemoteParameterFullVO parameter)
          Performs the core logic for addParameter(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteParameterFullVO)
protected abstract  ClusterParameter[] handleGetAllClusterParameterSinceDateSynchro(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 getAllClusterParameterSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
protected abstract  RemoteParameterFullVO[] handleGetAllParameter()
          Performs the core logic for getAllParameter()
protected abstract  ClusterParameter handleGetClusterParameterByIdentifiers(java.lang.String code)
          Performs the core logic for getClusterParameterByIdentifiers(java.lang.String)
protected abstract  RemoteParameterFullVO handleGetParameterByCode(java.lang.String code)
          Performs the core logic for getParameterByCode(java.lang.String)
protected abstract  RemoteParameterFullVO[] handleGetParameterByCodes(java.lang.String[] code)
          Performs the core logic for getParameterByCodes(java.lang.String[])
protected abstract  RemoteParameterFullVO handleGetParameterByNaturalId(RemoteParameterNaturalId parameterNaturalId)
          Performs the core logic for getParameterByNaturalId(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteParameterNaturalId)
protected abstract  RemoteParameterFullVO[] handleGetParameterByParameterGroupId(java.lang.Integer id)
          Performs the core logic for getParameterByParameterGroupId(java.lang.Integer)
protected abstract  RemoteParameterFullVO[] handleGetParameterByStatusCode(java.lang.String code)
          Performs the core logic for getParameterByStatusCode(java.lang.String)
protected abstract  RemoteParameterNaturalId handleGetParameterNaturalIdByCode(java.lang.String code)
          Performs the core logic for getParameterNaturalIdByCode(java.lang.String)
protected abstract  RemoteParameterNaturalId[] handleGetParameterNaturalIds()
          Performs the core logic for getParameterNaturalIds()
protected abstract  boolean handleRemoteParameterFullVOsAreEqual(RemoteParameterFullVO remoteParameterFullVOFirst, RemoteParameterFullVO remoteParameterFullVOSecond)
          Performs the core logic for remoteParameterFullVOsAreEqual(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteParameterFullVO, fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteParameterFullVO)
protected abstract  boolean handleRemoteParameterFullVOsAreEqualOnIdentifiers(RemoteParameterFullVO remoteParameterFullVOFirst, RemoteParameterFullVO remoteParameterFullVOSecond)
          Performs the core logic for remoteParameterFullVOsAreEqualOnIdentifiers(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteParameterFullVO, fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteParameterFullVO)
protected abstract  void handleRemoveParameter(RemoteParameterFullVO parameter)
          Performs the core logic for removeParameter(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteParameterFullVO)
protected abstract  void handleUpdateParameter(RemoteParameterFullVO parameter)
          Performs the core logic for updateParameter(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteParameterFullVO)
 boolean remoteParameterFullVOsAreEqual(RemoteParameterFullVO remoteParameterFullVOFirst, RemoteParameterFullVO remoteParameterFullVOSecond)
           
 boolean remoteParameterFullVOsAreEqualOnIdentifiers(RemoteParameterFullVO remoteParameterFullVOFirst, RemoteParameterFullVO remoteParameterFullVOSecond)
           
 void removeParameter(RemoteParameterFullVO parameter)
           
 void setParameterDao(ParameterDao parameterDao)
          Sets the reference to parameter's DAO.
 void setParameterGroupDao(ParameterGroupDao parameterGroupDao)
          Sets the reference to parameterGroup's DAO.
 void setQualitativeValueDao(QualitativeValueDao qualitativeValueDao)
          Sets the reference to qualitativeValue's DAO.
 void setStatusDao(StatusDao statusDao)
          Sets the reference to status's DAO.
 void updateParameter(RemoteParameterFullVO parameter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteParameterFullServiceBase

public RemoteParameterFullServiceBase()
Method Detail

setParameterDao

public void setParameterDao(ParameterDao parameterDao)
Sets the reference to parameter's DAO.


getParameterDao

protected ParameterDao getParameterDao()
Gets the reference to parameter's DAO.


setQualitativeValueDao

public void setQualitativeValueDao(QualitativeValueDao qualitativeValueDao)
Sets the reference to qualitativeValue's DAO.


getQualitativeValueDao

protected QualitativeValueDao getQualitativeValueDao()
Gets the reference to qualitativeValue'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.


setParameterGroupDao

public void setParameterGroupDao(ParameterGroupDao parameterGroupDao)
Sets the reference to parameterGroup's DAO.


getParameterGroupDao

protected ParameterGroupDao getParameterGroupDao()
Gets the reference to parameterGroup's DAO.


addParameter

public RemoteParameterFullVO addParameter(RemoteParameterFullVO parameter)
Specified by:
addParameter in interface RemoteParameterFullService
See Also:
RemoteParameterFullService.addParameter(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteParameterFullVO)

handleAddParameter

protected abstract RemoteParameterFullVO handleAddParameter(RemoteParameterFullVO parameter)
                                                     throws java.lang.Exception
Performs the core logic for addParameter(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteParameterFullVO)

Throws:
java.lang.Exception

updateParameter

public void updateParameter(RemoteParameterFullVO parameter)
Specified by:
updateParameter in interface RemoteParameterFullService
See Also:
RemoteParameterFullService.updateParameter(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteParameterFullVO)

handleUpdateParameter

protected abstract void handleUpdateParameter(RemoteParameterFullVO parameter)
                                       throws java.lang.Exception
Performs the core logic for updateParameter(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteParameterFullVO)

Throws:
java.lang.Exception

removeParameter

public void removeParameter(RemoteParameterFullVO parameter)
Specified by:
removeParameter in interface RemoteParameterFullService
See Also:
RemoteParameterFullService.removeParameter(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteParameterFullVO)

handleRemoveParameter

protected abstract void handleRemoveParameter(RemoteParameterFullVO parameter)
                                       throws java.lang.Exception
Performs the core logic for removeParameter(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteParameterFullVO)

Throws:
java.lang.Exception

getAllParameter

public RemoteParameterFullVO[] getAllParameter()
Specified by:
getAllParameter in interface RemoteParameterFullService
See Also:
RemoteParameterFullService.getAllParameter()

handleGetAllParameter

protected abstract RemoteParameterFullVO[] handleGetAllParameter()
                                                          throws java.lang.Exception
Performs the core logic for getAllParameter()

Throws:
java.lang.Exception

getParameterByCode

public RemoteParameterFullVO getParameterByCode(java.lang.String code)
Specified by:
getParameterByCode in interface RemoteParameterFullService
See Also:
RemoteParameterFullService.getParameterByCode(java.lang.String)

handleGetParameterByCode

protected abstract RemoteParameterFullVO handleGetParameterByCode(java.lang.String code)
                                                           throws java.lang.Exception
Performs the core logic for getParameterByCode(java.lang.String)

Throws:
java.lang.Exception

getParameterByCodes

public RemoteParameterFullVO[] getParameterByCodes(java.lang.String[] code)
Specified by:
getParameterByCodes in interface RemoteParameterFullService
See Also:
RemoteParameterFullService.getParameterByCodes(java.lang.String[])

handleGetParameterByCodes

protected abstract RemoteParameterFullVO[] handleGetParameterByCodes(java.lang.String[] code)
                                                              throws java.lang.Exception
Performs the core logic for getParameterByCodes(java.lang.String[])

Throws:
java.lang.Exception

getParameterByStatusCode

public RemoteParameterFullVO[] getParameterByStatusCode(java.lang.String code)
Specified by:
getParameterByStatusCode in interface RemoteParameterFullService
See Also:
RemoteParameterFullService.getParameterByStatusCode(java.lang.String)

handleGetParameterByStatusCode

protected abstract RemoteParameterFullVO[] handleGetParameterByStatusCode(java.lang.String code)
                                                                   throws java.lang.Exception
Performs the core logic for getParameterByStatusCode(java.lang.String)

Throws:
java.lang.Exception

getParameterByParameterGroupId

public RemoteParameterFullVO[] getParameterByParameterGroupId(java.lang.Integer id)
Specified by:
getParameterByParameterGroupId in interface RemoteParameterFullService
See Also:
RemoteParameterFullService.getParameterByParameterGroupId(java.lang.Integer)

handleGetParameterByParameterGroupId

protected abstract RemoteParameterFullVO[] handleGetParameterByParameterGroupId(java.lang.Integer id)
                                                                         throws java.lang.Exception
Performs the core logic for getParameterByParameterGroupId(java.lang.Integer)

Throws:
java.lang.Exception

remoteParameterFullVOsAreEqualOnIdentifiers

public boolean remoteParameterFullVOsAreEqualOnIdentifiers(RemoteParameterFullVO remoteParameterFullVOFirst,
                                                           RemoteParameterFullVO remoteParameterFullVOSecond)
Specified by:
remoteParameterFullVOsAreEqualOnIdentifiers in interface RemoteParameterFullService
See Also:
RemoteParameterFullService.remoteParameterFullVOsAreEqualOnIdentifiers(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteParameterFullVO, fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteParameterFullVO)

handleRemoteParameterFullVOsAreEqualOnIdentifiers

protected abstract boolean handleRemoteParameterFullVOsAreEqualOnIdentifiers(RemoteParameterFullVO remoteParameterFullVOFirst,
                                                                             RemoteParameterFullVO remoteParameterFullVOSecond)
                                                                      throws java.lang.Exception
Performs the core logic for remoteParameterFullVOsAreEqualOnIdentifiers(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteParameterFullVO, fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteParameterFullVO)

Throws:
java.lang.Exception

remoteParameterFullVOsAreEqual

public boolean remoteParameterFullVOsAreEqual(RemoteParameterFullVO remoteParameterFullVOFirst,
                                              RemoteParameterFullVO remoteParameterFullVOSecond)
Specified by:
remoteParameterFullVOsAreEqual in interface RemoteParameterFullService
See Also:
RemoteParameterFullService.remoteParameterFullVOsAreEqual(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteParameterFullVO, fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteParameterFullVO)

handleRemoteParameterFullVOsAreEqual

protected abstract boolean handleRemoteParameterFullVOsAreEqual(RemoteParameterFullVO remoteParameterFullVOFirst,
                                                                RemoteParameterFullVO remoteParameterFullVOSecond)
                                                         throws java.lang.Exception
Performs the core logic for remoteParameterFullVOsAreEqual(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteParameterFullVO, fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteParameterFullVO)

Throws:
java.lang.Exception

getParameterNaturalIds

public RemoteParameterNaturalId[] getParameterNaturalIds()
Specified by:
getParameterNaturalIds in interface RemoteParameterFullService
See Also:
RemoteParameterFullService.getParameterNaturalIds()

handleGetParameterNaturalIds

protected abstract RemoteParameterNaturalId[] handleGetParameterNaturalIds()
                                                                    throws java.lang.Exception
Performs the core logic for getParameterNaturalIds()

Throws:
java.lang.Exception

getParameterByNaturalId

public RemoteParameterFullVO getParameterByNaturalId(RemoteParameterNaturalId parameterNaturalId)
Specified by:
getParameterByNaturalId in interface RemoteParameterFullService
See Also:
RemoteParameterFullService.getParameterByNaturalId(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteParameterNaturalId)

handleGetParameterByNaturalId

protected abstract RemoteParameterFullVO handleGetParameterByNaturalId(RemoteParameterNaturalId parameterNaturalId)
                                                                throws java.lang.Exception
Performs the core logic for getParameterByNaturalId(fr.ifremer.allegro.referential.pmfm.generic.vo.RemoteParameterNaturalId)

Throws:
java.lang.Exception

getParameterNaturalIdByCode

public RemoteParameterNaturalId getParameterNaturalIdByCode(java.lang.String code)
Specified by:
getParameterNaturalIdByCode in interface RemoteParameterFullService
See Also:
RemoteParameterFullService.getParameterNaturalIdByCode(java.lang.String)

handleGetParameterNaturalIdByCode

protected abstract RemoteParameterNaturalId handleGetParameterNaturalIdByCode(java.lang.String code)
                                                                       throws java.lang.Exception
Performs the core logic for getParameterNaturalIdByCode(java.lang.String)

Throws:
java.lang.Exception

addOrUpdateClusterParameter

public ClusterParameter addOrUpdateClusterParameter(ClusterParameter clusterParameter)
Specified by:
addOrUpdateClusterParameter in interface RemoteParameterFullService
See Also:
RemoteParameterFullService.addOrUpdateClusterParameter(fr.ifremer.allegro.referential.pmfm.generic.cluster.ClusterParameter)

handleAddOrUpdateClusterParameter

protected abstract ClusterParameter handleAddOrUpdateClusterParameter(ClusterParameter clusterParameter)
                                                               throws java.lang.Exception
Performs the core logic for addOrUpdateClusterParameter(fr.ifremer.allegro.referential.pmfm.generic.cluster.ClusterParameter)

Throws:
java.lang.Exception

getAllClusterParameterSinceDateSynchro

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

handleGetAllClusterParameterSinceDateSynchro

protected abstract ClusterParameter[] handleGetAllClusterParameterSinceDateSynchro(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 getAllClusterParameterSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

Throws:
java.lang.Exception

getClusterParameterByIdentifiers

public ClusterParameter getClusterParameterByIdentifiers(java.lang.String code)
Specified by:
getClusterParameterByIdentifiers in interface RemoteParameterFullService
See Also:
RemoteParameterFullService.getClusterParameterByIdentifiers(java.lang.String)

handleGetClusterParameterByIdentifiers

protected abstract ClusterParameter handleGetClusterParameterByIdentifiers(java.lang.String code)
                                                                    throws java.lang.Exception
Performs the core logic for getClusterParameterByIdentifiers(java.lang.String)

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.