Class RoleLinkField

All Implemented Interfaces:
Serializable, Cloneable, Copyable, DictionaryBean, UifDictionaryBean, Component, Ordered, ScriptEventSupport, Field, LifecycleElement, org.springframework.core.Ordered

public class RoleLinkField extends LinkField
Field that encloses a link to a role element.
Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
  • Constructor Details

    • RoleLinkField

      public RoleLinkField()
  • Method Details

    • performFinalize

      public void performFinalize(Object model, LifecycleElement parent)
      PerformFinalize override - calls super, corrects the field's Label for attribute to point to this field's content.
      Specified by:
      performFinalize in interface LifecycleElement
      Overrides:
      performFinalize in class LinkField
      Parameters:
      model - the model
      parent - the parent component
    • buildInquiryUrl

      protected String buildInquiryUrl()
    • getRoleNameByRoleId

      protected String getRoleNameByRoleId(String roleId)
    • getRoleNameByNamespaceAndName

      protected String getRoleNameByNamespaceAndName(String namespaceCode, String roleName)
    • getRoleName

      public String getRoleName()
      RoleName key used as a parameter of generated inquiry link url.
      Returns:
      value of RoleName key parameter
    • setRoleName

      public void setRoleName(String roleName)
    • getRoleNamespaceCode

      public String getRoleNamespaceCode()
      RoleNamespaceCode key used as a parameter of generated inquiry link url.
      Returns:
      value of RoleNamespaceCode key parameter
    • setRoleNamespaceCode

      public void setRoleNamespaceCode(String roleNamespaceCode)
    • getRoleId

      public String getRoleId()
      RoleId key used as a parameter of generated inquiry link url.
      Returns:
      value of RoleId key parameter
    • setRoleId

      public void setRoleId(String roleId)
    • getDataObjectClassName

      public String getDataObjectClassName()
      DataObjectClassName used as a parameter of generated inquiry link url.
      Returns:
      value of DataObjectClassName parameter
    • setDataObjectClassName

      public void setDataObjectClassName(String dataObjectClassName)
    • getBaseInquiryUrl

      public String getBaseInquiryUrl()
      BaseInquiryUrl is the foundation of generated inquiry link url.
      Returns:
      value of BaseInquiryUrl part of inquiry link url
    • setBaseInquiryUrl

      public void setBaseInquiryUrl(String baseInquiryUrl)
    • isNamespaceInLinkText

      public boolean isNamespaceInLinkText()
      True if namespaceCode is to be included in this links linkText, false otherwise.
      Returns:
      true if namespaceCode is to be included in linkText
    • setNamespaceInLinkText

      public void setNamespaceInLinkText(boolean namespaceInLinkText)
    • isDisableLink

      public boolean isDisableLink()
      True if this fields link is disabled, false otherwise.
      Returns:
      true if link disabled
    • setDisableLink

      public void setDisableLink(boolean disableLink)
    • getAdditionalInquiryParameters

      public Map<String,String> getAdditionalInquiryParameters()
      Map that determines what additional properties from a calling view will be sent to properties on the inquiry data object.

      When invoking an inquiry view, a query is done against the inquiries configured data object and the resulting record is display. The values for the properties configured within the inquiry parameters Map, in addition to the inquiry key parameters, will be passed along as values for the inquiry data object properties (thus they form the criteria for the inquiry)

      Returns:
      mapping of calling additional view properties to inquiry data object properties
    • setAdditionalInquiryParameters

      public void setAdditionalInquiryParameters(Map<String,String> additionalInquiryParameters)