fr.ifremer.allegro.data.measure.photo.generic.service
Class RemotePhotoFullServiceBase

java.lang.Object
  extended by fr.ifremer.allegro.data.measure.photo.generic.service.RemotePhotoFullServiceBase
All Implemented Interfaces:
RemotePhotoFullService
Direct Known Subclasses:
RemotePhotoFullServiceImpl

public abstract class RemotePhotoFullServiceBase
extends java.lang.Object
implements RemotePhotoFullService

Spring Service base class for fr.ifremer.allegro.data.measure.photo.generic.service.RemotePhotoFullService, provides access to all services and entities referenced by this service.

See Also:
RemotePhotoFullService

Constructor Summary
RemotePhotoFullServiceBase()
           
 
Method Summary
 ClusterPhoto addOrUpdateClusterPhoto(ClusterPhoto clusterPhoto)
           
 RemotePhotoFullVO addPhoto(RemotePhotoFullVO photo)
           
 ClusterPhoto[] getAllClusterPhotoSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
 RemotePhotoFullVO[] getAllPhoto()
           
 ClusterPhoto getClusterPhotoByIdentifiers(java.lang.Integer id)
           
protected  DepartmentDao getDepartmentDao()
          Gets the reference to department's DAO.
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  ObjectTypeDao getObjectTypeDao()
          Gets the reference to objectType's DAO.
 RemotePhotoFullVO[] getPhotoByDepartmentId(java.lang.Integer id)
           
 RemotePhotoFullVO getPhotoById(java.lang.Integer id)
           
 RemotePhotoFullVO[] getPhotoByIds(java.lang.Integer[] id)
           
 RemotePhotoFullVO getPhotoByNaturalId(RemotePhotoNaturalId photoNaturalId)
           
 RemotePhotoFullVO[] getPhotoByObjectTypeCode(java.lang.String code)
           
 RemotePhotoFullVO[] getPhotoByPhotoTypeCode(java.lang.String code)
           
 RemotePhotoFullVO[] getPhotoByQualityFlagCode(java.lang.String code)
           
protected  PhotoDao getPhotoDao()
          Gets the reference to photo's DAO.
 RemotePhotoNaturalId getPhotoNaturalIdById(java.lang.Integer id)
           
 RemotePhotoNaturalId[] getPhotoNaturalIds()
           
protected  PhotoTypeDao getPhotoTypeDao()
          Gets the reference to photoType's DAO.
protected  java.security.Principal getPrincipal()
          Gets the current principal if one has been set, otherwise returns null.
protected  QualityFlagDao getQualityFlagDao()
          Gets the reference to qualityFlag's DAO.
protected abstract  ClusterPhoto handleAddOrUpdateClusterPhoto(ClusterPhoto clusterPhoto)
          Performs the core logic for addOrUpdateClusterPhoto(fr.ifremer.allegro.data.measure.photo.generic.cluster.ClusterPhoto)
protected abstract  RemotePhotoFullVO handleAddPhoto(RemotePhotoFullVO photo)
          Performs the core logic for addPhoto(fr.ifremer.allegro.data.measure.photo.generic.vo.RemotePhotoFullVO)
