Package com.uc4.api.objects
Class SloSelection
java.lang.Object
com.uc4.api.objects.SloSelection
Selection criteria of SLO objects.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
addBeneficiary
(SloSelection.Beneficiary beneficiary) Adds aBeneficiary
to the object.Returns anjava.util.Iterator
of beneficiaries.getQuery()
Returns the query definition as XML.boolean
Returnstrue
if the there is a queryvoid
Removes all beneficiaries.boolean
removeBeneficiary
(SloSelection.Beneficiary beneficiary) Removes a specificBeneficiary
.void
Sets the query definition.protected void
-
Constructor Details
-
SloSelection
protected SloSelection(com.uc4.util.XMLDocument doc)
-
-
Method Details
-
getQuery
Returns the query definition as XML.- Returns:
- XML, never null
-
isQueryDefined
public boolean isQueryDefined()Returnstrue
if the there is a query- Returns:
- true if a query has been defined, false if the query is empty
-
setQuery
Sets the query definition.- Parameters:
query
- String containing a valid XML
-
beneficiariesIterator
Returns anjava.util.Iterator
of beneficiaries.- Returns:
- Iterator
-
removeAllBeneficiaries
public void removeAllBeneficiaries()Removes all beneficiaries. -
removeBeneficiary
Removes a specificBeneficiary
.- Parameters:
beneficiary
- Beneficiary- Returns:
true
if theBeneficiary
was removed, false if not found
-
addBeneficiary
Adds aBeneficiary
to 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
-