com.atlassian.jira.config.webwork
Class JiraAliasingActionFactoryProxy

java.lang.Object
  extended by webwork.action.factory.ActionFactory
      extended by webwork.action.factory.ActionFactoryProxy
          extended by com.atlassian.jira.config.webwork.JiraAliasingActionFactoryProxy

public class JiraAliasingActionFactoryProxy
extends webwork.action.factory.ActionFactoryProxy

Aliasing action factory proxy. This will convert the given name to a classname of an Action implementation. By using aliases you can give meaningful and easy-to-remember names to your action classes. Using aliases also allow you to use the same action class with many result view mappings.

If the configuration flag "webwork.only.aliasing" is set to "true", then the given name *must* be an alias. Otherwise a security exception will be thrown. This is to ensure that only actions that you explicitly want exposed for invocation can be accessed.

However, actions can always access any other action through the ActionFactory regardless of this setting.

Version:
$Revision: 1.14 $
Author:
Rickard Öberg (rickard@middleware-company.com)

Constructor Summary
JiraAliasingActionFactoryProxy(webwork.action.factory.ActionFactory aFactory)
           
 
Method Summary
 void flushCaches()
           
 webwork.action.Action getActionImpl(String aName)
          Searches for the action from the configuration properties substituting the alias with the associated action and then returns the matching action from the action factory proxy chain.
 
Methods inherited from class webwork.action.factory.ActionFactoryProxy
getNextFactory
 
Methods inherited from class webwork.action.factory.ActionFactory
getAction, getActionFactory, setActionFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JiraAliasingActionFactoryProxy

public JiraAliasingActionFactoryProxy(webwork.action.factory.ActionFactory aFactory)
Method Detail

getActionImpl

public webwork.action.Action getActionImpl(String aName)
                                    throws Exception
Searches for the action from the configuration properties substituting the alias with the associated action and then returns the matching action from the action factory proxy chain. For the alias to match, it must be specified with an ".action" suffix.

Specified by:
getActionImpl in class webwork.action.factory.ActionFactory
Parameters:
aName -
Returns:
the action corresponding to the given alias
Throws:
Exception

flushCaches

public void flushCaches()
Overrides:
flushCaches in class webwork.action.factory.ActionFactoryProxy


Copyright © 2002-2013 Atlassian. All Rights Reserved.