tle.framework.component.impl.aamanager
Class NullAAManager

java.lang.Object
  extended bytle.framework.component.impl.ComponentBase
      extended bytle.framework.component.impl.aamanager.NullAAManager
All Implemented Interfaces:
AAManager, Component, ComponentMBean, NullAAManagerMBean

public class NullAAManager
extends ComponentBase
implements AAManager, NullAAManagerMBean

±ÇÇÑ ÀÎÁõ ºÎºÐÀ» Á÷Á¢ ó¸®ÇÏ°í ½ÍÀº °æ¿ì¿¡ »ç¿ëÇÏ´Â AAManager ±¸Çöü.

Since:
2.0
Author:
ÃÖ¹ü±Õ

Field Summary
 
Fields inherited from class tle.framework.component.impl.ComponentBase
componentState, config
 
Constructor Summary
NullAAManager()
           
 
Method Summary
 User authenticate(UserAuthenticationInfo authInfo)
          UserAuthenticationInfo¿¡ ÀúÀåµÈ Á¤º¸¸¦ »ç¿ëÇÏ¿© ÀÎÁõµÈ »ç¿ëÀÚÀÎ °æ¿ì »ç¿ëÀÚ¿¡ ÇØ´çÇÏ´Â User °´Ã¼¸¦ ¸®ÅÏÇÑ´Ù.
 boolean checkAuthorization(User user, Service service)
          user°¡ service¸¦ »ç¿ëÇÒ ¼ö ÀÖÀ» °æ¿ì true¸¦ ¸®ÅÏÇÑ´Ù.
 void closeSession(HttpServletRequest request, HttpServletResponse response)
          »ç¿ëÀÚÀÇ ¼¼¼ÇÀ» Á¾·áÇÑ´Ù.
 AAManagerProxy getAAManagerProxy()
          ÀÌ AAManager °´Ã¼¸¦ ¿¬°áÇÑ AAManagerProxy¸¦ ¸®ÅÏÇÑ´Ù.
 Role getRole(java.lang.String roleID)
          ¿ªÇÒ ID¿¡ ÇØ´çÇÏ´Â ¿ªÇÒÀ» ¸®ÅÏÇÑ´Ù.
 Service getService(RequestInfo requestInfo)
          ¿äû Á¤º¸¿¡ ÇØ´çÇÏ´Â Service¸¦ ±¸ÇÑ´Ù.
 User getSessionUser(HttpServletRequest request)
          ¼¼¼Ç°ú °ü·ÃµÈ User¸¦ ±¸ÇÑ´Ù.
 void openSession(User user, HttpServletRequest request, HttpServletResponse response)
          »ç¿ëÀÚÀÇ ¼¼¼ÇÀ» ½ÃÀÛÇÑ´Ù.
 
Methods inherited from class tle.framework.component.impl.ComponentBase
close, closing, getDescription, getID, getState, init, initing, isClosed, isClosing, isCreated, isErrorOccured, isInited, isIniting, isResuming, isRunning, isStarting, isStopped, isStopping, isSuspended, isSuspending, resume, resuming, start, starting, stop, stopping, suspend, suspending
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface tle.framework.component.Component
close, getID, init, isClosed, isClosing, isCreated, isErrorOccured, isInited, isIniting, isResuming, isRunning, isStarting, isStopped, isStopping, isSuspended, isSuspending, resume, start, stop, suspend
 
Methods inherited from interface tle.framework.component.ComponentMBean
getDescription, getID, getState
 

Constructor Detail

NullAAManager

public NullAAManager()
Method Detail

authenticate

public User authenticate(UserAuthenticationInfo authInfo)
                  throws AAManagerException
Description copied from interface: AAManager
UserAuthenticationInfo¿¡ ÀúÀåµÈ Á¤º¸¸¦ »ç¿ëÇÏ¿© ÀÎÁõµÈ »ç¿ëÀÚÀÎ °æ¿ì »ç¿ëÀÚ¿¡ ÇØ´çÇÏ´Â User °´Ã¼¸¦ ¸®ÅÏÇÑ´Ù.

Specified by:
authenticate in interface AAManager
Parameters:
authInfo - »ç¿ëÀÚ ÀÎÁõ Á¤º¸
Returns:
ÀÎÁõ¿¡ ¼º°øÇÑ °æ¿ì °ü·Ã User¸¦ ¸®ÅÏ
Throws:
AAManagerException - ±âŸ ¹®Á¦°¡ ÀÖÀ» ¶§ ¹ß»ýÇÑ´Ù.

openSession

public void openSession(User user,
                        HttpServletRequest request,
                        HttpServletResponse response)
                 throws AAManagerException
Description copied from interface: AAManager
»ç¿ëÀÚÀÇ ¼¼¼ÇÀ» ½ÃÀÛÇÑ´Ù.

