fr.ifremer.allegro.data.specific.service
Class RemoteSynchronizationFullServiceBase

java.lang.Object
  extended by fr.ifremer.allegro.data.specific.service.RemoteSynchronizationFullServiceBase
All Implemented Interfaces:
RemoteSynchronizationFullService
Direct Known Subclasses:
RemoteSynchronizationFullServiceImpl

public abstract class RemoteSynchronizationFullServiceBase
extends java.lang.Object
implements RemoteSynchronizationFullService

Spring Service base class for fr.ifremer.allegro.data.specific.service.RemoteSynchronizationFullService, provides access to all services and entities referenced by this service.

See Also:
RemoteSynchronizationFullService

Constructor Summary
RemoteSynchronizationFullServiceBase()
           
 
Method Summary
 java.sql.Timestamp getCurrentDateTime()
           
protected  DataSynchronizationDao getDataSynchronizationDao()
          Gets the reference to dataSynchronization'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 abstract  java.sql.Timestamp handleGetCurrentDateTime()
          Performs the core logic for getCurrentDateTime()
 void setDataSynchronizationDao(DataSynchronizationDao dataSynchronizationDao)
          Sets the reference to dataSynchronization's DAO.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteSynchronizationFullServiceBase

public RemoteSynchronizationFullServiceBase()
Method Detail

setDataSynchronizationDao

public void setDataSynchronizationDao(DataSynchronizationDao dataSynchronizationDao)
Sets the reference to dataSynchronization's DAO.


getDataSynchronizationDao

protected DataSynchronizationDao getDataSynchronizationDao()
Gets the reference to dataSynchronization's DAO.


getCurrentDateTime

public java.sql.Timestamp getCurrentDateTime()
Specified by:
getCurrentDateTime in interface RemoteSynchronizationFullService
See Also:
RemoteSynchronizationFullService.getCurrentDateTime()

handleGetCurrentDateTime

protected abstract java.sql.Timestamp handleGetCurrentDateTime()
                                                        throws java.lang.Exception
Performs the core logic for getCurrentDateTime()

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.