org.kuali.rice.krms.api.repository.context
Class ContextSelectionCriteria

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

public final class ContextSelectionCriteria
extends AbstractDataTransferObject

A set of criteria for selecting a ContextDefinition.

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
Serialized Form

Method Summary
 Map<String,String> getContextQualifiers()
          Returns the list of qualifiers as a map to name, value pair strings.
 String getName()
          Returns the name of the context
 String getNamespaceCode()
          Returns the namespace of the context.
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.
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.
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.
 
Methods inherited from class org.kuali.rice.core.api.mo.AbstractDataTransferObject
afterUnmarshal, beforeUnmarshal, equals, equalsExcludeFields, getDefaultHashCodeEqualsExcludeFields, hashCode, hashCodeExcludeFields, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

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.


Copyright © 2005-2014 The Kuali Foundation. All Rights Reserved.