Class ContextSelectionCriteria

java.lang.Object
org.kuali.rice.core.api.mo.AbstractDataTransferObject
org.kuali.rice.krms.api.repository.context.ContextSelectionCriteria
All Implemented Interfaces:
Serializable, org.kuali.rice.core.api.mo.ModelObjectBasic, org.kuali.rice.core.api.mo.ModelObjectComplete

public final class ContextSelectionCriteria extends org.kuali.rice.core.api.mo.AbstractDataTransferObject
A set of criteria for selecting a ContextDefinition.
Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
  • Method Details

    • newCriteria

      public static ContextSelectionCriteria newCriteria(String namespaceCode, String name, Map<String,String> contextQualifiers)
      Factory method returns a new context selection criteria object with the fields set to the parameters provided.
      Parameters:
      namespaceCode - the namespace of the context
      name - the name of the context
      contextQualifiers - a Map of name value pair strings representing the list of qualifiers to use as selection criteria.
    • newCriteria

      public static ContextSelectionCriteria newCriteria(String namespaceCode, Map<String,String> contextQualifiers)
      Factory method returns a new context selection criteria object with the namespace and contextQualifiers fields set to the parameters provided. The name field is set to null.
      Parameters:
      namespaceCode - the namespace of the context
      contextQualifiers - a Map of name value pair strings representing the list of qualifiers to use as selection criteria.
    • newCriteria

      public static ContextSelectionCriteria newCriteria(Map<String,String> contextQualifiers)
      Factory method returns a new context selection criteria object with the contextQualifiers property set to the parameter provided. The name and namespace properties are set to null.
      Parameters:
      contextQualifiers - a Map of name value pair strings representing the list of qualifiers to use as selection criteria.
    • getNamespaceCode

      public String getNamespaceCode()
      Returns the namespace of the context.
      Returns:
      the namespace code of the context
    • getName

      public String getName()
      Returns the name of the context
      Returns:
      the name of the context
    • getContextQualifiers

      public Map<String,String> getContextQualifiers()
      Returns the list of qualifiers as a map to name, value pair strings.
      Returns:
      a map containing the qualifier name, value pairs.