fr.ifremer.allegro.administration.programStrategy.generic.service
Class RemoteProgramFullServiceBase

java.lang.Object
  extended by fr.ifremer.allegro.administration.programStrategy.generic.service.RemoteProgramFullServiceBase
All Implemented Interfaces:
RemoteProgramFullService
Direct Known Subclasses:
RemoteProgramFullServiceImpl

public abstract class RemoteProgramFullServiceBase
extends java.lang.Object
implements RemoteProgramFullService

Spring Service base class for fr.ifremer.allegro.administration.programStrategy.generic.service.RemoteProgramFullService, provides access to all services and entities referenced by this service.

See Also:
RemoteProgramFullService

Constructor Summary
RemoteProgramFullServiceBase()
           
 
Method Summary
 ClusterProgram addOrUpdateClusterProgram(ClusterProgram clusterProgram)
           
 RemoteProgramFullVO addProgram(RemoteProgramFullVO program)
           
 ClusterProgram[] getAllClusterProgramSinceDateSynchro(java.sql.Timestamp synchronizationTimestamp, java.lang.Integer userId, java.lang.Integer[] registrationLocationIds, java.lang.Integer pageNumber, java.lang.Integer pageSize)
           
 RemoteProgramFullVO[] getAllProgram()
           
 ClusterProgram getClusterProgramByIdentifiers(java.lang.String code)
           
protected  GearClassificationDao getGearClassificationDao()
          Gets the reference to gearClassification's DAO.
protected  LocationClassificationDao getLocationClassificationDao()
          Gets the reference to locationClassification's DAO.
protected  LocationDao getLocationDao()
          Gets the reference to location'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  java.security.Principal getPrincipal()
          Gets the current principal if one has been set, otherwise returns null.
protected  Program2DepartmentDao getProgram2DepartmentDao()
          Gets the reference to program2Department's DAO.
protected  Program2PersonDao getProgram2PersonDao()
          Gets the reference to program2Person's DAO.
 RemoteProgramFullVO getProgramByCode(java.lang.String code)
           
 RemoteProgramFullVO[] getProgramByCodes(java.lang.String[] code)
           
 RemoteProgramFullVO[] getProgramByGearClassificationId(java.lang.Integer id)
           
 RemoteProgramFullVO getProgramByNaturalId(RemoteProgramNaturalId programNaturalId)
           
protected  ProgramDao getProgramDao()
          Gets the reference to program's DAO.
 RemoteProgramNaturalId getProgramNaturalIdByCode(java.lang.String code)
           
 RemoteProgramNaturalId[] getProgramNaturalIds()
           
protected  StrategyDao getStrategyDao()
          Gets the reference to strategy's DAO.
protected abstract  ClusterProgram handleAddOrUpdateClusterProgram(ClusterProgram clusterProgram)
          Performs the core logic for addOrUpdateClusterProgram(fr.ifremer.allegro.administration.programStrategy.generic.cluster.ClusterProgram)
protected abstract  RemoteProgramFullVO handleAddProgram(RemoteProgramFullVO program)
          Performs the core logic for addProgram(fr.ifremer.allegro.administration.programStrategy.generic.vo.RemoteProgramFullVO)
protected abstract  ClusterProgram[] handleGetAllClusterProgramSinceDateSynchro(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 getAllClusterProgramSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)
protected abstract  RemoteProgramFullVO[] handleGetAllProgram()
          Performs the core logic for getAllProgram()
protected abstract  ClusterProgram handleGetClusterProgramByIdentifiers(java.lang.String code)
          Performs the core logic for getClusterProgramByIdentifiers(java.lang.String)
protected abstract  RemoteProgramFullVO handleGetProgramByCode(java.lang.String code)
          Performs the core logic for getProgramByCode(java.lang.String)
protected abstract  RemoteProgramFullVO[] handleGetProgramByCodes(java.lang.String[] code)
          Performs the core logic for getProgramByCodes(java.lang.String[])
protected abstract  RemoteProgramFullVO[] handleGetProgramByGearClassificationId(java.lang.Integer id)
          Performs the core logic for getProgramByGearClassificationId(java.lang.Integer)
protected abstract  RemoteProgramFullVO handleGetProgramByNaturalId(RemoteProgramNaturalId programNaturalId)
          Performs the core logic for getProgramByNaturalId(fr.ifremer.allegro.administration.programStrategy.generic.vo.RemoteProgramNaturalId)
protected abstract  RemoteProgramNaturalId handleGetProgramNaturalIdByCode(java.lang.String code)
          Performs the core logic for getProgramNaturalIdByCode(java.lang.String)
protected abstract  RemoteProgramNaturalId[] handleGetProgramNaturalIds()
          Performs the core logic for getProgramNaturalIds()