AAManagerÀÇ ±¸Çöü´Â HttpSessionÀ̳ª ±âŸ ´Ù¸¥ ¹æ¹ýÀ» »ç¿ëÇØ¼­ ¼¼¼ÇÀ» ±¸ÇöÇØÁÖ¾î¾ß ÇÑ´Ù.

Specified by:
openSession in interface AAManager
Parameters:
user - ¼¼¼Ç¿¡ ÀúÀåµÉ »ç¿ëÀÚ
request - HTTP ¿äû
response - HTTP ÀÀ´ä
Throws:
AAManagerException

closeSession

public void closeSession(HttpServletRequest request,
                         HttpServletResponse response)
                  throws AAManagerException
Description copied from interface: AAManager
»ç¿ëÀÚÀÇ ¼¼¼ÇÀ» Á¾·áÇÑ´Ù.

Specified by:
closeSession in interface AAManager
Throws:
AAManagerException

getSessionUser

public User getSessionUser(HttpServletRequest request)
                    throws AAManagerException
Description copied from interface: AAManager
¼¼¼Ç°ú °ü·ÃµÈ User¸¦ ±¸ÇÑ´Ù. ¼¼¼ÇÀÌ ½ÃÀÛµÇÁö ¾Ê¾Ò´Ù¸é NullUser¸¦ ¸®ÅÏÇÑ´Ù.

Specified by:
getSessionUser in interface AAManager
Parameters:
request -
Returns:
¼¼¼Ç¿¡ ÀúÀåµÈ User. ¼¼¼ÇÀÌ ½ÃÀÛµÇÁö ¾Ê¾Ò´Ù¸é NullUser¸¦ ¸®ÅÏ.
Throws:
AAManagerException

checkAuthorization

public boolean checkAuthorization(User user,
                                  Service service)
                           throws AAManagerException
Description copied from interface: AAManager
user°¡ service¸¦ »ç¿ëÇÒ ¼ö ÀÖÀ» °æ¿ì true¸¦ ¸®ÅÏÇÑ´Ù.

Specified by:
checkAuthorization in interface AAManager
Parameters:
user - »ç¿ëÀÚ
service - ¼­ºñ½º
Returns:
Throws:
AAManagerException

getService

public Service getService(RequestInfo requestInfo)
                   throws AAManagerException
Description copied from interface: AAManager
¿äû Á¤º¸¿¡ ÇØ´çÇÏ´Â Service¸¦ ±¸ÇÑ´Ù. °ü·Ã ¼­ºñ½º°¡ Á¸ÀçÇÏÁö ¾ÊÀ» °æ¿ì NullService¸¦ ¸®ÅÏÇÑ´Ù.

Specified by:
getService in interface AAManager
Parameters:
requestInfo - ¿äû Á¤º¸
Returns:
Service
Throws:
AAManagerException

getRole

public Role getRole(java.lang.String roleID)
             throws AAManagerException
Description copied from interface: AAManager
¿ªÇÒ ID¿¡ ÇØ´çÇÏ´Â ¿ªÇÒÀ» ¸®ÅÏÇÑ´Ù. Á¸ÀçÇÏÁö ¾ÊÀ» °æ¿ì nullÀ» ¸®ÅÏÇÑ´Ù.

Specified by:
getRole in interface AAManager
Parameters:
roleID - ¿ªÇÒ ID
Returns:
Role
Throws:
AAManagerException

getAAManagerProxy

public AAManagerProxy getAAManagerProxy()
Description copied from interface: AAManager
ÀÌ AAManager °´Ã¼¸¦ ¿¬°áÇÑ AAManagerProxy¸¦ ¸®ÅÏÇÑ´Ù. Ʋ ÇÁ·¹ÀÓ¿öÅ©¸¦ »ç¿ëÇÏ´Â ½Ã½ºÅÛ¿¡¼­ AAManager°¡ Á¦°øÇÏ´Â ±â´ÉµéÀ» »ç¿ëÇϱâ À§Çؼ­´Â AAManagerProxy¸¦ ÅëÇØ¼­ °£Á¢ÀûÀ¸·Î Á¢±ÙÇÏ°Ô µÈ´Ù.

¿¹¸¦ µé¾î, AAManager.openSession() ¸Þ¼Òµå¸¦ »ç¿ëÇÏ°í ½Í´Ù¸é ´ÙÀ½°ú °°Àº Äڵ带 »ç¿ëÇØ¾ß ÇÑ´Ù.

 
   TLEFramework.getAAManagerProxy().openSession(user, request, response);
 
 

Specified by:
getAAManagerProxy in interface AAManager
Returns:
AAManagerProxy
See Also:
AAManagerProxy