|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wamblee.security.authorization.AbstractPathCondition
org.wamblee.security.authorization.RegexpPathCondition
@Entity public class RegexpPathCondition
Condition to check whether a path matches a given regula expression.
Constructor Summary | |
---|---|
protected |
RegexpPathCondition()
For OR mapping. |
|
RegexpPathCondition(java.lang.String aPattern)
Constructs the condition. |
Method Summary | |
---|---|
protected java.lang.String |
getPattern()
|
boolean |
matches(java.lang.String aPath)
Checks if the path matches the condition. |
protected void |
setPattern(java.lang.String aPattern)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RegexpPathCondition(java.lang.String aPattern)
aPattern
- String the path must start with.protected RegexpPathCondition()
Method Detail |
---|
public boolean matches(java.lang.String aPath)
PathCondition
aPath
- Path to match.
protected java.lang.String getPattern()
protected void setPattern(java.lang.String aPattern)
aPattern
- The _path to set.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |