java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.xml.AbstractXMLProducer
org.apache.cocoon.xml.AbstractXMLPipe
org.apache.cocoon.transformation.AbstractTransformer
org.apache.cocoon.transformation.RoleFilterTransformer
All Implemented Interfaces:
CacheableProcessingComponent, Transformer, XMLPipe, org.apache.avalon.excalibur.pool.Recyclable, XMLProducer
Filter - XML fragments based on a user's role. This will help in
the development of smart forms that must only show information to
people who are logged in and have the correct role. The Role is
specified by the Request semantics. You can specify multiple roles
by using comma delimiting.role-filter - sitemap.transformer.role-filter -
Filter XML fragments based on a user's role. This will help in
the development of smart forms that must only show information to
people who are logged in and have the correct role. The Role is
specified by the Request semantics. You can specify multiple roles
by using comma delimiting.
<root xmlns:roles="http://apache.org/cocoon/role-filter/1.0"> <textbox name="identifier" roles:restricted="admin,boss"/> <textbox name="name" roles:read-only="admin,boss"/> </root>The previous example will only show the "identifier" textbox for the roles "admin" and "boss". It will pass role:read-only="" if the roles "admin" or "boss" are accessing the page. That way you can specify any special processing by testing for the read-only attribute. This filter does not care about the prefix, only the namespace URI. That means you can reassign the namespace to another prefix and all will work as expected.
< - a href="mailto:bloritsch@apache.org">Berin LoritschCVS - $Id: RoleFilterTransformer.java 433543 2006-08-22 06:22:54Z crossley $| Field Summary | ||
|---|---|---|
| Request | request | |
| Fields inherited from org.apache.cocoon.xml.AbstractXMLProducer: |
|---|
| EMPTY_CONTENT_HANDLER, xmlConsumer, contentHandler, lexicalHandler |
| Constructor: |
|---|
|
| Method from org.apache.cocoon.transformation.RoleFilterTransformer Summary: |
|---|
| characters, comment, endCDATA, endElement, endEntity, getKey, getValidity, processingInstruction, recycle, setup, startCDATA, startElement, startEntity |
| Methods from org.apache.cocoon.xml.AbstractXMLPipe: |
|---|
| characters, comment, endCDATA, endDTD, endDocument, endElement, endEntity, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDTD, startDocument, startElement, startEntity, startPrefixMapping |
| Methods from org.apache.cocoon.xml.AbstractXMLProducer: |
|---|
| recycle, setConsumer, setContentHandler, setLexicalHandler |
| Methods from java.lang.Object: |
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from org.apache.cocoon.transformation.RoleFilterTransformer Detail: |
|---|
|
|
|
|
|
|
|
|
|
|
|
|
|