Class LdapPrincipalAttributesProperties

All Implemented Interfaces:
Serializable, CasFeatureModule

@RequiresModule(name="cas-server-support-person-directory", automated=true) public class LdapPrincipalAttributesProperties extends AbstractLdapSearchProperties
Since:
5.2.0
See Also:
  • Constructor Details

    • LdapPrincipalAttributesProperties

      public LdapPrincipalAttributesProperties()
  • Method Details

    • getOrder

      public int getOrder()
      The order of this attribute repository in the chain of repositories. Can be used to explicitly position this source in chain and affects merging strategies.
    • getAttributes

      public Map<String,String> getAttributes()
      Map of attributes to fetch from the source. Attributes are defined using a key-value structure where CAS allows the attribute name/key to be renamed virtually to a different attribute. The key is the attribute fetched from the data source and the value is the attribute name CAS should use for virtual renames.

      Attributes may be allowed to be virtually renamed and remapped. The key in the attribute map is the original attribute, and the value should be the virtually-renamed attribute.

      To fetch and resolve attributes that carry tags/options, such as homePostalAddress;lang-jp consider tagging the mapped attribute as such: affiliation=affiliation;.

      Values may be separated by a comma, which allows you to rename the source attribute into multiple CAS attributes. For example mail=mail,email would fetch the mail attribute from the data source and virtually rename it into two CAS attributes: mail and email.

    • getId

      public String getId()
      A value can be assigned to this field to uniquely identify this resolver.
    • getState

      public AttributeRepositoryStates getState()
      Whether attribute resolution based on this source is enabled.
    • isUseAllQueryAttributes

      public boolean isUseAllQueryAttributes()
      Whether all existing attributes should be passed down to the query builder map and be used in the construction of the filter.
    • getQueryAttributes

      public Map<String,String> getQueryAttributes()
      Define a Map of query attribute names to data-layer attribute names to use when building the query. The key is always the name of the query attribute that is defined by CAS and passed internally, and the value is the column/field that should map.
    • setOrder

      public LdapPrincipalAttributesProperties setOrder(int order)
      The order of this attribute repository in the chain of repositories. Can be used to explicitly position this source in chain and affects merging strategies.
      Returns:
      this.
    • setAttributes

      public LdapPrincipalAttributesProperties setAttributes(Map<String,String> attributes)
      Map of attributes to fetch from the source. Attributes are defined using a key-value structure where CAS allows the attribute name/key to be renamed virtually to a different attribute. The key is the attribute fetched from the data source and the value is the attribute name CAS should use for virtual renames.

      Attributes may be allowed to be virtually renamed and remapped. The key in the attribute map is the original attribute, and the value should be the virtually-renamed attribute.

      To fetch and resolve attributes that carry tags/options, such as homePostalAddress;lang-jp consider tagging the mapped attribute as such: affiliation=affiliation;.

      Values may be separated by a comma, which allows you to rename the source attribute into multiple CAS attributes. For example mail=mail,email would fetch the mail attribute from the data source and virtually rename it into two CAS attributes: mail and email.

      Returns:
      this.
    • setId

      A value can be assigned to this field to uniquely identify this resolver.
      Returns:
      this.
    • setState

      Whether attribute resolution based on this source is enabled.
      Returns:
      this.
    • setUseAllQueryAttributes

      public LdapPrincipalAttributesProperties setUseAllQueryAttributes(boolean useAllQueryAttributes)
      Whether all existing attributes should be passed down to the query builder map and be used in the construction of the filter.
      Returns:
      this.
    • setQueryAttributes

      public LdapPrincipalAttributesProperties setQueryAttributes(Map<String,String> queryAttributes)
      Define a Map of query attribute names to data-layer attribute names to use when building the query. The key is always the name of the query attribute that is defined by CAS and passed internally, and the value is the column/field that should map.
      Returns:
      this.