Class ActionPath

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

public class ActionPath extends Object
Wrapper for HotActionMapping
Author:
ostwald
  • Constructor Details

    • 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 Details

    • 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 org.dom4j.Element asElement()