Skip navigation links

Oracle Communications Converged Application Server Java API Reference
5.1

E36938-01


com.oracle.sft.xcap.client.policy
Interface Conditions

All Superinterfaces:
XcapElement, XcapResource

public interface Conditions
extends XcapElement

conditions to be met in order to gain permission as per policy document. Only in case all conditions are met (evaluate to TRUE), the permission is granted, see RFC4725. The condition defines the 'if' part in the 'if-then' equation the rule defines. The conditions can be based on

Conditions can be created by method com.oracle.sft.xcap.client.policy.Rule.createConditions().


Method Summary
<C extends Condition>
C
createCondition(Class<C> conditionClass)
          Create a condition for given condition class.
<C extends Condition>
void
deleteCondition(C condition)
          Delete all conditions which are of Class of given condition.
<C extends Condition>
Set<C>
getConditions()
          Get all conditions.
<C extends Condition>
Set<C>
getConditions(Class<C> conditionClass)
          Get all conditions which are of given conditionClass.

 

Methods inherited from interface com.oracle.sft.xcap.client.XcapElement
getDocument, getNamespace, getNodeSelector, getParent

 

Methods inherited from interface com.oracle.sft.xcap.client.XcapResource
getContent, getContentType, getUrl, setContent

 

Method Detail

createCondition

<C extends Condition> C createCondition(Class<C> conditionClass)
                                    throws XcapException
Create a condition for given condition class. The condition classes are subinterfaces of Condition (excluding Condition itself).
Parameters:
conditionClass - class of condition to be created
Returns:
the condition.
Throws:
XcapException - if the condition can not be created.
See Also:
Condition

getConditions

<C extends Condition> Set<C> getConditions()
Get all conditions.
Returns:
a set of all conditions.

getConditions

<C extends Condition> Set<C> getConditions(Class<C> conditionClass)
Get all conditions which are of given conditionClass.
Parameters:
conditionClass - the class token
Returns:
a set of conditions of given class.

deleteCondition

<C extends Condition> void deleteCondition(C condition)
Delete all conditions which are of Class of given condition.
Parameters:
condition - the condition to be deleted

Skip navigation links

Oracle Communications Converged Application Server Java API Reference
5.1

E36938-01


Copyright © 2012 Oracle Corporation. All Rights Reserved.