issrg.pba.management.agent.managed
Interface ManagedPolicyFinder

All Known Implementing Classes:
ManagedRepositoryACPolicyFinder, ManagedSimplePERMISPolicyFinder

public interface ManagedPolicyFinder

policy finder interface for the managed PERMIS engine. this interface specifies the functionality that a ManagedPolicyFinder must implement, and acts as a marker.

a Managed PolicyFinder must implement this interface.

Version:
0.2.2008.02.24
Author:
mfb4@kent.ac.uk

Method Summary
 java.security.Principal getPrincipalSOA()
          Source of Authority.
 java.lang.String updatePolicy(AttributeRepository attributeRepository, java.lang.String policyName)
          This method is implemented by a managed policy finder.
 

Method Detail

getPrincipalSOA

java.security.Principal getPrincipalSOA()
Source of Authority. Representing the owner of the policy.

Returns:
the principal object representing the SOA.

updatePolicy

java.lang.String updatePolicy(AttributeRepository attributeRepository,
                              java.lang.String policyName)
                              throws PbaException
This method is implemented by a managed policy finder. and will replace the existing policy with a new one found in the repository. if all goes well than is returned.

Parameters:
attributeRepository - used to locate or contains the policy.
policyName - the unique policy name.
Returns:
a response code indicating the success of the update.
Throws:
PbaException - if the policy update failed.