protected abstract  ClusterPhoto[] handleGetAllClusterPhotoSinceDateSynchro(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 getAllClusterPhotoSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
protected abstract  RemotePhotoFullVO[] handleGetAllPhoto()
          Performs the core logic for getAllPhoto()
protected abstract  ClusterPhoto handleGetClusterPhotoByIdentifiers(java.lang.Integer id)
          Performs the core logic for getClusterPhotoByIdentifiers(java.lang.Integer)
protected abstract  RemotePhotoFullVO[] handleGetPhotoByDepartmentId(java.lang.Integer id)
          Performs the core logic for getPhotoByDepartmentId(java.lang.Integer)
protected abstract  RemotePhotoFullVO handleGetPhotoById(java.lang.Integer id)
          Performs the core logic for getPhotoById(java.lang.Integer)
protected abstract  RemotePhotoFullVO[] handleGetPhotoByIds(java.lang.Integer[] id)
          Performs the core logic for getPhotoByIds(java.lang.Integer[])
protected abstract  RemotePhotoFullVO handleGetPhotoByNaturalId(RemotePhotoNaturalId photoNaturalId)
          Performs the core logic for getPhotoByNaturalId(fr.ifremer.allegro.data.measure.photo.generic.vo.RemotePhotoNaturalId)
protected abstract  RemotePhotoFullVO[] handleGetPhotoByObjectTypeCode(java.lang.String code)
          Performs the core logic for getPhotoByObjectTypeCode(java.lang.String)
protected abstract  RemotePhotoFullVO[] handleGetPhotoByPhotoTypeCode(java.lang.String code)
          Performs the core logic for getPhotoByPhotoTypeCode(java.lang.String)
protected abstract  RemotePhotoFullVO[] handleGetPhotoByQualityFlagCode(java.lang.String code)
          Performs the core logic for getPhotoByQualityFlagCode(java.lang.String)
protected abstract  RemotePhotoNaturalId handleGetPhotoNaturalIdById(java.lang.Integer id)
          Performs the core logic for getPhotoNaturalIdById(java.lang.Integer)
protected abstract  RemotePhotoNaturalId[] handleGetPhotoNaturalIds()
          Performs the core logic for getPhotoNaturalIds()
protected abstract  boolean handleRemotePhotoFullVOsAreEqual(RemotePhotoFullVO remotePhotoFullVOFirst, RemotePhotoFullVO remotePhotoFullVOSecond)
          Performs the core logic for remotePhotoFullVOsAreEqual(fr.ifremer.allegro.data.measure.photo.generic.vo.RemotePhotoFullVO, fr.ifremer.allegro.data.measure.photo.generic.vo.RemotePhotoFullVO)
protected abstract  boolean handleRemotePhotoFullVOsAreEqualOnIdentifiers(RemotePhotoFullVO remotePhotoFullVOFirst, RemotePhotoFullVO remotePhotoFullVOSecond)
          Performs the core logic for remotePhotoFullVOsAreEqualOnIdentifiers(fr.ifremer.allegro.data.measure.photo.generic.vo.RemotePhotoFullVO, fr.ifremer.allegro.data.measure.photo.generic.vo.RemotePhotoFullVO)
protected abstract  void handleRemovePhoto(RemotePhotoFullVO photo)
          Performs the core logic for removePhoto(fr.ifremer.allegro.data.measure.photo.generic.vo.RemotePhotoFullVO)
protected abstract  void handleUpdatePhoto(RemotePhotoFullVO photo)
          Performs the core logic for updatePhoto(fr.ifremer.allegro.data.measure.photo.generic.vo.RemotePhotoFullVO)
 boolean remotePhotoFullVOsAreEqual(RemotePhotoFullVO remotePhotoFullVOFirst, RemotePhotoFullVO remotePhotoFullVOSecond)
           
 boolean remotePhotoFullVOsAreEqualOnIdentifiers(RemotePhotoFullVO remotePhotoFullVOFirst, RemotePhotoFullVO remotePhotoFullVOSecond)
           
 void removePhoto(RemotePhotoFullVO photo)
           
 void setDepartmentDao(DepartmentDao departmentDao)
          Sets the reference to department's DAO.
 void setObjectTypeDao(ObjectTypeDao objectTypeDao)
          Sets the reference to objectType's DAO.
 void setPhotoDao(PhotoDao photoDao)
          Sets the reference to photo's DAO.
 void setPhotoTypeDao(PhotoTypeDao photoTypeDao)
          Sets the reference to photoType's DAO.
 void setQualityFlagDao(QualityFlagDao qualityFlagDao)
          Sets the reference to qualityFlag's DAO.
 void updatePhoto(RemotePhotoFullVO photo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemotePhotoFullServiceBase

public RemotePhotoFullServiceBase()
Method Detail

setPhotoDao

public void setPhotoDao(PhotoDao photoDao)
Sets the reference to photo's DAO.


getPhotoDao

protected PhotoDao getPhotoDao()
Gets the reference to photo's DAO.


setDepartmentDao

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


getDepartmentDao

protected DepartmentDao getDepartmentDao()
Gets the reference to department's DAO.


setPhotoTypeDao

public void setPhotoTypeDao(PhotoTypeDao photoTypeDao)
Sets the reference to photoType's DAO.


getPhotoTypeDao

protected PhotoTypeDao getPhotoTypeDao()
Gets the reference to photoType's DAO.


setObjectTypeDao

public void setObjectTypeDao(ObjectTypeDao objectTypeDao)
Sets the reference to objectType's DAO.


getObjectTypeDao

protected ObjectTypeDao getObjectTypeDao()
Gets the reference to objectType's DAO.


setQualityFlagDao

public void setQualityFlagDao(QualityFlagDao qualityFlagDao)
Sets the reference to qualityFlag's DAO.


getQualityFlagDao

protected QualityFlagDao getQualityFlagDao()
Gets the reference to qualityFlag's DAO.


addPhoto

public RemotePhotoFullVO addPhoto(RemotePhotoFullVO photo)
Specified by:
addPhoto in interface RemotePhotoFullService
See Also:
RemotePhotoFullService.addPhoto(fr.ifremer.allegro.data.measure.photo.generic.vo.RemotePhotoFullVO)

handleAddPhoto

protected abstract RemotePhotoFullVO handleAddPhoto(RemotePhotoFullVO photo)
                                             throws java.lang.Exception
Performs the core logic for addPhoto(fr.ifremer.allegro.data.measure.photo.generic.vo.RemotePhotoFullVO)

Throws:
java.lang.Exception

updatePhoto

public void updatePhoto(RemotePhotoFullVO photo)
Specified by:
updatePhoto in interface RemotePhotoFullService
See Also:
RemotePhotoFullService.updatePhoto(fr.ifremer.allegro.data.measure.photo.generic.vo.RemotePhotoFullVO)

handleUpdatePhoto

protected abstract void handleUpdatePhoto(RemotePhotoFullVO photo)
                                   throws java.lang.Exception
Performs the core logic for updatePhoto(fr.ifremer.allegro.data.measure.photo.generic.vo.RemotePhotoFullVO)

Throws:
java.lang.Exception

removePhoto

public void removePhoto(RemotePhotoFullVO photo)
Specified by:
removePhoto in interface RemotePhotoFullService
See Also:
RemotePhotoFullService.removePhoto(fr.ifremer.allegro.data.measure.photo.generic.vo.RemotePhotoFullVO)

handleRemovePhoto

protected abstract void handleRemovePhoto(RemotePhotoFullVO photo)
                                   throws java.lang.Exception
Performs the core logic for removePhoto(fr.ifremer.allegro.data.measure.photo.generic.vo.RemotePhotoFullVO)

Throws:
java.lang.Exception

getAllPhoto

public RemotePhotoFullVO[] getAllPhoto()
Specified by:
getAllPhoto in interface RemotePhotoFullService
See Also:
RemotePhotoFullService.getAllPhoto()

handleGetAllPhoto

protected abstract RemotePhotoFullVO[] handleGetAllPhoto()
                                                  throws java.lang.Exception
Performs the core logic for getAllPhoto()

Throws:
java.lang.Exception

getPhotoById

public RemotePhotoFullVO getPhotoById(java.lang.Integer id)
Specified by:
getPhotoById in interface RemotePhotoFullService
See Also:
RemotePhotoFullService.getPhotoById(java.lang.Integer)

handleGetPhotoById

protected abstract RemotePhotoFullVO handleGetPhotoById(java.lang.Integer id)
                                                 throws java.lang.Exception
Performs the core logic for getPhotoById(java.lang.Integer)

Throws:
java.lang.Exception

getPhotoByIds

public RemotePhotoFullVO[] getPhotoByIds(java.lang.Integer[] id)
Specified by:
getPhotoByIds in interface RemotePhotoFullService
See Also:
RemotePhotoFullService.getPhotoByIds(java.lang.Integer[])

handleGetPhotoByIds

protected abstract RemotePhotoFullVO[] handleGetPhotoByIds(java.lang.Integer[] id)
                                                    throws java.lang.Exception
Performs the core logic for getPhotoByIds(java.lang.Integer[])

Throws:
java.lang.Exception

getPhotoByDepartmentId

public RemotePhotoFullVO[] getPhotoByDepartmentId(java.lang.Integer id)
Specified by:
getPhotoByDepartmentId in interface RemotePhotoFullService
See Also:
RemotePhotoFullService.getPhotoByDepartmentId(java.lang.Integer)

handleGetPhotoByDepartmentId

protected abstract RemotePhotoFullVO[] handleGetPhotoByDepartmentId(java.lang.Integer id)
                                                             throws java.lang.Exception
Performs the core logic for getPhotoByDepartmentId(java.lang.Integer)

Throws:
java.lang.Exception

getPhotoByPhotoTypeCode

public RemotePhotoFullVO[] getPhotoByPhotoTypeCode(java.lang.String code)
Specified by:
getPhotoByPhotoTypeCode in interface RemotePhotoFullService
See Also:
RemotePhotoFullService.getPhotoByPhotoTypeCode(java.lang.String)

handleGetPhotoByPhotoTypeCode

protected abstract RemotePhotoFullVO[] handleGetPhotoByPhotoTypeCode(java.lang.String code)
                                                              throws java.lang.Exception
Performs the core logic for getPhotoByPhotoTypeCode(java.lang.String)

Throws:
java.lang.Exception

getPhotoByObjectTypeCode

public RemotePhotoFullVO[] getPhotoByObjectTypeCode(java.lang.String code)
Specified by:
getPhotoByObjectTypeCode in interface RemotePhotoFullService
See Also:
RemotePhotoFullService.getPhotoByObjectTypeCode(java.lang.String)

handleGetPhotoByObjectTypeCode

protected abstract RemotePhotoFullVO[] handleGetPhotoByObjectTypeCode(java.lang.String code)
                                                               throws java.lang.Exception
Performs the core logic for getPhotoByObjectTypeCode(java.lang.String)

Throws:
java.lang.Exception

getPhotoByQualityFlagCode

public RemotePhotoFullVO[] getPhotoByQualityFlagCode(java.lang.String code)
Specified by:
getPhotoByQualityFlagCode in interface RemotePhotoFullService
See Also:
RemotePhotoFullService.getPhotoByQualityFlagCode(java.lang.String)

handleGetPhotoByQualityFlagCode

protected abstract RemotePhotoFullVO[] handleGetPhotoByQualityFlagCode(java.lang.String code)
                                                                throws java.lang.Exception
Performs the core logic for getPhotoByQualityFlagCode(java.lang.String)

Throws:
java.lang.Exception

remotePhotoFullVOsAreEqualOnIdentifiers

public boolean remotePhotoFullVOsAreEqualOnIdentifiers(RemotePhotoFullVO remotePhotoFullVOFirst,
                                                       RemotePhotoFullVO remotePhotoFullVOSecond)
Specified by:
remotePhotoFullVOsAreEqualOnIdentifiers in interface RemotePhotoFullService
See Also:
RemotePhotoFullService.remotePhotoFullVOsAreEqualOnIdentifiers(fr.ifremer.allegro.data.measure.photo.generic.vo.RemotePhotoFullVO, fr.ifremer.allegro.data.measure.photo.generic.vo.RemotePhotoFullVO)

handleRemotePhotoFullVOsAreEqualOnIdentifiers

protected abstract boolean handleRemotePhotoFullVOsAreEqualOnIdentifiers(RemotePhotoFullVO remotePhotoFullVOFirst,
                                                                         RemotePhotoFullVO remotePhotoFullVOSecond)
                                                                  throws java.lang.Exception
Performs the core logic for remotePhotoFullVOsAreEqualOnIdentifiers(fr.ifremer.allegro.data.measure.photo.generic.vo.RemotePhotoFullVO, fr.ifremer.allegro.data.measure.photo.generic.vo.RemotePhotoFullVO)

Throws:
java.lang.Exception

remotePhotoFullVOsAreEqual

public boolean remotePhotoFullVOsAreEqual(RemotePhotoFullVO remotePhotoFullVOFirst,
                                          RemotePhotoFullVO remotePhotoFullVOSecond)
Specified by:
remotePhotoFullVOsAreEqual in interface RemotePhotoFullService
See Also:
RemotePhotoFullService.remotePhotoFullVOsAreEqual(fr.ifremer.allegro.data.measure.photo.generic.vo.RemotePhotoFullVO, fr.ifremer.allegro.data.measure.photo.generic.vo.RemotePhotoFullVO)

handleRemotePhotoFullVOsAreEqual

protected abstract boolean handleRemotePhotoFullVOsAreEqual(RemotePhotoFullVO remotePhotoFullVOFirst,
                                                            RemotePhotoFullVO remotePhotoFullVOSecond)
                                                     throws java.lang.Exception
Performs the core logic for remotePhotoFullVOsAreEqual(fr.ifremer.allegro.data.measure.photo.generic.vo.RemotePhotoFullVO, fr.ifremer.allegro.data.measure.photo.generic.vo.RemotePhotoFullVO)

Throws:
java.lang.Exception

getPhotoNaturalIds

public RemotePhotoNaturalId[] getPhotoNaturalIds()
Specified by:
getPhotoNaturalIds in interface RemotePhotoFullService
See Also:
RemotePhotoFullService.getPhotoNaturalIds()

handleGetPhotoNaturalIds

protected abstract RemotePhotoNaturalId[] handleGetPhotoNaturalIds()
                                                            throws java.lang.Exception
Performs the core logic for getPhotoNaturalIds()

Throws:
java.lang.Exception

getPhotoByNaturalId

public RemotePhotoFullVO getPhotoByNaturalId(RemotePhotoNaturalId photoNaturalId)
Specified by:
getPhotoByNaturalId in interface RemotePhotoFullService
See Also:
RemotePhotoFullService.getPhotoByNaturalId(fr.ifremer.allegro.data.measure.photo.generic.vo.RemotePhotoNaturalId)

handleGetPhotoByNaturalId

protected abstract RemotePhotoFullVO handleGetPhotoByNaturalId(RemotePhotoNaturalId photoNaturalId)
                                                        throws java.lang.Exception
Performs the core logic for getPhotoByNaturalId(fr.ifremer.allegro.data.measure.photo.generic.vo.RemotePhotoNaturalId)

Throws:
java.lang.Exception

getPhotoNaturalIdById

public RemotePhotoNaturalId getPhotoNaturalIdById(java.lang.Integer id)
Specified by:
getPhotoNaturalIdById in interface RemotePhotoFullService
See Also:
RemotePhotoFullService.getPhotoNaturalIdById(java.lang.Integer)

handleGetPhotoNaturalIdById

protected abstract RemotePhotoNaturalId handleGetPhotoNaturalIdById(java.lang.Integer id)
                                                             throws java.lang.Exception
Performs the core logic for getPhotoNaturalIdById(java.lang.Integer)

Throws:
java.lang.Exception

addOrUpdateClusterPhoto

public ClusterPhoto addOrUpdateClusterPhoto(ClusterPhoto clusterPhoto)
Specified by:
addOrUpdateClusterPhoto in interface RemotePhotoFullService
See Also:
RemotePhotoFullService.addOrUpdateClusterPhoto(fr.ifremer.allegro.data.measure.photo.generic.cluster.ClusterPhoto)

handleAddOrUpdateClusterPhoto

protected abstract ClusterPhoto handleAddOrUpdateClusterPhoto(ClusterPhoto clusterPhoto)
                                                       throws java.lang.Exception
Performs the core logic for addOrUpdateClusterPhoto(fr.ifremer.allegro.data.measure.photo.generic.cluster.ClusterPhoto)

Throws:
java.lang.Exception

getAllClusterPhotoSinceDateSynchro

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

handleGetAllClusterPhotoSinceDateSynchro

protected abstract ClusterPhoto[] handleGetAllClusterPhotoSinceDateSynchro(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 getAllClusterPhotoSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

Throws:
java.lang.Exception

getClusterPhotoByIdentifiers

public ClusterPhoto getClusterPhotoByIdentifiers(java.lang.Integer id)
Specified by:
getClusterPhotoByIdentifiers in interface RemotePhotoFullService
See Also:
RemotePhotoFullService.getClusterPhotoByIdentifiers(java.lang.Integer)

handleGetClusterPhotoByIdentifiers

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