DLESE Tools
v1.6.0

org.dlese.dpc.schemedit.security.access
Class ActionPath

java.lang.Object
  extended by org.dlese.dpc.schemedit.security.access.ActionPath

public class ActionPath
extends Object

Wrapper for HotActionMapping

Author:
ostwald

Constructor Summary
ActionPath(HotActionMapping mapping)
          Constructor for the ActionPath object
 
Method Summary
 Element asElement()
           
 String getDescription()
          Gets the description attribute of the GuardedPath object
 String getName()
           
 String getPath()
          Gets the path attribute of the ActionPath object
 Roles.Role getRole()
           
static Roles.Role getRole(org.apache.struts.action.ActionMapping actionMapping)
          Helper method to extract a single role from a roleStr (like the one returned from ActionMapping.getRoles()) that in principle could return mulitiple values.
 void setDescription(String description)
          Sets the description attribute of the GuardedPath object
 void setRole(Roles.Role role)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionPath

public ActionPath(HotActionMapping mapping)
Constructor for the ActionPath object

Parameters:
mapping - Description of the Parameter
description - Description of the Parameter
role - Description of the Parameter
Method Detail

getPath

public String getPath()
Gets the path attribute of the ActionPath object

Returns:
The path value

getName

public String getName()

getRole

public Roles.Role getRole()

getRole

public static Roles.Role getRole(org.apache.struts.action.ActionMapping actionMapping)
Helper method to extract a single role from a roleStr (like the one returned from ActionMapping.getRoles()) that in principle could return mulitiple values. Since we are using a single role string, we need to ensure that only a single value is extracted, and we use the FIRST.


setRole

public void setRole(Roles.Role role)

getDescription

public String getDescription()
Gets the description attribute of the GuardedPath object

Returns:
The description value

setDescription

public void setDescription(String description)
Sets the description attribute of the GuardedPath object

Parameters:
d - The new description value

asElement

public Element asElement()

DLESE Tools
v1.6.0