Class SloSelection

java.lang.Object
com.uc4.api.objects.SloSelection

public class SloSelection extends Object
Selection criteria of SLO objects.
  • Constructor Details

    • SloSelection

      protected SloSelection(com.uc4.util.XMLDocument doc)
  • Method Details

    • getQuery

      public String getQuery()
      Returns the query definition as XML.
      Returns:
      XML, never null
    • isQueryDefined

      public boolean isQueryDefined()
      Returns true if the there is a query
      Returns:
      true if a query has been defined, false if the query is empty
    • setQuery

      public void setQuery(String query)
      Sets the query definition.
      Parameters:
      query - String containing a valid XML
    • beneficiariesIterator

      public Iterator<SloSelection.Beneficiary> beneficiariesIterator()
      Returns an java.util.Iterator of beneficiaries.
      Returns:
      Iterator
    • removeAllBeneficiaries

      public void removeAllBeneficiaries()
      Removes all beneficiaries.
    • removeBeneficiary

      public boolean removeBeneficiary(SloSelection.Beneficiary beneficiary)
      Removes a specific Beneficiary.
      Parameters:
      beneficiary - Beneficiary
      Returns:
      true if the Beneficiary was removed, false if not found
    • addBeneficiary

      public boolean addBeneficiary(SloSelection.Beneficiary beneficiary)
      Adds a Beneficiary 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

      protected void store(com.uc4.util.XMLDocument doc, Element request)