fr.ifremer.allegro.referential.taxon.generic.service
Class RemoteCitationFullServiceBase

java.lang.Object
  extended by fr.ifremer.allegro.referential.taxon.generic.service.RemoteCitationFullServiceBase
All Implemented Interfaces:
RemoteCitationFullService
Direct Known Subclasses:
RemoteCitationFullServiceImpl

public abstract class RemoteCitationFullServiceBase
extends java.lang.Object
implements RemoteCitationFullService

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

See Also:
RemoteCitationFullService

Constructor Summary
RemoteCitationFullServiceBase()
           
 
Method Summary
 RemoteCitationFullVO addCitation(RemoteCitationFullVO citation)
           
 ClusterCitation addOrUpdateClusterCitation(ClusterCitation clusterCitation)
           
 RemoteCitationFullVO[] getAllCitation()
           
 ClusterCitation[] getAllClusterCitationSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
 RemoteCitationFullVO getCitationById(java.lang.Integer id)
           
 RemoteCitationFullVO[] getCitationByIds(java.lang.Integer[] id)
           
 RemoteCitationFullVO getCitationByNaturalId(RemoteCitationNaturalId citationNaturalId)
           
 RemoteCitationFullVO[] getCitationByStatusCode(java.lang.String code)
           
protected  CitationDao getCitationDao()
          Gets the reference to citation's DAO.
 RemoteCitationNaturalId getCitationNaturalIdById(java.lang.Integer id)
           
 RemoteCitationNaturalId[] getCitationNaturalIds()
           
 ClusterCitation getClusterCitationByIdentifiers(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.
protected abstract  RemoteCitationFullVO handleAddCitation(RemoteCitationFullVO citation)
          Performs the core logic for addCitation(fr.ifremer.allegro.referential.taxon.generic.vo.RemoteCitationFullVO)
protected abstract  ClusterCitation handleAddOrUpdateClusterCitation(ClusterCitation clusterCitation)
          Performs the core logic for addOrUpdateClusterCitation(fr.ifremer.allegro.referential.taxon.generic.cluster.ClusterCitation)
protected abstract  RemoteCitationFullVO[] handleGetAllCitation()
          Performs the core logic for getAllCitation()
protected abstract  ClusterCitation[] handleGetAllClusterCitationSinceDateSynchro(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 getAllClusterCitationSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
protected abstract  RemoteCitationFullVO handleGetCitationById(java.lang.Integer id)
          Performs the core logic for getCitationById(java.lang.Integer)
protected abstract  RemoteCitationFullVO[] handleGetCitationByIds(java.lang.Integer[] id)
          Performs the core logic for getCitationByIds(java.lang.Integer[])
protected abstract  RemoteCitationFullVO handleGetCitationByNaturalId(RemoteCitationNaturalId citationNaturalId)
          Performs the core logic for getCitationByNaturalId(fr.ifremer.allegro.referential.taxon.generic.vo.RemoteCitationNaturalId)
protected abstract  RemoteCitationFullVO[] handleGetCitationByStatusCode(java.lang.String code)
          Performs the core logic for getCitationByStatusCode(java.lang.String)
protected abstract  RemoteCitationNaturalId handleGetCitationNaturalIdById(java.lang.Integer id)
          Performs the core logic for getCitationNaturalIdById(java.lang.Integer)
protected abstract  RemoteCitationNaturalId[] handleGetCitationNaturalIds()
          Performs the core logic for getCitationNaturalIds()
protected abstract  ClusterCitation handleGetClusterCitationByIdentifiers(java.lang.Integer id)
          Performs the core logic for getClusterCitationByIdentifiers(java.lang.Integer)
protected abstract  boolean handleRemoteCitationFullVOsAreEqual(RemoteCitationFullVO remoteCitationFullVOFirst, RemoteCitationFullVO remoteCitationFullVOSecond)
          Performs the core logic for remoteCitationFullVOsAreEqual(fr.ifremer.allegro.referential.taxon.generic.vo.RemoteCitationFullVO, fr.ifremer.allegro.referential.taxon.generic.vo.RemoteCitationFullVO)
protected abstract  boolean handleRemoteCitationFullVOsAreEqualOnIdentifiers(RemoteCitationFullVO remoteCitationFullVOFirst, RemoteCitationFullVO remoteCitationFullVOSecond)
          Performs the core logic for remoteCitationFullVOsAreEqualOnIdentifiers(fr.ifremer.allegro.referential.taxon.generic.vo.RemoteCitationFullVO, fr.ifremer.allegro.referential.taxon.generic.vo.RemoteCitationFullVO)
protected abstract  void handleRemoveCitation(RemoteCitationFullVO citation)
          Performs the core logic for removeCitation(fr.ifremer.allegro.referential.taxon.generic.vo.RemoteCitationFullVO)
protected abstract  void handleUpdateCitation(RemoteCitationFullVO citation)
          Performs the core logic for updateCitation(fr.ifremer.allegro.referential.taxon.generic.vo.RemoteCitationFullVO)
 boolean remoteCitationFullVOsAreEqual(RemoteCitationFullVO remoteCitationFullVOFirst, RemoteCitationFullVO remoteCitationFullVOSecond)
           
 boolean remoteCitationFullVOsAreEqualOnIdentifiers(RemoteCitationFullVO remoteCitationFullVOFirst, RemoteCitationFullVO remoteCitationFullVOSecond)
           
 void removeCitation(RemoteCitationFullVO citation)
           
 void setCitationDao(CitationDao citationDao)
          Sets the reference to citation's DAO.
 void setStatusDao(StatusDao statusDao)
          Sets the reference to status's DAO.
 void updateCitation(RemoteCitationFullVO citation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteCitationFullServiceBase

public RemoteCitationFullServiceBase()
Method Detail

setCitationDao

public void setCitationDao(CitationDao citationDao)
Sets the reference to citation's DAO.


getCitationDao

protected CitationDao getCitationDao()
Gets the reference to citation'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.


addCitation

public RemoteCitationFullVO addCitation(RemoteCitationFullVO citation)
Specified by:
addCitation in interface RemoteCitationFullService
See Also:
RemoteCitationFullService.addCitation(fr.ifremer.allegro.referential.taxon.generic.vo.RemoteCitationFullVO)

handleAddCitation

protected abstract RemoteCitationFullVO handleAddCitation(RemoteCitationFullVO citation)
                                                   throws java.lang.Exception
Performs the core logic for addCitation(fr.ifremer.allegro.referential.taxon.generic.vo.RemoteCitationFullVO)

Throws:
java.lang.Exception

updateCitation

public void updateCitation(RemoteCitationFullVO citation)
Specified by:
updateCitation in interface RemoteCitationFullService
See Also:
RemoteCitationFullService.updateCitation(fr.ifremer.allegro.referential.taxon.generic.vo.RemoteCitationFullVO)

handleUpdateCitation

protected abstract void handleUpdateCitation(RemoteCitationFullVO citation)
                                      throws java.lang.Exception
Performs the core logic for updateCitation(fr.ifremer.allegro.referential.taxon.generic.vo.RemoteCitationFullVO)

Throws:
java.lang.Exception

removeCitation

public void removeCitation(RemoteCitationFullVO citation)
Specified by:
removeCitation in interface RemoteCitationFullService
See Also:
RemoteCitationFullService.removeCitation(fr.ifremer.allegro.referential.taxon.generic.vo.RemoteCitationFullVO)

handleRemoveCitation

protected abstract void handleRemoveCitation(RemoteCitationFullVO citation)
                                      throws java.lang.Exception
Performs the core logic for removeCitation(fr.ifremer.allegro.referential.taxon.generic.vo.RemoteCitationFullVO)

Throws:
java.lang.Exception

getAllCitation

public RemoteCitationFullVO[] getAllCitation()
Specified by:
getAllCitation in interface RemoteCitationFullService
See Also:
RemoteCitationFullService.getAllCitation()

handleGetAllCitation

protected abstract RemoteCitationFullVO[] handleGetAllCitation()
                                                        throws java.lang.Exception
Performs the core logic for getAllCitation()

Throws:
java.lang.Exception

getCitationById

public RemoteCitationFullVO getCitationById(java.lang.Integer id)
Specified by:
getCitationById in interface RemoteCitationFullService
See Also:
RemoteCitationFullService.getCitationById(java.lang.Integer)

handleGetCitationById

protected abstract RemoteCitationFullVO handleGetCitationById(java.lang.Integer id)
                                                       throws java.lang.Exception
Performs the core logic for getCitationById(java.lang.Integer)

Throws:
java.lang.Exception

getCitationByIds

public RemoteCitationFullVO[] getCitationByIds(java.lang.Integer[] id)
Specified by:
getCitationByIds in interface RemoteCitationFullService
See Also:
RemoteCitationFullService.getCitationByIds(java.lang.Integer[])

handleGetCitationByIds

protected abstract RemoteCitationFullVO[] handleGetCitationByIds(java.lang.Integer[] id)
                                                          throws java.lang.Exception
Performs the core logic for getCitationByIds(java.lang.Integer[])

Throws:
java.lang.Exception

getCitationByStatusCode

public RemoteCitationFullVO[] getCitationByStatusCode(java.lang.String code)
Specified by:
getCitationByStatusCode in interface RemoteCitationFullService
See Also:
RemoteCitationFullService.getCitationByStatusCode(java.lang.String)

handleGetCitationByStatusCode

protected abstract RemoteCitationFullVO[] handleGetCitationByStatusCode(java.lang.String code)
                                                                 throws java.lang.Exception
Performs the core logic for getCitationByStatusCode(java.lang.String)

Throws:
java.lang.Exception

remoteCitationFullVOsAreEqualOnIdentifiers

public boolean remoteCitationFullVOsAreEqualOnIdentifiers(RemoteCitationFullVO remoteCitationFullVOFirst,
                                                          RemoteCitationFullVO remoteCitationFullVOSecond)
Specified by:
remoteCitationFullVOsAreEqualOnIdentifiers in interface RemoteCitationFullService
See Also:
RemoteCitationFullService.remoteCitationFullVOsAreEqualOnIdentifiers(fr.ifremer.allegro.referential.taxon.generic.vo.RemoteCitationFullVO, fr.ifremer.allegro.referential.taxon.generic.vo.RemoteCitationFullVO)

handleRemoteCitationFullVOsAreEqualOnIdentifiers

protected abstract boolean handleRemoteCitationFullVOsAreEqualOnIdentifiers(RemoteCitationFullVO remoteCitationFullVOFirst,
                                                                            RemoteCitationFullVO remoteCitationFullVOSecond)
                                                                     throws java.lang.Exception
Performs the core logic for remoteCitationFullVOsAreEqualOnIdentifiers(fr.ifremer.allegro.referential.taxon.generic.vo.RemoteCitationFullVO, fr.ifremer.allegro.referential.taxon.generic.vo.RemoteCitationFullVO)

Throws:
java.lang.Exception

remoteCitationFullVOsAreEqual

public boolean remoteCitationFullVOsAreEqual(RemoteCitationFullVO remoteCitationFullVOFirst,
                                             RemoteCitationFullVO remoteCitationFullVOSecond)
Specified by:
remoteCitationFullVOsAreEqual in interface RemoteCitationFullService
See Also:
RemoteCitationFullService.remoteCitationFullVOsAreEqual(fr.ifremer.allegro.referential.taxon.generic.vo.RemoteCitationFullVO, fr.ifremer.allegro.referential.taxon.generic.vo.RemoteCitationFullVO)

handleRemoteCitationFullVOsAreEqual

protected abstract boolean handleRemoteCitationFullVOsAreEqual(RemoteCitationFullVO remoteCitationFullVOFirst,
                                                               RemoteCitationFullVO remoteCitationFullVOSecond)
                                                        throws java.lang.Exception
Performs the core logic for remoteCitationFullVOsAreEqual(fr.ifremer.allegro.referential.taxon.generic.vo.RemoteCitationFullVO, fr.ifremer.allegro.referential.taxon.generic.vo.RemoteCitationFullVO)

Throws:
java.lang.Exception

getCitationNaturalIds

public RemoteCitationNaturalId[] getCitationNaturalIds()
Specified by:
getCitationNaturalIds in interface RemoteCitationFullService
See Also:
RemoteCitationFullService.getCitationNaturalIds()

handleGetCitationNaturalIds

protected abstract RemoteCitationNaturalId[] handleGetCitationNaturalIds()
                                                                  throws java.lang.Exception
Performs the core logic for getCitationNaturalIds()

Throws:
java.lang.Exception

getCitationByNaturalId

public RemoteCitationFullVO getCitationByNaturalId(RemoteCitationNaturalId citationNaturalId)
Specified by:
getCitationByNaturalId in interface RemoteCitationFullService
See Also:
RemoteCitationFullService.getCitationByNaturalId(fr.ifremer.allegro.referential.taxon.generic.vo.RemoteCitationNaturalId)

handleGetCitationByNaturalId

protected abstract RemoteCitationFullVO handleGetCitationByNaturalId(RemoteCitationNaturalId citationNaturalId)
                                                              throws java.lang.Exception
Performs the core logic for getCitationByNaturalId(fr.ifremer.allegro.referential.taxon.generic.vo.RemoteCitationNaturalId)

Throws:
java.lang.Exception

getCitationNaturalIdById

public RemoteCitationNaturalId getCitationNaturalIdById(java.lang.Integer id)
Specified by:
getCitationNaturalIdById in interface RemoteCitationFullService
See Also:
RemoteCitationFullService.getCitationNaturalIdById(java.lang.Integer)

handleGetCitationNaturalIdById

protected abstract RemoteCitationNaturalId handleGetCitationNaturalIdById(java.lang.Integer id)
                                                                   throws java.lang.Exception
Performs the core logic for getCitationNaturalIdById(java.lang.Integer)

Throws:
java.lang.Exception

addOrUpdateClusterCitation

public ClusterCitation addOrUpdateClusterCitation(ClusterCitation clusterCitation)
Specified by:
addOrUpdateClusterCitation in interface RemoteCitationFullService
See Also:
RemoteCitationFullService.addOrUpdateClusterCitation(fr.ifremer.allegro.referential.taxon.generic.cluster.ClusterCitation)

handleAddOrUpdateClusterCitation

protected abstract ClusterCitation handleAddOrUpdateClusterCitation(ClusterCitation clusterCitation)
                                                             throws java.lang.Exception
Performs the core logic for addOrUpdateClusterCitation(fr.ifremer.allegro.referential.taxon.generic.cluster.ClusterCitation)

Throws:
java.lang.Exception

getAllClusterCitationSinceDateSynchro

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

handleGetAllClusterCitationSinceDateSynchro

protected abstract ClusterCitation[] handleGetAllClusterCitationSinceDateSynchro(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 getAllClusterCitationSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

Throws:
java.lang.Exception

getClusterCitationByIdentifiers

public ClusterCitation getClusterCitationByIdentifiers(java.lang.Integer id)
Specified by:
getClusterCitationByIdentifiers in interface RemoteCitationFullService
See Also:
RemoteCitationFullService.getClusterCitationByIdentifiers(java.lang.Integer)

handleGetClusterCitationByIdentifiers

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