Class ActionPath
java.lang.Object
org.dlese.dpc.schemedit.security.access.ActionPath
Wrapper for HotActionMapping
- Author:
- ostwald
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.dom4j.ElementGets the description attribute of the GuardedPath objectgetName()getPath()Gets the path attribute of the ActionPath objectgetRole()static Roles.RolegetRole(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.voidsetDescription(String description) Sets the description attribute of the GuardedPath objectvoidsetRole(Roles.Role role)
-
Constructor Details
-
ActionPath
Constructor for the ActionPath object- Parameters:
mapping- Description of the Parameterdescription- Description of the Parameterrole- Description of the Parameter
-
-
Method Details
-
getPath
Gets the path attribute of the ActionPath object- Returns:
- The path value
-
getName
-
getRole
-
getRole
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
-
getDescription
Gets the description attribute of the GuardedPath object- Returns:
- The description value
-
setDescription
Sets the description attribute of the GuardedPath object- Parameters:
d- The new description value
-
asElement
public org.dom4j.Element asElement()
-