com.softwareag.centrasite.policy.api
Interface PolicyCondition

All Superinterfaces:
PolicyRegistryObject

public interface PolicyCondition
extends PolicyRegistryObject

Models the Conditions based on which a policy will be filtered for triggering


Method Summary
 void addCondition(Condition condition)
          Adds the given condition to the list of conditions
 java.util.List<Condition> getConditions()
          Get the list of conditions applicable for this policyCondition
 void setConditions(java.util.List<Condition> conditions)
          Sets the given list of conditions replacing any existing conditions
 void setUseAndOperator(boolean useAndOperator)
          Set whether AND is used to be across conditions
 boolean usesAndOperator()
           
 
Methods inherited from interface com.softwareag.centrasite.policy.api.PolicyRegistryObject
addAssociation, addAssociation, getAllClassifiedConcepts, getAllJAXRObjects, getAllObsoleteObjects, getAssociations, getAssociations, getClassifications, getClassifiedConcept, getDescription, getJAXRObject, getJAXRRegistryService, getKey, getLoggedInUserLocale, getName, removeAllAssociations, removeAllClassifications, setDescription, setName, toXMLForRepair
 

Method Detail

usesAndOperator

boolean usesAndOperator()
                        throws javax.xml.registry.JAXRException
Returns:
true if AND is to be used across conditions
Throws:
javax.xml.registry.JAXRException

setUseAndOperator

void setUseAndOperator(boolean useAndOperator)
                       throws javax.xml.registry.JAXRException
Set whether AND is used to be across conditions

Parameters:
useAndOperator - - true if AND is to be used , false for OR
Throws:
javax.xml.registry.JAXRException

getConditions

java.util.List<Condition> getConditions()
                                        throws javax.xml.registry.JAXRException
Get the list of conditions applicable for this policyCondition

Returns:
List of applicable conditions
Throws:
javax.xml.registry.JAXRException

addCondition

void addCondition(Condition condition)
                  throws javax.xml.registry.JAXRException
Adds the given condition to the list of conditions

Parameters:
condition - condition to add
Throws:
javax.xml.registry.JAXRException

setConditions

void setConditions(java.util.List<Condition> conditions)
                   throws javax.xml.registry.JAXRException
Sets the given list of conditions replacing any existing conditions

Parameters:
conditions - conditions to set
Throws:
javax.xml.registry.JAXRException