|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.soton.itinnovation.grid.types.PolicyRule
public class PolicyRule
A rule used in determining whether a user has a role.
When determining whether a SOAP operation should be permitted, the
PBAC PDP must first find the
set of roles which the caller has in the context of the resource.
This is done by evaluating each of the resource's PolicyRules.
Each rule contains a MatchPattern, and the effect of the pattern
being matched.
| Field Summary | |
|---|---|
protected MatchPattern |
matchPattern
|
protected String |
role
The role this rule applies to |
protected PolicyRuleType |
type
|
| Constructor Summary | |
|---|---|
PolicyRule()
For Axis. |
|
PolicyRule(MatchPattern pattern,
String role)
Convenience constructor for SUFFICIENT rules. |
|
PolicyRule(MatchPattern pattern,
String role,
PolicyRuleType type)
|
|
PolicyRule(MatchRule rule)
|
|
| Method Summary | |
|---|---|
void |
checkValid()
Ensure that all required fields are set, and no fields conflict. |
int |
compareTo(Object otherObj)
Used to ensure a stable sort order for display. |
MatchPattern |
getMatchPattern()
|
String |
getRole()
|
PolicyRuleType |
getType()
|
void |
setMatchPattern(MatchPattern value)
|
void |
setRole(String value)
|
void |
setType(PolicyRuleType value)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected MatchPattern matchPattern
protected PolicyRuleType type
protected String role
| Constructor Detail |
|---|
public PolicyRule()
public PolicyRule(MatchPattern pattern,
String role)
public PolicyRule(MatchPattern pattern,
String role,
PolicyRuleType type)
public PolicyRule(MatchRule rule)
| Method Detail |
|---|
public MatchPattern getMatchPattern()
public PolicyRuleType getType()
public String getRole()
public void setMatchPattern(MatchPattern value)
public void setType(PolicyRuleType value)
public void setRole(String value)
public String toString()
toString in class Object
public void checkValid()
throws InvalidPolicyRuleException
InvalidPolicyRuleExceptionpublic int compareTo(Object otherObj)
compareTo in interface Comparable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||