protected abstract  boolean handleRemoteProgramFullVOsAreEqual(RemoteProgramFullVO remoteProgramFullVOFirst, RemoteProgramFullVO remoteProgramFullVOSecond)
          Performs the core logic for remoteProgramFullVOsAreEqual(fr.ifremer.allegro.administration.programStrategy.generic.vo.RemoteProgramFullVO, fr.ifremer.allegro.administration.programStrategy.generic.vo.RemoteProgramFullVO)
protected abstract  boolean handleRemoteProgramFullVOsAreEqualOnIdentifiers(RemoteProgramFullVO remoteProgramFullVOFirst, RemoteProgramFullVO remoteProgramFullVOSecond)
          Performs the core logic for remoteProgramFullVOsAreEqualOnIdentifiers(fr.ifremer.allegro.administration.programStrategy.generic.vo.RemoteProgramFullVO, fr.ifremer.allegro.administration.programStrategy.generic.vo.RemoteProgramFullVO)
protected abstract  void handleRemoveProgram(RemoteProgramFullVO program)
          Performs the core logic for removeProgram(fr.ifremer.allegro.administration.programStrategy.generic.vo.RemoteProgramFullVO)
protected abstract  void handleUpdateProgram(RemoteProgramFullVO program)
          Performs the core logic for updateProgram(fr.ifremer.allegro.administration.programStrategy.generic.vo.RemoteProgramFullVO)
 boolean remoteProgramFullVOsAreEqual(RemoteProgramFullVO remoteProgramFullVOFirst, RemoteProgramFullVO remoteProgramFullVOSecond)
           
 boolean remoteProgramFullVOsAreEqualOnIdentifiers(RemoteProgramFullVO remoteProgramFullVOFirst, RemoteProgramFullVO remoteProgramFullVOSecond)
           
 void removeProgram(RemoteProgramFullVO program)
           
 void setGearClassificationDao(GearClassificationDao gearClassificationDao)
          Sets the reference to gearClassification's DAO.
 void setLocationClassificationDao(LocationClassificationDao locationClassificationDao)
          Sets the reference to locationClassification's DAO.
 void setLocationDao(LocationDao locationDao)
          Sets the reference to location's DAO.
 void setProgram2DepartmentDao(Program2DepartmentDao program2DepartmentDao)
          Sets the reference to program2Department's DAO.
 void setProgram2PersonDao(Program2PersonDao program2PersonDao)
          Sets the reference to program2Person's DAO.
 void setProgramDao(ProgramDao programDao)
          Sets the reference to program's DAO.
 void setStrategyDao(StrategyDao strategyDao)
          Sets the reference to strategy's DAO.
 void updateProgram(RemoteProgramFullVO program)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteProgramFullServiceBase

public RemoteProgramFullServiceBase()
Method Detail

setProgramDao

public void setProgramDao(ProgramDao programDao)
Sets the reference to program's DAO.


getProgramDao

protected ProgramDao getProgramDao()
Gets the reference to program's DAO.


setStrategyDao

public void setStrategyDao(StrategyDao strategyDao)
Sets the reference to strategy's DAO.


getStrategyDao

protected StrategyDao getStrategyDao()
Gets the reference to strategy's DAO.


setLocationClassificationDao

public void setLocationClassificationDao(LocationClassificationDao locationClassificationDao)
Sets the reference to locationClassification's DAO.


getLocationClassificationDao

protected LocationClassificationDao getLocationClassificationDao()
Gets the reference to locationClassification's DAO.


setLocationDao

public void setLocationDao(LocationDao locationDao)
Sets the reference to location's DAO.


getLocationDao

protected LocationDao getLocationDao()
Gets the reference to location's DAO.


setGearClassificationDao

public void setGearClassificationDao(GearClassificationDao gearClassificationDao)
Sets the reference to gearClassification's DAO.


getGearClassificationDao

protected GearClassificationDao getGearClassificationDao()
Gets the reference to gearClassification's DAO.


setProgram2DepartmentDao

public void setProgram2DepartmentDao(Program2DepartmentDao program2DepartmentDao)
Sets the reference to program2Department's DAO.


getProgram2DepartmentDao

protected Program2DepartmentDao getProgram2DepartmentDao()
Gets the reference to program2Department's DAO.


setProgram2PersonDao

public void setProgram2PersonDao(Program2PersonDao program2PersonDao)
Sets the reference to program2Person's DAO.


getProgram2PersonDao

protected Program2PersonDao getProgram2PersonDao()
Gets the reference to program2Person's DAO.


addProgram

public RemoteProgramFullVO addProgram(RemoteProgramFullVO program)
Specified by:
addProgram in interface RemoteProgramFullService
See Also:
RemoteProgramFullService.addProgram(fr.ifremer.allegro.administration.programStrategy.generic.vo.RemoteProgramFullVO)

handleAddProgram

