org.dspace.app.xmlui.cocoon
Class DSpacePropertyFileReader

java.lang.Object
  extended by org.apache.cocoon.util.AbstractLogEnabled
      extended by org.apache.cocoon.acting.AbstractAction
          extended by org.dspace.app.xmlui.cocoon.DSpacePropertyFileReader
All Implemented Interfaces:
org.apache.cocoon.acting.Action

public class DSpacePropertyFileReader
extends org.apache.cocoon.acting.AbstractAction

Class will read the DSpace configuration file via the ConfigurationManager It accepts the name of the property to read and the name of the variable to use in the sitemap scope. For example: Will place the value of the "dspace.dir" property in the "dspace_dir" variable to be used in the sitemap.

Author:
Jay Paz

Field Summary
 
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
 
Fields inherited from interface org.apache.cocoon.acting.Action
ROLE
 
Constructor Summary
DSpacePropertyFileReader()
           
 
Method Summary
 Map act(org.apache.cocoon.environment.Redirector redirector, org.apache.cocoon.environment.SourceResolver resolver, Map objectModel, String source, org.apache.avalon.framework.parameters.Parameters parameters)
           
 
Methods inherited from class org.apache.cocoon.util.AbstractLogEnabled
getLogger, setLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DSpacePropertyFileReader

public DSpacePropertyFileReader()
Method Detail

act

public Map act(org.apache.cocoon.environment.Redirector redirector,
               org.apache.cocoon.environment.SourceResolver resolver,
               Map objectModel,
               String source,
               org.apache.avalon.framework.parameters.Parameters parameters)
        throws Exception
Throws:
Exception


Copyright © 2013 DuraSpace. All Rights Reserved.