org.codehaus.spice.xmlpolicy.builder
Interface PolicyResolver


public interface PolicyResolver

This is the interface via which elements of Policy are resolved. For example it is possible for the Policy file to use abstract URLs such as "sar:/SAR-INF/lib/" which need to be mapped to a concrete URL. It is also necessary for the target values of permissions to be "resolved" using a pseuedo expression language.

Version:
$Revision: 1.1 $ $Date: 2003/12/02 09:16:06 $
Author:
Peter Donald

Method Summary
 Policy createPolicy(Map grants)
          Create a Policy object from a grant map.
 URL resolveLocation(String location)
          Resolve a location to a URL.
 

Method Detail

resolveLocation

public URL resolveLocation(String location)
                    throws Exception
Resolve a location to a URL.

Parameters:
location - the location
Returns:
the URL
Throws:
Exception - if unable to resolve URL

createPolicy

public Policy createPolicy(Map grants)
                    throws Exception
Create a Policy object from a grant map.

Parameters:
grants - the grants map
Returns:
the Policy object
Exception


Copyright © 2002-2003 Codehaus. All Rights Reserved.