it.eng.rdlab.soa3.pm.connector.impl
Class PolicyReaderImpl

java.lang.Object
  extended by it.eng.rdlab.soa3.pm.connector.impl.PolicyReaderImpl
All Implemented Interfaces:
PolicyReader

public class PolicyReaderImpl
extends Object
implements PolicyReader

Standard implementation of Policy Reader

Author:
Ciro Formisano (ENG)

Constructor Summary
PolicyReaderImpl()
           
PolicyReaderImpl(String url)
           
 
Method Summary
 Status getPolicy(String alias, String policyId)
          Gets a policy
 Status getPolicySet(String alias, String policySetId)
          Gets a policy set
 Status listPolicies(String alias)
          Lists all the policies in the PAP
 Status listPolicySets(String alias)
          Lists all the policy sets in the PAP
 void setUrl(String url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolicyReaderImpl

public PolicyReaderImpl()

PolicyReaderImpl

public PolicyReaderImpl(String url)
Method Detail

setUrl

public void setUrl(String url)
Parameters:
url -

listPolicies

public Status listPolicies(String alias)
Lists all the policies in the PAP

Specified by:
listPolicies in interface PolicyReader
Parameters:
alias - the PAP alias (can be null)
Returns:
the status object representing the result of the operation

getPolicy

public Status getPolicy(String alias,
                        String policyId)
Gets a policy

Specified by:
getPolicy in interface PolicyReader
Parameters:
alias - the PAP alias (can be null)
policyId - the id of the policy
Returns:
the status object representing the result of the operation

listPolicySets

public Status listPolicySets(String alias)
Lists all the policy sets in the PAP

Specified by:
listPolicySets in interface PolicyReader
Parameters:
alias - the PAP alias (can be null)
Returns:
the status object representing the result of the operation

getPolicySet

public Status getPolicySet(String alias,
                           String policySetId)
Gets a policy set

Specified by:
getPolicySet in interface PolicyReader
Parameters:
alias - the PAP alias (can be null)
policySetId - the id of the policy
Returns:
the status object representing the result of the operation


Copyright © 2012. All Rights Reserved.