DLESE Tools
v1.6.0

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

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

public class GuardedPath
extends Object

Wrapper for ActionMapping

Author:
ostwald

Field Summary
protected  String description
           
protected  DocumentFactory df
           
protected  UrlPatternMatcher matcher
           
protected  Roles.Role role
           
 
Constructor Summary
GuardedPath()
          Constructor for the GuardedPath object
GuardedPath(String path)
           
GuardedPath(UrlPatternMatcher matcher)
           
 
Method Summary
 Element asElement()
           
 List getActions()
           
 String getDescription()
          Gets the description attribute of the GuardedPath object
protected  String getElementName()
           
 boolean getIsActionMapping()
          Returns true if this GuardedPath is aligned with a single actionMapping
 String getName()
           
 String getPath()
          Gets the path attribute of the GuardedPath object
 Roles.Role getRole()
          Gets the role attribute of the GuardedPath object
 boolean match(String path)
           
protected static void prtln(String s)
           
 void setActions(List actions)
           
 void setDescription(String d)
          Sets the description attribute of the GuardedPath object
 void setIsActionMapping(boolean b)
           
 void setMatcher(UrlPatternMatcher matcher)
           
 void setRole(Roles.Role role)
          Sets the role attribute of the GuardedPath object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

description

protected String description

matcher

protected UrlPatternMatcher matcher

role

protected Roles.Role role

df

protected DocumentFactory df
Constructor Detail

GuardedPath

public GuardedPath()
Constructor for the GuardedPath object

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

GuardedPath

public GuardedPath(String path)

GuardedPath

public GuardedPath(UrlPatternMatcher matcher)
Method Detail

setMatcher

public void setMatcher(UrlPatternMatcher matcher)

match

public boolean match(String path)

getElementName

protected String getElementName()

getPath

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

Returns:
The path value

getActions

public List getActions()

setActions

public void setActions(List actions)

getRole

public Roles.Role getRole()
Gets the role attribute of the GuardedPath object

Returns:
The role value

setRole

public void setRole(Roles.Role role)
Sets the role attribute of the GuardedPath object

Parameters:
role - The new role value

getName

public String getName()

getIsActionMapping

public boolean getIsActionMapping()
Returns true if this GuardedPath is aligned with a single actionMapping


setIsActionMapping

public void setIsActionMapping(boolean b)

getDescription

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

Returns:
The description value

setDescription

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

Parameters:
d - The new description value

asElement

public Element asElement()

prtln

protected static void prtln(String s)

DLESE Tools
v1.6.0