Package com.uc4.api.objects
Class SloSelection
- java.lang.Object
-
- com.uc4.api.objects.SloSelection
-
public class SloSelection extends java.lang.ObjectSelection criteria of SLO objects.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSloSelection.BeneficiaryBeneficiary of a service.
-
Constructor Summary
Constructors Modifier Constructor Description protectedSloSelection(com.uc4.util.XMLDocument doc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddBeneficiary(SloSelection.Beneficiary beneficiary)Adds aBeneficiaryto the object.java.util.Iterator<SloSelection.Beneficiary>beneficiariesIterator()Returns anjava.util.Iteratorof beneficiaries.java.lang.StringgetQuery()Returns the query definition as XML.booleanisQueryDefined()Returnstrueif the there is a queryvoidremoveAllBeneficiaries()Removes all beneficiaries.booleanremoveBeneficiary(SloSelection.Beneficiary beneficiary)Removes a specificBeneficiary.voidsetQuery(java.lang.String query)Sets the query definition.protected voidstore(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request)
-
-
-
Method Detail
-
getQuery
public java.lang.String getQuery()
Returns the query definition as XML.- Returns:
- XML, never null
-
isQueryDefined
public boolean isQueryDefined()
Returnstrueif the there is a query- Returns:
- true if a query has been defined, false if the query is empty
-
setQuery
public void setQuery(java.lang.String query)
Sets the query definition.- Parameters:
query- String containing a valid XML
-
beneficiariesIterator
public java.util.Iterator<SloSelection.Beneficiary> beneficiariesIterator()
Returns anjava.util.Iteratorof beneficiaries.- Returns:
- Iterator
-
removeAllBeneficiaries
public void removeAllBeneficiaries()
Removes all beneficiaries.
-
removeBeneficiary
public boolean removeBeneficiary(SloSelection.Beneficiary beneficiary)
Removes a specificBeneficiary.- Parameters:
beneficiary- Beneficiary- Returns:
trueif theBeneficiarywas removed, false if not found
-
addBeneficiary
public boolean addBeneficiary(SloSelection.Beneficiary beneficiary)
Adds aBeneficiaryto the object.- Parameters:
beneficiary- Beneficiary- Returns:
- true when the beneficiary has been added to the list. false if the list already contained the attribute. The list remains unchanged in this case.
-
store
protected void store(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request)
-
-