|
||||||||
| 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.
| Constructor Summary | |
|---|---|
URLPolicy(AccreditableManager controller,
java.lang.String url,
InheritingPolicyManager manager)
Returns the resulting policy for a certain URL. |
|
| Method Summary | |
|---|---|
protected void |
addRoles(Policy policy,
Identity identity,
java.util.Set roles)
Adds the roles of an identity of a policy to a role set. |
AccreditableManager |
getAccreditableManager()
Returns the access controller. |
static Role |
getAdministratorRole(AccreditableManager manager)
Returns the administrator role. |
static Role |
getAuthorRole(AccreditableManager manager)
Returns the author role. |
InheritingPolicyManager |
getPolicyManager()
Returns the policy builder. |
Role[] |
getRoles(Identity identity)
Returns all roles of a certain identity. |
java.lang.String |
getUrl()
Returns the URL of this policy. |
static Role |
getVisitorRole(AccreditableManager manager)
Returns the visitor role. |
boolean |
isEmpty()
Returns if the policy is empty. |
boolean |
isSSLProtected()
The URL policy requires SSL protection if one of its member policies requires SSL protection. |
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(AccreditableManager controller,
java.lang.String url,
InheritingPolicyManager manager)
controller - The acccess controller.url - The URL.manager - The policy manager.| Method Detail |
|---|
protected void obtainPolicies()
throws AccessControlException
AccessControlException - when something went wrong.
public Role[] getRoles(Identity identity)
throws AccessControlException
Policy
getRoles in interface Policyidentity - The identity.
AccessControlException - when something went wrong.Policy.getRoles(org.apache.lenya.ac.Identity)
public static Role getVisitorRole(AccreditableManager manager)
throws AccessControlException
manager - The accreditable manager.
AccessControlException - when something went wrong.
public static Role getAdministratorRole(AccreditableManager manager)
throws AccessControlException
manager - The accreditable manager.
AccessControlException - when something went wrong.
public static Role getAuthorRole(AccreditableManager manager)
throws AccessControlException
manager - The accreditable manager.
AccessControlException - when something went wrong.
protected void addRoles(Policy policy,
Identity identity,
java.util.Set roles)
throws AccessControlException
policy - The policy.identity - The identity.roles - The role set.
AccessControlException - when something went wrong.public java.lang.String getUrl()
public InheritingPolicyManager getPolicyManager()
public AccreditableManager getAccreditableManager()
public boolean isSSLProtected()
throws AccessControlException
isSSLProtected in interface PolicyAccessControlException - when something went wrong.Policy.isSSLProtected()
public boolean isEmpty()
throws AccessControlException
Policy
isEmpty in interface PolicyAccessControlException - when something went wrong.Policy.isEmpty()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||