Class WebworkService

  extended by com.atlassian.seraph.service.WebworkService
All Implemented Interfaces:
Initable, SecurityService, Serializable

public class WebworkService
extends Object
implements SecurityService

Configures Seraph based on WebWork 1.x configuration file actions.xml.

Takes two optional init parameters:

action.extension (default: "action")
The extension of action URLs which are intercepted by this service. If this parameter is not specified, the default is the WebWork default 'action'. (This should match your servlet mapping in web.xml.)
actions.xml.file (default: "actions")
The location on the classpath of your actions.xml file (WebWork 1.x style). If this parameter is not specified, the default is the WebWork 1.x default 'actions'. (This should match the value configured for 'webwork.configuration.xml' in
In actions.xml (or other actions XML file, as specified by the init-param) specify roles required per action or command:
   <action name="project.ViewProject" alias="ViewProject" roles-required="RoleFoo, RoleBar">
   <command name="Delete" alias="DeleteProject" roles-required="RoleBat">
Roles can be separated by commas and spaces.

See Also:
Serialized Form

Constructor Summary
Method Summary
 void destroy()
 Set<String> getRequiredRoles(javax.servlet.http.HttpServletRequest request)
 void init(Map<String,String> params, SecurityConfig config)
          Initialise the configuration object with the given "init-params".
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public WebworkService()
Method Detail


public void init(Map<String,String> params,
                 SecurityConfig config)
Description copied from interface: Initable
Initialise the configuration object with the given "init-params".

Specified by:
init in interface Initable
params - The map of "init-params" extracted from the Seraph config file. This is guaranteed not null.
config - The Seraph SecurityConfig class that is initialising the config objects. This object will only be partially initialised at this time.


public void destroy()
Specified by:
destroy in interface SecurityService


public Set<String> getRequiredRoles(javax.servlet.http.HttpServletRequest request)
Specified by:
getRequiredRoles in interface SecurityService

Copyright © 2013 Atlassian. All Rights Reserved.