| java.lang.Object org.apache.cocoon.webapps.authentication.context.AuthenticationContext
AuthenticationContext | public class AuthenticationContext implements SessionContext(Code) | | This is the implementation for the authentication context
author: Carsten Ziegeler version: $Id: AuthenticationContext.java 485224 2006-12-10 17:24:05Z cziegeler $ |
Constructor Summary | |
public | AuthenticationContext(Context context, XPathProcessor processor, SourceResolver resolver) |
Method Summary | |
public void | appendXML(String path, DocumentFragment fragment) | public Object | getAttribute(String key) | public Object | getAttribute(String key, Object defaultObject) | public Map | getContextInfo() | public SourceParameters | getContextInfoAsParameters() | public String | getName() | public NodeList | getNodeList(String path) | public Node | getSingleNode(String path) | protected RequestState | getState() | public String | getValueOfNode(String path) | public DocumentFragment | getXML(String path) | public void | init(UserHandler handler) Initialize the context. | public void | init(Document doc) | public boolean | isUserInRole(String role) | public void | loadApplicationXML(ApplicationConfiguration appConf, SourceResolver resolver) | public void | loadXML(String path, SourceParameters parameters) | public static DocumentFragment | readDOM(String location, Parameters typeParameters, SourceParameters parameters, SourceResolver resolver) Read a DOM Fragment from a source
Parameters: location - URI of the Source Parameters: typeParameters - Type of Source query. | public void | removeXML(String path) | public void | saveXML(String path, SourceParameters parameters) | public void | setAttribute(String key, Object value) | public void | setNode(String path, Node node) | public void | setValueOfNode(String path, String value) | public void | setXML(String path, DocumentFragment fragment) | public void | setup(String value, String load, String save) | public boolean | streamXML(String path, ContentHandler contentHandler, LexicalHandler lexicalHandler) |
context | protected Context context(Code) | | |
initialized | protected boolean initialized(Code) | | |
resolver | protected SourceResolver resolver(Code) | | |
roles | protected List roles(Code) | | A list of roles the user is in
|
xpathProcessor | protected XPathProcessor xpathProcessor(Code) | | |
AuthenticationContext | public AuthenticationContext(Context context, XPathProcessor processor, SourceResolver resolver)(Code) | | Constructor
|
init | public void init(UserHandler handler)(Code) | | Initialize the context. This method has to be called right after
the constructor.
|
isUserInRole | public boolean isUserInRole(String role)(Code) | | Test if the user has a role
since: 2.1.6 |
readDOM | public static DocumentFragment readDOM(String location, Parameters typeParameters, SourceParameters parameters, SourceResolver resolver) throws ProcessingException(Code) | | Read a DOM Fragment from a source
Parameters: location - URI of the Source Parameters: typeParameters - Type of Source query. Currently, onlymethod parameter (value typically GET orPOST ) is recognized. May be null . Parameters: parameters - Parameters (e.g. URL params) of the source.May be null Parameters: resolver - Resolver for the source. DOM DocumentFragment constructed from the specifiedsource. throws: ProcessingException - |
|
|