org.apache.lenya.ac
Interface ModifiablePolicy

All Superinterfaces:
Policy

public interface ModifiablePolicy
extends Policy

Modifiable policy.


Field Summary
 
Fields inherited from interface org.apache.lenya.ac.Policy
RESULT_DENIED, RESULT_GRANTED, RESULT_NOT_MATCHED
 
Method Summary
 void addRole(Accreditable accreditable, Role role, java.lang.String method)
          Adds a role to this policy for a certain accreditable and a certain role.
 void moveRoleDown(Accreditable accreditable, Role role)
          Moves a role down the credential tree, decreasing its priority.
 void moveRoleUp(Accreditable accreditable, Role role)
          Moves a role up the credential tree, giving it higher priority.
 void removeRole(Accreditable accreditable, Role role)
          Removes a role from this policy for a certain accreditable and a certain role.
 void removeRoles(Accreditable accreditable)
          Removes all roles from this policy for a certain accreditable.
 void setSSL(boolean ssl)
          Sets if this policy requires SSL protection.
 
Methods inherited from interface org.apache.lenya.ac.Policy
check, getCredentials, getCredentials, isEmpty, isSSLProtected
 

Method Detail

setSSL

void setSSL(boolean ssl)
Sets if this policy requires SSL protection.

Parameters:
ssl - A boolean value.

addRole

void addRole(Accreditable accreditable,
             Role role,
             java.lang.String method)
Adds a role to this policy for a certain accreditable and a certain role. If a credenital exists for the accreditable, the role is added to this credential. Otherwise, a new credential is created.

Parameters:
accreditable - An accreditable.
role - A role.
method -

removeRole

void removeRole(Accreditable accreditable,
                Role role)
                throws AccessControlException
Removes a role from this policy for a certain accreditable and a certain role.

Parameters:
accreditable - An accreditable.
role - A role.
Throws:
AccessControlException - if the accreditable-role pair is not contained.

removeRoles

void removeRoles(Accreditable accreditable)
                 throws AccessControlException
Removes all roles from this policy for a certain accreditable.

Parameters:
accreditable - An accreditable.
Throws:
AccessControlException - if the accreditable-role pair is not contained.

moveRoleUp

void moveRoleUp(Accreditable accreditable,
                Role role)
                throws AccessControlException
Moves a role up the credential tree, giving it higher priority.

Parameters:
accreditable -
role -
Throws:
AccessControlException

moveRoleDown

void moveRoleDown(Accreditable accreditable,
                  Role role)
                  throws AccessControlException
Moves a role down the credential tree, decreasing its priority.

Parameters:
accreditable -
role -
Throws:
AccessControlException


Copyright 1999-2006 Apache Software Foundation. All Rights Reserved.