|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.apache.lenya.ac.impl.URLPolicy
public class URLPolicy
A policy at a certain URL. The final policy is computed by merging the subtree policies of all ancestor-or-self directories with the URL policy of the actual URL.
| Field Summary |
|---|
| Fields inherited from interface org.apache.lenya.ac.Policy |
|---|
RESULT_DENIED, RESULT_GRANTED, RESULT_NOT_MATCHED |
| Constructor Summary | |
|---|---|
URLPolicy(org.apache.lenya.ac.AccreditableManager controller,
java.lang.String _url,
org.apache.lenya.ac.InheritingPolicyManager manager)
Returns the resulting policy for a certain URL. |
|
| Method Summary | |
|---|---|
int |
check(org.apache.lenya.ac.Identity identity,
org.apache.lenya.ac.Role role)
|
org.apache.lenya.ac.AccreditableManager |
getAccreditableManager()
Returns the access controller. |
static org.apache.lenya.ac.Role |
getAdministratorRole(org.apache.lenya.ac.AccreditableManager manager)
Returns the administrator role. |
static org.apache.lenya.ac.Role |
getAuthorRole(org.apache.lenya.ac.AccreditableManager manager)
Returns the author role. |
org.apache.lenya.ac.Credential[] |
getCredentials()
|
org.apache.lenya.ac.Credential[] |
getCredentials(org.apache.lenya.ac.Identity identity)
|
org.apache.lenya.ac.InheritingPolicyManager |
getPolicyManager()
Returns the policy builder. |
java.lang.String |
getUrl()
Returns the URL of this policy. |
static org.apache.lenya.ac.Role |
getVisitorRole(org.apache.lenya.ac.AccreditableManager manager)
Returns the visitor role. |
boolean |
isEmpty()
|
boolean |
isSSLProtected()
The URL policy requires SSL protection if one of its member policies requires SSL protection. |
protected void |
obtainCredentials()
Obtains the credentials from the policy manager. |
protected void |
obtainPolicies()
Obtains the policies from the policy manager. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public URLPolicy(org.apache.lenya.ac.AccreditableManager controller,
java.lang.String _url,
org.apache.lenya.ac.InheritingPolicyManager manager)
controller - The acccess controller._url - The URL.manager - The policy manager.| Method Detail |
|---|
protected void obtainPolicies()
throws org.apache.lenya.ac.AccessControlException
org.apache.lenya.ac.AccessControlException - when something went wrong.
protected void obtainCredentials()
throws org.apache.lenya.ac.AccessControlException
org.apache.lenya.ac.AccessControlException - when something went wrong.
public int check(org.apache.lenya.ac.Identity identity,
org.apache.lenya.ac.Role role)
throws org.apache.lenya.ac.AccessControlException
check in interface org.apache.lenya.ac.Policyorg.apache.lenya.ac.AccessControlExceptionIterate the policy tree bottom-up.
public static org.apache.lenya.ac.Role getVisitorRole(org.apache.lenya.ac.AccreditableManager manager)
throws org.apache.lenya.ac.AccessControlException
manager - The accreditable manager.
org.apache.lenya.ac.AccessControlException - when something went wrong.
public static org.apache.lenya.ac.Role getAdministratorRole(org.apache.lenya.ac.AccreditableManager manager)
throws org.apache.lenya.ac.AccessControlException
manager - The accreditable manager.
org.apache.lenya.ac.AccessControlException - when something went wrong.
public static org.apache.lenya.ac.Role getAuthorRole(org.apache.lenya.ac.AccreditableManager manager)
throws org.apache.lenya.ac.AccessControlException
manager - The accreditable manager.
org.apache.lenya.ac.AccessControlException - when something went wrong.public java.lang.String getUrl()
public org.apache.lenya.ac.InheritingPolicyManager getPolicyManager()
public org.apache.lenya.ac.AccreditableManager getAccreditableManager()
public boolean isSSLProtected()
throws org.apache.lenya.ac.AccessControlException
isSSLProtected in interface org.apache.lenya.ac.Policyorg.apache.lenya.ac.AccessControlExceptionPolicy.isSSLProtected()
public boolean isEmpty()
throws org.apache.lenya.ac.AccessControlException
isEmpty in interface org.apache.lenya.ac.Policyorg.apache.lenya.ac.AccessControlExceptionPolicy.isEmpty()
public org.apache.lenya.ac.Credential[] getCredentials()
throws org.apache.lenya.ac.AccessControlException
getCredentials in interface org.apache.lenya.ac.Policyorg.apache.lenya.ac.AccessControlException
public org.apache.lenya.ac.Credential[] getCredentials(org.apache.lenya.ac.Identity identity)
throws org.apache.lenya.ac.AccessControlException
getCredentials in interface org.apache.lenya.ac.Policyorg.apache.lenya.ac.AccessControlException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||