com.atlassian.jira.config.webwork
Class LookupAliasActionFactoryProxy

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

public class LookupAliasActionFactoryProxy
extends webwork.action.factory.ActionFactoryProxy

This will convert the given action alias name to an Action implementation name.

This also ensures that only actions that you have explicitly exposed for invocation can be accessed. The default alias for an action configuration entry is the action's name.

Since:
v5.0.7

Nested Class Summary
 class LookupAliasActionFactoryProxy.UnauthorisedActionException
           
 
Constructor Summary
LookupAliasActionFactoryProxy(webwork.action.factory.ActionFactory aFactory)
           
 
Method Summary
 void flushCaches()
           
 webwork.action.Action getActionImpl(String alias)
          
 
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

LookupAliasActionFactoryProxy

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

getActionImpl

public webwork.action.Action getActionImpl(String alias)
                                    throws Exception

Looks up the action name for the specified alias in the webwork configuration, and then delegates the lookup of the Action instance to the action factory proxy chain.

Specified by:
getActionImpl in class webwork.action.factory.ActionFactory
Parameters:
alias - The alias of the action to lookup.
Returns:
The action corresponding to the given alias.
Throws:
ActionNotFoundException - if the action called actionName is not found
LookupAliasActionFactoryProxy.UnauthorisedActionException
Exception

flushCaches

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


Copyright © 2002-2013 Atlassian. All Rights Reserved.