org.apache.cocoon.auth.impl
Class StandardApplication

java.lang.Object
  extended byorg.apache.cocoon.auth.impl.StandardApplication
All Implemented Interfaces:
org.apache.cocoon.auth.Application

public class StandardApplication
extends Object
implements org.apache.cocoon.auth.Application

This is the default implementation for an Application.

Version:
$Id: StandardApplication.html 1304280 2012-03-23 11:18:01Z ilgrosso $

Field Summary
protected  Map attributes
          Attributes.
protected  org.apache.cocoon.auth.SecurityHandler handler
          The security handler.
protected static String HANDLER_CONFIG_PREFIX
          This prefix is used to lookup security handlers.
protected  org.apache.cocoon.auth.ApplicationStore store
          Application store.
protected static String STORE_CONFIG_PREFIX
          This prefix is used to lookup application stores.
 
Constructor Summary
StandardApplication()
           
 
Method Summary
 org.apache.cocoon.auth.ApplicationStore getApplicationStore()
           
 Object getAttribute(String key)
           
 Log getLogger()
           
 org.apache.cocoon.auth.SecurityHandler getSecurityHandler()
           
 void removeAttribute(String key)
           
 void setApplicationStore(org.apache.cocoon.auth.ApplicationStore s)
           
 void setAttribute(String key, Object value)
           
 void setAttributes(Map map)
           
 void setLogger(Log l)
           
 void setSecurityHandler(org.apache.cocoon.auth.SecurityHandler h)
           
 void userDidLogin(org.apache.cocoon.auth.User user, Map context)
           
 void userIsAccessing(org.apache.cocoon.auth.User user)
           
 void userWillLogout(org.apache.cocoon.auth.User user, Map context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HANDLER_CONFIG_PREFIX

protected static final String HANDLER_CONFIG_PREFIX
This prefix is used to lookup security handlers.


STORE_CONFIG_PREFIX

protected static final String STORE_CONFIG_PREFIX
This prefix is used to lookup application stores.


handler

protected org.apache.cocoon.auth.SecurityHandler handler
The security handler.


attributes

protected Map attributes
Attributes.


store

protected org.apache.cocoon.auth.ApplicationStore store
Application store.

Constructor Detail

StandardApplication

public StandardApplication()
Method Detail

getLogger

public Log getLogger()

setLogger

public void setLogger(Log l)

setSecurityHandler

public void setSecurityHandler(org.apache.cocoon.auth.SecurityHandler h)

setApplicationStore

public void setApplicationStore(org.apache.cocoon.auth.ApplicationStore s)

setAttributes

public void setAttributes(Map map)

getSecurityHandler

public org.apache.cocoon.auth.SecurityHandler getSecurityHandler()
Specified by:
getSecurityHandler in interface org.apache.cocoon.auth.Application
See Also:
Application.getSecurityHandler()

getApplicationStore

public org.apache.cocoon.auth.ApplicationStore getApplicationStore()
Specified by:
getApplicationStore in interface org.apache.cocoon.auth.Application
See Also:
Application.getApplicationStore()

setAttribute

public void setAttribute(String key,
                         Object value)
Specified by:
setAttribute in interface org.apache.cocoon.auth.Application
See Also:
Application.setAttribute(java.lang.String, java.lang.Object)

removeAttribute

public void removeAttribute(String key)
Specified by:
removeAttribute in interface org.apache.cocoon.auth.Application
See Also:
Application.removeAttribute(java.lang.String)

getAttribute

public Object getAttribute(String key)
Specified by:
getAttribute in interface org.apache.cocoon.auth.Application
See Also:
Application.getAttribute(java.lang.String)

userDidLogin

public void userDidLogin(org.apache.cocoon.auth.User user,
                         Map context)
Specified by:
userDidLogin in interface org.apache.cocoon.auth.Application
See Also:
Application.userDidLogin(org.apache.cocoon.auth.User, java.util.Map)

userWillLogout

public void userWillLogout(org.apache.cocoon.auth.User user,
                           Map context)
Specified by:
userWillLogout in interface org.apache.cocoon.auth.Application
See Also:
Application.userWillLogout(org.apache.cocoon.auth.User, java.util.Map)

userIsAccessing

public void userIsAccessing(org.apache.cocoon.auth.User user)
Specified by:
userIsAccessing in interface org.apache.cocoon.auth.Application
See Also:
Application.userIsAccessing(org.apache.cocoon.auth.User)


Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.