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

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

public class HandleAuthorizedMatcher
extends org.apache.avalon.framework.logger.AbstractLogEnabled
implements org.apache.cocoon.matching.Matcher

Test the current URL to see if the user has access to the described resources. The privelege tested against uses the pattern attribute, the possible values are listed in the DSpace Constant class.

Author:
Scott Phillips

Field Summary
 
Fields inherited from interface org.apache.cocoon.matching.Matcher
ROLE
 
Constructor Summary
HandleAuthorizedMatcher()
           
 
Method Summary
 Map match(String pattern, Map objectModel, org.apache.avalon.framework.parameters.Parameters parameters)
          Match method to see if the sitemap parameter exists.
 
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
 

Constructor Detail

HandleAuthorizedMatcher

public HandleAuthorizedMatcher()
Method Detail

match

public Map match(String pattern,
                 Map objectModel,
                 org.apache.avalon.framework.parameters.Parameters parameters)
          throws org.apache.cocoon.sitemap.PatternException
Match method to see if the sitemap parameter exists. If it does have a value the parameter added to the array list for later sitemap substitution.

Specified by:
match in interface org.apache.cocoon.matching.Matcher
Parameters:
pattern - name of sitemap parameter to find
objectModel - environment passed through via cocoon
Returns:
null or map containing value of sitemap parameter 'pattern'
Throws:
org.apache.cocoon.sitemap.PatternException


Copyright © 2011 DuraSpace. All Rights Reserved.