|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.framework.logger.AbstractLogEnabled org.apache.cocoon.xml.AbstractXMLProducer org.apache.cocoon.generation.AbstractGenerator org.apache.cocoon.generation.ServiceableGenerator org.apache.cocoon.webapps.authentication.generation.ConfigurationGenerator
public final class ConfigurationGenerator
This is the authentication Configuration Generator.
Field Summary | |
---|---|
static String |
REQ_PARAMETER_ID
Deprecated. |
static String |
REQ_PARAMETER_ROLE
Deprecated. |
static String |
REQ_PARAMETER_STATE
Deprecated. Request parameter |
static String |
REQ_PARAMETER_USER
Deprecated. |
protected XPathProcessor |
xpathProcessor
Deprecated. The XPath Processor |
Fields inherited from class org.apache.cocoon.generation.ServiceableGenerator |
---|
manager |
Fields inherited from class org.apache.cocoon.generation.AbstractGenerator |
---|
objectModel, parameters, resolver, source |
Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer |
---|
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer |
Fields inherited from interface org.apache.cocoon.generation.Generator |
---|
ROLE |
Constructor Summary | |
---|---|
ConfigurationGenerator()
Deprecated. |
Method Summary | |
---|---|
boolean |
addUser(String role,
String ID,
SourceParameters parameters,
org.apache.cocoon.webapps.authentication.generation.UserManagementHandler handler)
Deprecated. Add a user. |
void |
dispose()
Deprecated. Release all resources. |
void |
generate()
Deprecated. Generate the configuration |
Document |
getRoles(org.apache.cocoon.webapps.authentication.generation.UserManagementHandler handler)
Deprecated. Get all roles in a document fragment with the following children: |
Document |
getUsers(String role,
String ID,
org.apache.cocoon.webapps.authentication.generation.UserManagementHandler handler)
Deprecated. Get all users in a document fragment with the following children: |
void |
service(ServiceManager manager)
Deprecated. Set the current ServiceManager instance used by this
Serviceable . |
void |
showConfiguration(XMLConsumer consumer,
String src,
org.apache.cocoon.webapps.authentication.generation.UserManagementHandler handler,
AuthenticationContext context)
Deprecated. Show the configuration for the admin. |
Methods inherited from class org.apache.cocoon.generation.AbstractGenerator |
---|
recycle, setup |
Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer |
---|
setConsumer, setContentHandler, setLexicalHandler |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.cocoon.xml.XMLProducer |
---|
setConsumer |
Field Detail |
---|
public static final String REQ_PARAMETER_STATE
public static final String REQ_PARAMETER_ROLE
public static final String REQ_PARAMETER_ID
public static final String REQ_PARAMETER_USER
protected XPathProcessor xpathProcessor
Constructor Detail |
---|
public ConfigurationGenerator()
Method Detail |
---|
public void dispose()
ServiceableGenerator
dispose
in interface Disposable
dispose
in class ServiceableGenerator
public void service(ServiceManager manager) throws ServiceException
ServiceableGenerator
ServiceManager
instance used by this
Serviceable
.
service
in interface Serviceable
service
in class ServiceableGenerator
ServiceException
public void generate() throws IOException, SAXException, ProcessingException
IOException
SAXException
ProcessingException
public void showConfiguration(XMLConsumer consumer, String src, org.apache.cocoon.webapps.authentication.generation.UserManagementHandler handler, AuthenticationContext context) throws ProcessingException, SAXException, IOException
src
is "admin" or null the admin configuration is shown.
If src
is "user" the configuration of the current user
is shown.
ProcessingException
SAXException
IOException
public Document getUsers(String role, String ID, org.apache.cocoon.webapps.authentication.generation.UserManagementHandler handler) throws IOException, ProcessingException, SAXException
role
is null
all users are fetched,
otherwise only the users for this role.
If also ID is not null only the single user is fetched.
IOException
ProcessingException
SAXException
public Document getRoles(org.apache.cocoon.webapps.authentication.generation.UserManagementHandler handler) throws IOException, ProcessingException, SAXException
IOException
ProcessingException
SAXException
public boolean addUser(String role, String ID, SourceParameters parameters, org.apache.cocoon.webapps.authentication.generation.UserManagementHandler handler) throws IOException, ProcessingException, SAXException
false
is returned.
IOException
ProcessingException
SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |