Class ContextDefinition

java.lang.Object
org.kuali.rice.core.api.mo.AbstractDataTransferObject
org.kuali.rice.krms.api.repository.context.ContextDefinition
All Implemented Interfaces:
Serializable, Inactivatable, Identifiable, Versioned, ModelObjectBasic, ModelObjectComplete, ContextDefinitionContract

public final class ContextDefinition extends AbstractDataTransferObject implements ContextDefinitionContract
An immutable representation of a context definition. A context definition defines information about a context which can be loaded into the rules engine for evaluation. A context definition includes a list of agendas which are valid within the context. Typically, during rule engine execution, one or more of these agendas is selected for execution based on a given set of selection criteria.
Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
  • Method Details

    • getId

      public String getId()
      Specified by:
      getId in interface Identifiable
    • getNamespace

      public String getNamespace()
      Description copied from interface: ContextDefinitionContract
      Returns the namespace of the context definition. The combination of namespace and name represent a unique business key for the context definition. The namespace should never be null or blank.
      Specified by:
      getNamespace in interface ContextDefinitionContract
      Returns:
      the namespace of the context definition, should never be null or blank
    • getName

      public String getName()
      Description copied from interface: ContextDefinitionContract
      Returns the name of the context definition. The combination of name and namespaceCode represent a unique business key for the context definition. The name should never be null or blank.
      Specified by:
      getName in interface ContextDefinitionContract
      Returns:
      the name of the context definition, should never be null or blank
    • getTypeId

      public String getTypeId()
      Description copied from interface: ContextDefinitionContract
      Returns the type id for the context definition. If the type id is null, that means this context definition is of the default type.
      Specified by:
      getTypeId in interface ContextDefinitionContract
      Returns:
      the type id for the context definition, or null if this context definition is of the default type
    • getDescription

      public String getDescription()
      Description copied from interface: ContextDefinitionContract
      Returns the description of the context definition.
      Specified by:
      getDescription in interface ContextDefinitionContract
      Returns:
      the description of the context definition. May be null.
    • isActive

      public boolean isActive()
      Specified by:
      isActive in interface Inactivatable
    • getAgendas

      public List<AgendaDefinition> getAgendas()
      Description copied from interface: ContextDefinitionContract
      Returns the list of agendas AgendaDefinitionContract contained in the context definition. This method should never return null. An empty list is returned if no agendas are associated with this context.
      Specified by:
      getAgendas in interface ContextDefinitionContract
      Returns:
      the list of agendas contained in this context definition
    • getAttributes

      public Map<String,String> getAttributes()
      Description copied from interface: ContextDefinitionContract
      Returns a map of name/value pairs representing the attributes associated with this context.

      This method should never return null. An empty map is returned if no attributes are associated with the context.

      Specified by:
      getAttributes in interface ContextDefinitionContract
      Returns:
      a list of Map of name/value String pairs.
    • getVersionNumber

      public Long getVersionNumber()
      Specified by:
      getVersionNumber in interface Versioned