Class AttributeFields

java.lang.Object
org.kuali.rice.core.api.mo.AbstractDataTransferObject
org.kuali.rice.kew.framework.document.search.AttributeFields
All Implemented Interfaces:
Serializable, org.kuali.rice.core.api.mo.ModelObjectBasic, org.kuali.rice.core.api.mo.ModelObjectComplete

public final class AttributeFields extends org.kuali.rice.core.api.mo.AbstractDataTransferObject
An immutable data transfer object used to hold a list of RemotableAttributeField objects and the name of the SearchableAttribute from which the fields are derived. This is essentially used as a grouping mechanism in order to identify which fields are sourced from which attributes.

Since this class serves primarily as a simple wrapper for use by DocumentSearchCriteriaConfiguration, it does not have a builder, only a single static create method that is used for constructing instances of it.

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    create(String attributeName, List<org.kuali.rice.core.api.uif.RemotableAttributeField> attributeFields)
    Construct a new instance of AttributeFields with the given attribute name and list of remotable attribute fields.
    Returns the name of the searchable attribute associated with this attribute fields instance.
    List<org.kuali.rice.core.api.uif.RemotableAttributeField>
    Returns a list of remotable attribute fields associated with the searchable attribute name of this instance.

    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 Details

    • create

      public static AttributeFields create(String attributeName, List<org.kuali.rice.core.api.uif.RemotableAttributeField> attributeFields)
      Construct a new instance of AttributeFields with the given attribute name and list of remotable attribute fields.
      Parameters:
      attributeName - the name of the attribute, must not be a null or blank value
      attributeFields - the remotable attribute fields to associate with the given attribute name
      Returns:
      a new AttributeFields instance containing the given values
      Throws:
      IllegalArgumentException - if the given attributeName is blank or null
    • getAttributeName

      public String getAttributeName()
      Returns the name of the searchable attribute associated with this attribute fields instance. Should never return a null or blank value.
      Returns:
      the searchable attribute name of this instance
    • getRemotableAttributeFields

      public List<org.kuali.rice.core.api.uif.RemotableAttributeField> getRemotableAttributeFields()
      Returns a list of remotable attribute fields associated with the searchable attribute name of this instance. This should never return a null reference, though the list returned can be empty.
      Returns:
      a list of remotable attribute fields associated with this instance