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

java.lang.Object
  extended by fr.ifremer.allegro.data.specific.service.RemoteConnectionFullServiceBase
All Implemented Interfaces:
RemoteConnectionFullService
Direct Known Subclasses:
RemoteConnectionFullServiceImpl

public abstract class RemoteConnectionFullServiceBase
extends java.lang.Object
implements RemoteConnectionFullService

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

See Also:
RemoteConnectionFullService

Constructor Summary
RemoteConnectionFullServiceBase()
           
 
Method Summary
 RemoteConnectionFullVO bindLdap(java.lang.String login, java.lang.String password)
           
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  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  UserDao getUserDao()
          Gets the reference to user's DAO.
protected  UserProfilDao getUserProfilDao()
          Gets the reference to userProfil's DAO.
protected abstract  RemoteConnectionFullVO handleBindLdap(java.lang.String login, java.lang.String password)
          Performs the core logic for bindLdap(java.lang.String, java.lang.String)
 void setDepartmentDao(DepartmentDao departmentDao)
          Sets the reference to department's DAO.
 void setStatusDao(StatusDao statusDao)
          Sets the reference to status's DAO.
 void setUserDao(UserDao userDao)
          Sets the reference to user's DAO.
 void setUserProfilDao(UserProfilDao userProfilDao)
          Sets the reference to userProfil's DAO.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteConnectionFullServiceBase

public RemoteConnectionFullServiceBase()
Method Detail

setUserProfilDao

public void setUserProfilDao(UserProfilDao userProfilDao)
Sets the reference to userProfil's DAO.


getUserProfilDao

protected UserProfilDao getUserProfilDao()
Gets the reference to userProfil's DAO.


setUserDao

public void setUserDao(UserDao userDao)
Sets the reference to user's DAO.


getUserDao

protected UserDao getUserDao()
Gets the reference to user'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.


setStatusDao

public void setStatusDao(StatusDao statusDao)
Sets the reference to status's DAO.


getStatusDao

protected StatusDao getStatusDao()
Gets the reference to status's DAO.


bindLdap

public RemoteConnectionFullVO bindLdap(java.lang.String login,
                                       java.lang.String password)
Specified by:
bindLdap in interface RemoteConnectionFullService
See Also:
RemoteConnectionFullService.bindLdap(java.lang.String, java.lang.String)

handleBindLdap

protected abstract RemoteConnectionFullVO handleBindLdap(java.lang.String login,
                                                         java.lang.String password)
                                                  throws java.lang.Exception
Performs the core logic for bindLdap(java.lang.String, 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.