Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Web Services Manager
11g (11.1.1)

E10689-01


oracle.wsm.policy.model
Interface IPolicySet

All Superinterfaces:
Serializable
All Known Implementing Classes:
PolicySet

public interface IPolicySet
extends Serializable

Nested Class Summary
static class IPolicySet.LOCAL_OPTIMIZATION
          Enum represents different values which will be returned for local optimization.
static class IPolicySet.POLICYSET_STATUS
           

 

Method Summary
 void addCause(IValidationError error)
           
 void addPolicyAttachment(IPolicyAttachment pa)
          Add attachments to PolicySet
 IPolicySet.LOCAL_OPTIMIZATION checkLocalOptimization()
          This method will return the local optimzation value of this policyset
 IPolicy dereference(IPolicyReference polRef)
          DeReference a PolicyReference! <p/> Returns null if the PolicyReference cannot be de-referenced!
 List<IValidationError> getCause()
          Each IValidatoinError object contains the appropriate error code and corresponding message about what went wrong in retrieving the policies.
 List<IPolicy> getPolicies()
           
 List<IPolicy> getPolicies(String category)
          Returns the list of policies
 List<IPolicy> getPolicies(String category, String resourcePattern)
          Returns the list of policies
 List<IPolicyAttachment> getPolicyAttachments()
           
 QName getQName()
           
 IPolicySet.POLICYSET_STATUS getStatus()
          Provides POLICYSET_STATUS enumeration object indicating the status of policyset.
 Date getTimestamp()
          Get timestamp of policy store from when this set was constructed.
 void setCause(List<IValidationError> errorList)
          sets the error objects
 void setPolicies(List<IPolicy> policies)
          set Policies in the PolicySet
 void setStatus(IPolicySet.POLICYSET_STATUS policySetStatus)
          Set the status of the policyset
 void validate(IValidationContext context)
          Performs PolicySet validation.

 

Method Detail

getQName

QName getQName()

getPolicies

List<IPolicy> getPolicies()
Returns:
List of <IPolicy>

getPolicyAttachments

List<IPolicyAttachment> getPolicyAttachments()
Returns:
List of <IPolicyAttachment>

getPolicies

List<IPolicy> getPolicies(String category,
                          String resourcePattern)
                          throws PolicyModelException
Returns the list of policies
Parameters:
category -
resourcePattern -
Returns:
Throws:
PolicyModelException

getPolicies

List<IPolicy> getPolicies(String category)
                          throws PolicyModelException
Returns the list of policies
Parameters:
category -
Returns:
Throws:
PolicyModelException

dereference

IPolicy dereference(IPolicyReference polRef)
DeReference a PolicyReference! <p/> Returns null if the PolicyReference cannot be de-referenced!
Parameters:
polRef -
Returns:
IPolicy

addPolicyAttachment

void addPolicyAttachment(IPolicyAttachment pa)
Add attachments to PolicySet
Parameters:
pa - - PolicyAttachment to add

setPolicies

void setPolicies(List<IPolicy> policies)
set Policies in the PolicySet
Parameters:
-

validate

void validate(IValidationContext context)
Performs PolicySet validation. A PolicySet contains a number of Policy Attachments and Policies. For each Policy Attachment performs Policy Subject Validation. The getErrorCode(), getCause(), etc are unrelated to errors returned by the Policy Subject Validation.
Parameters:
context -

getStatus

IPolicySet.POLICYSET_STATUS getStatus()
Provides POLICYSET_STATUS enumeration object indicating the status of policyset.
Returns:
FAILURE if there is any error in retrieving policyset or any invalid policy references etc and SUCCESS , in case of valid Policy References. *

setStatus

void setStatus(IPolicySet.POLICYSET_STATUS policySetStatus)
Set the status of the policyset
Parameters:
policySetStatus -

getCause

List<IValidationError> getCause()
Each IValidatoinError object contains the appropriate error code and corresponding message about what went wrong in retrieving the policies.
Returns:
IValidatoinError object

setCause

void setCause(List<IValidationError> errorList)
sets the error objects
Parameters:
errorList - all the errro messages

addCause

void addCause(IValidationError error)

checkLocalOptimization

IPolicySet.LOCAL_OPTIMIZATION checkLocalOptimization()
This method will return the local optimzation value of this policyset
Returns:

getTimestamp

Date getTimestamp()
Get timestamp of policy store from when this set was constructed.
Returns:
timestamp

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Web Services Manager
11g (11.1.1)

E10689-01


Copyright © 2007, 2009, Oracle and/or its affiliates. All rights reserved.