protected abstract RemoteProgramFullVO handleAddProgram(RemoteProgramFullVO program)
                                                 throws java.lang.Exception
Performs the core logic for addProgram(fr.ifremer.allegro.administration.programStrategy.generic.vo.RemoteProgramFullVO)

Throws:
java.lang.Exception

updateProgram

public void updateProgram(RemoteProgramFullVO program)
Specified by:
updateProgram in interface RemoteProgramFullService
See Also:
RemoteProgramFullService.updateProgram(fr.ifremer.allegro.administration.programStrategy.generic.vo.RemoteProgramFullVO)

handleUpdateProgram

protected abstract void handleUpdateProgram(RemoteProgramFullVO program)
                                     throws java.lang.Exception
Performs the core logic for updateProgram(fr.ifremer.allegro.administration.programStrategy.generic.vo.RemoteProgramFullVO)

Throws:
java.lang.Exception

removeProgram

public void removeProgram(RemoteProgramFullVO program)
Specified by:
removeProgram in interface RemoteProgramFullService
See Also:
RemoteProgramFullService.removeProgram(fr.ifremer.allegro.administration.programStrategy.generic.vo.RemoteProgramFullVO)

handleRemoveProgram

protected abstract void handleRemoveProgram(RemoteProgramFullVO program)
                                     throws java.lang.Exception
Performs the core logic for removeProgram(fr.ifremer.allegro.administration.programStrategy.generic.vo.RemoteProgramFullVO)

Throws:
java.lang.Exception

getAllProgram

public RemoteProgramFullVO[] getAllProgram()
Specified by:
getAllProgram in interface RemoteProgramFullService
See Also:
RemoteProgramFullService.getAllProgram()

handleGetAllProgram

protected abstract RemoteProgramFullVO[] handleGetAllProgram()
                                                      throws java.lang.Exception
Performs the core logic for getAllProgram()

Throws:
java.lang.Exception

getProgramByCode

public RemoteProgramFullVO getProgramByCode(java.lang.String code)
Specified by:
getProgramByCode in interface RemoteProgramFullService
See Also:
RemoteProgramFullService.getProgramByCode(java.lang.String)

handleGetProgramByCode

protected abstract RemoteProgramFullVO handleGetProgramByCode(java.lang.String code)
                                                       throws java.lang.Exception
Performs the core logic for getProgramByCode(java.lang.String)

Throws:
java.lang.Exception

getProgramByCodes

public RemoteProgramFullVO[] getProgramByCodes(java.lang.String[] code)
Specified by:
getProgramByCodes in interface RemoteProgramFullService
See Also:
RemoteProgramFullService.getProgramByCodes(java.lang.String[])

handleGetProgramByCodes

protected abstract RemoteProgramFullVO[] handleGetProgramByCodes(java.lang.String[] code)
                                                          throws java.lang.Exception
Performs the core logic for getProgramByCodes(java.lang.String[])

Throws:
java.lang.Exception

getProgramByGearClassificationId

public RemoteProgramFullVO[] getProgramByGearClassificationId(java.lang.Integer id)
Specified by:
getProgramByGearClassificationId in interface RemoteProgramFullService
See Also:
RemoteProgramFullService.getProgramByGearClassificationId(java.lang.Integer)

handleGetProgramByGearClassificationId

protected abstract RemoteProgramFullVO[] handleGetProgramByGearClassificationId(java.lang.Integer id)
                                                                         throws java.lang.Exception
Performs the core logic for getProgramByGearClassificationId(java.lang.Integer)

Throws:
java.lang.Exception

remoteProgramFullVOsAreEqualOnIdentifiers

public boolean remoteProgramFullVOsAreEqualOnIdentifiers(RemoteProgramFullVO remoteProgramFullVOFirst,
                                                         RemoteProgramFullVO remoteProgramFullVOSecond)
Specified by:
remoteProgramFullVOsAreEqualOnIdentifiers in interface RemoteProgramFullService
See Also:
RemoteProgramFullService.remoteProgramFullVOsAreEqualOnIdentifiers(fr.ifremer.allegro.administration.programStrategy.generic.vo.RemoteProgramFullVO, fr.ifremer.allegro.administration.programStrategy.generic.vo.RemoteProgramFullVO)

handleRemoteProgramFullVOsAreEqualOnIdentifiers

protected abstract boolean handleRemoteProgramFullVOsAreEqualOnIdentifiers(RemoteProgramFullVO remoteProgramFullVOFirst,
                                                                           RemoteProgramFullVO remoteProgramFullVOSecond)
                                                                    throws java.lang.Exception
Performs the core logic for remoteProgramFullVOsAreEqualOnIdentifiers(fr.ifremer.allegro.administration.programStrategy.generic.vo.RemoteProgramFullVO, fr.ifremer.allegro.administration.programStrategy.generic.vo.RemoteProgramFullVO)

