org.dspace.app.xmlui.aspect.general
Class AuthenticatedSelector

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.dspace.app.xmlui.aspect.general.AuthenticatedSelector
All Implemented Interfaces:
org.apache.avalon.framework.logger.LogEnabled, org.apache.cocoon.selection.Selector

public class AuthenticatedSelector
extends org.apache.avalon.framework.logger.AbstractLogEnabled
implements org.apache.cocoon.selection.Selector

This simple selector operates on the authenticated DSpace user and selects between two levels of access. ... ... ... There are only two defined test expressions: "administrator" and "eperson". Remember an administrator is also an eperson so if you need to check for administrators distinct from epersons that select must come first.

Author:
Scott Phillips

Field Summary
static String ADMINISTRATOR
           
static String EPERSON
          Test expressiots
 
Fields inherited from interface org.apache.cocoon.selection.Selector
ROLE
 
Constructor Summary
AuthenticatedSelector()
           
 
Method Summary
 boolean select(String expression, Map objectModel, org.apache.avalon.framework.parameters.Parameters parameters)
          Determine if the authenticated eperson matches the given expression.
 
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
 

Field Detail

EPERSON

public static final String EPERSON
Test expressiots

See Also:
Constant Field Values

ADMINISTRATOR

public static final String ADMINISTRATOR
See Also:
Constant Field Values
Constructor Detail

AuthenticatedSelector

public AuthenticatedSelector()
Method Detail

select

public boolean select(String expression,
                      Map objectModel,
                      org.apache.avalon.framework.parameters.Parameters parameters)
Determine if the authenticated eperson matches the given expression.

Specified by:
select in interface org.apache.cocoon.selection.Selector


Copyright © 2011 DuraSpace. All Rights Reserved.