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

java.lang.Object
  extended by fr.ifremer.allegro.data.specific.service.AuthenticationFullServiceBase
All Implemented Interfaces:
AuthenticationFullService
Direct Known Subclasses:
AuthenticationFullServiceImpl

public abstract class AuthenticationFullServiceBase
extends java.lang.Object
implements AuthenticationFullService

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

See Also:
AuthenticationFullService

Constructor Summary
AuthenticationFullServiceBase()
           
 
Method Summary
 java.lang.Boolean closeSession(java.lang.String userName)
           
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.lang.Boolean handleCloseSession(java.lang.String userName)
          Performs the core logic for closeSession(java.lang.String)
protected abstract  java.lang.Boolean handleOpenSession(java.lang.String userName, java.lang.String pwd)
          Performs the core logic for openSession(java.lang.String, java.lang.String)
 java.lang.Boolean openSession(java.lang.String userName, java.lang.String pwd)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthenticationFullServiceBase

public AuthenticationFullServiceBase()
Method Detail

openSession

public java.lang.Boolean openSession(java.lang.String userName,
                                     java.lang.String pwd)
Specified by:
openSession in interface AuthenticationFullService
See Also:
AuthenticationFullService.openSession(java.lang.String, java.lang.String)

handleOpenSession

protected abstract java.lang.Boolean handleOpenSession(java.lang.String userName,
                                                       java.lang.String pwd)
                                                throws java.lang.Exception
Performs the core logic for openSession(java.lang.String, java.lang.String)

Throws:
java.lang.Exception

closeSession

public java.lang.Boolean closeSession(java.lang.String userName)
Specified by:
closeSession in interface AuthenticationFullService
See Also:
AuthenticationFullService.closeSession(java.lang.String)

handleCloseSession

protected abstract java.lang.Boolean handleCloseSession(java.lang.String userName)
                                                 throws java.lang.Exception
Performs the core logic for closeSession(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.