org.n52.security.common.protocol
Interface PolicyReferenceService


public interface PolicyReferenceService

Author:
drewnak The Policy Reference Service ('PAP' in OASIS terms) provides operations to create and resolve references to licenses that are stored in PolicyAdministrationService.

Method Summary
 void addReference(PolicyReference pReference)
          Creates a new reference to the named policy that expires on the given date
 void deleteReference(java.lang.String pReference)
          Deletes the denoted reference
 PolicyReference[] getReferences(javax.naming.Name pName)
           
 PolicyReference resolveReference(java.lang.String pReference)
          Resolves a reference and returns the referenced information
 

Method Detail

addReference

public void addReference(PolicyReference pReference)
                  throws PolicyReferenceServiceException
Creates a new reference to the named policy that expires on the given date

Returns:
the reference information
Throws:
javax.naming.NamingException - if the named policy cannot be found
PolicyReferenceServiceException - if the reference cannot be created, e.g. because the maximum number of policies is reached.

deleteReference

public void deleteReference(java.lang.String pReference)
Deletes the denoted reference

Parameters:
pReference -

getReferences

public PolicyReference[] getReferences(javax.naming.Name pName)

resolveReference

public PolicyReference resolveReference(java.lang.String pReference)
Resolves a reference and returns the referenced information

Parameters:
pReference -
Returns:


Copyright © 2004-2007 52 North. All Rights Reserved.