public class AuthenticatedSelector
extends org.apache.avalon.framework.logger.AbstractLogEnabled
implements org.apache.cocoon.selection.Selector
<map:selector name="AuthenticatedSelector" src="org.dspace.app.xmlui.AuthenticatedSelector"/>
<map:select type="AuthenticatedSelector">
<map:when test="administrator">
...
</map:when>
<map:when test="eperson">
...
</map:when>
<map:otherwise>
...
</map:otherwise>
</map:select>
There are only two defined test expressions: "administrator" and "eperson".
Remember that an administrator is also an eperson, so if you need to check for
administrators distinct from epersons that select must come first.| Modifier and Type | Field and Description |
|---|---|
static String |
ADMINISTRATOR |
protected AuthorizeService |
authorizeService |
static String |
EPERSON
Test expressions
|
| Constructor and Description |
|---|
AuthenticatedSelector() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
select(String expression,
Map objectModel,
org.apache.avalon.framework.parameters.Parameters parameters)
Determine if the authenticated eperson matches the given expression.
|
public static final String EPERSON
public static final String ADMINISTRATOR
protected AuthorizeService authorizeService
public boolean select(String expression, Map objectModel, org.apache.avalon.framework.parameters.Parameters parameters)
select in interface org.apache.cocoon.selection.Selectorexpression - "eperson" or "administrator".objectModel - Cocoon object model.parameters - unused.Copyright © 2016 DuraSpace. All rights reserved.