Throws:
java.lang.Exception

remoteProgramFullVOsAreEqual

public boolean remoteProgramFullVOsAreEqual(RemoteProgramFullVO remoteProgramFullVOFirst,
                                            RemoteProgramFullVO remoteProgramFullVOSecond)
Specified by:
remoteProgramFullVOsAreEqual in interface RemoteProgramFullService
See Also:
RemoteProgramFullService.remoteProgramFullVOsAreEqual(fr.ifremer.allegro.administration.programStrategy.generic.vo.RemoteProgramFullVO, fr.ifremer.allegro.administration.programStrategy.generic.vo.RemoteProgramFullVO)

handleRemoteProgramFullVOsAreEqual

protected abstract boolean handleRemoteProgramFullVOsAreEqual(RemoteProgramFullVO remoteProgramFullVOFirst,
                                                              RemoteProgramFullVO remoteProgramFullVOSecond)
                                                       throws java.lang.Exception
Performs the core logic for remoteProgramFullVOsAreEqual(fr.ifremer.allegro.administration.programStrategy.generic.vo.RemoteProgramFullVO, fr.ifremer.allegro.administration.programStrategy.generic.vo.RemoteProgramFullVO)

Throws:
java.lang.Exception

getProgramNaturalIds

public RemoteProgramNaturalId[] getProgramNaturalIds()
Specified by:
getProgramNaturalIds in interface RemoteProgramFullService
See Also:
RemoteProgramFullService.getProgramNaturalIds()

handleGetProgramNaturalIds

protected abstract RemoteProgramNaturalId[] handleGetProgramNaturalIds()
                                                                throws java.lang.Exception
Performs the core logic for getProgramNaturalIds()

Throws:
java.lang.Exception

getProgramByNaturalId

public RemoteProgramFullVO getProgramByNaturalId(RemoteProgramNaturalId programNaturalId)
Specified by:
getProgramByNaturalId in interface RemoteProgramFullService
See Also:
RemoteProgramFullService.getProgramByNaturalId(fr.ifremer.allegro.administration.programStrategy.generic.vo.RemoteProgramNaturalId)

handleGetProgramByNaturalId

protected abstract RemoteProgramFullVO handleGetProgramByNaturalId(RemoteProgramNaturalId programNaturalId)
                                                            throws java.lang.Exception
Performs the core logic for getProgramByNaturalId(fr.ifremer.allegro.administration.programStrategy.generic.vo.RemoteProgramNaturalId)

Throws:
java.lang.Exception

getProgramNaturalIdByCode

public RemoteProgramNaturalId getProgramNaturalIdByCode(java.lang.String code)
Specified by:
getProgramNaturalIdByCode in interface RemoteProgramFullService
See Also:
RemoteProgramFullService.getProgramNaturalIdByCode(java.lang.String)

handleGetProgramNaturalIdByCode

protected abstract RemoteProgramNaturalId handleGetProgramNaturalIdByCode(java.lang.String code)
                                                                   throws java.lang.Exception
Performs the core logic for getProgramNaturalIdByCode(java.lang.String)

Throws:
java.lang.Exception

addOrUpdateClusterProgram

public ClusterProgram addOrUpdateClusterProgram(ClusterProgram clusterProgram)
Specified by:
addOrUpdateClusterProgram in interface RemoteProgramFullService
See Also:
RemoteProgramFullService.addOrUpdateClusterProgram(fr.ifremer.allegro.administration.programStrategy.generic.cluster.ClusterProgram)

handleAddOrUpdateClusterProgram

protected abstract ClusterProgram handleAddOrUpdateClusterProgram(ClusterProgram clusterProgram)
                                                           throws java.lang.Exception
Performs the core logic for addOrUpdateClusterProgram(fr.ifremer.allegro.administration.programStrategy.generic.cluster.ClusterProgram)

Throws:
java.lang.Exception

getAllClusterProgramSinceDateSynchro

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

handleGetAllClusterProgramSinceDateSynchro

protected abstract ClusterProgram[] handleGetAllClusterProgramSinceDateSynchro(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 getAllClusterProgramSinceDateSynchro(java.sql.Timestamp, java.lang.Integer, java.lang.Integer[], java.lang.Integer, java.lang.Integer)

Throws:
java.lang.Exception

getClusterProgramByIdentifiers

public ClusterProgram getClusterProgramByIdentifiers(java.lang.String code)
Specified by:
getClusterProgramByIdentifiers in interface RemoteProgramFullService
See Also:
RemoteProgramFullService.getClusterProgramByIdentifiers(java.lang.String)

handleGetClusterProgramByIdentifiers

protected abstract ClusterProgram handleGetClusterProgramByIdentifiers(java.lang.String code)
                                                                throws java.lang.Exception
Performs the core logic for getClusterProgramByIdentifiers(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.