Class ProfileSelection

java.lang.Object
swiss.trustbroker.federation.xmlconfig.ProfileSelection
All Implemented Interfaces:
Serializable, swiss.trustbroker.api.profileselection.dto.ProfileSelectionProperties

public class ProfileSelection extends Object implements Serializable, swiss.trustbroker.api.profileselection.dto.ProfileSelectionProperties
Configures the profile selection.
See Also:
  • Constructor Details

    • ProfileSelection

      public ProfileSelection()
    • ProfileSelection

      public ProfileSelection(Boolean enabled, String filter, Boolean filterOutbound, Boolean sort, Boolean needToKnow, Boolean oidcOnly, Boolean customizeProperties, Boolean customizeUnits, Boolean filterUnits, String profileSelector, String organizationSelector, String displayName, List<String> displayClaims, List<String> translationAttributes, ProfileSelectionMode mode)
      Creates a new ProfileSelection instance.
      Parameters:
      enabled - Enable this feature
      filter - Apply filtering on roles.
      Default: true Alternatives: false to disable, regexp for picking custom role list.
      filterOutbound - Apply filtering on roles to claims output as well reducing data to what has been selected by the user in INTERACTIVE mode.
      Default: false
      sort - Apply sorting on profiles and roles.
      Default: true (sort ascending) Alternatives: false to disable sorting
      needToKnow - Apply name/value transformation.
      Default: false
      oidcOnly - Apply name/value transformation for n2k only for Oidc.
      Default: true, disable if SAML should also be done
      customizeProperties - Apply name/value transformation for CustomProperties (if true regardless of n2k).
      Set to false if for n2k=true to leave custom profile props alone.
      customizeUnits - Apply name/value transformation for UnitProperties if n2k=true.
      Default: false
      filterUnits - Filter unit properties by selected/default profile ID if n2k=true.
      Default: false
      profileSelector - Attribute used as selector (kind of unique Primary Key) for profile selection.
      organizationSelector - Attribute used as selector (kind of unique Secondary Key) for organization selection.
      displayName - Attribute used as displayName for profile selection UI.
      displayClaims - Additional information to be displayed for profile selection.
      translationAttributes - Names of attributes that should be translated.
      mode - Mode for profile selection.
      Since:
      1.12.0, 1.12.0, 1.12.0, 1.13.0, 1.14.0, 1.13.0, 1.13.0, 1.14.0
  • Method Details

    • isProfileSelectionEnabled

      public boolean isProfileSelectionEnabled()
      Specified by:
      isProfileSelectionEnabled in interface swiss.trustbroker.api.profileselection.dto.ProfileSelectionProperties
    • getProfileSelectionMode

      public String getProfileSelectionMode()
      Specified by:
      getProfileSelectionMode in interface swiss.trustbroker.api.profileselection.dto.ProfileSelectionProperties
    • isForOidcOnly

      public boolean isForOidcOnly()
      Specified by:
      isForOidcOnly in interface swiss.trustbroker.api.profileselection.dto.ProfileSelectionProperties
    • isN2kEnabled

      public boolean isN2kEnabled()
      Specified by:
      isN2kEnabled in interface swiss.trustbroker.api.profileselection.dto.ProfileSelectionProperties
    • isTransformCustomPropsEnabled

      public boolean isTransformCustomPropsEnabled()
      Specified by:
      isTransformCustomPropsEnabled in interface swiss.trustbroker.api.profileselection.dto.ProfileSelectionProperties
    • isTransformUnitPropsEnabled

      public boolean isTransformUnitPropsEnabled()
      Specified by:
      isTransformUnitPropsEnabled in interface swiss.trustbroker.api.profileselection.dto.ProfileSelectionProperties
    • isFilterUnitPropsEnabled

      public boolean isFilterUnitPropsEnabled()
      Specified by:
      isFilterUnitPropsEnabled in interface swiss.trustbroker.api.profileselection.dto.ProfileSelectionProperties
    • isSortRoleEnabled

      public boolean isSortRoleEnabled()
      Specified by:
      isSortRoleEnabled in interface swiss.trustbroker.api.profileselection.dto.ProfileSelectionProperties
    • isFilterRoleEnabled

      public boolean isFilterRoleEnabled()
      Specified by:
      isFilterRoleEnabled in interface swiss.trustbroker.api.profileselection.dto.ProfileSelectionProperties
    • isFilterRoleOutput

      public boolean isFilterRoleOutput()
      Specified by:
      isFilterRoleOutput in interface swiss.trustbroker.api.profileselection.dto.ProfileSelectionProperties
    • getFilterRoleConfiguration

      public String getFilterRoleConfiguration()
      Specified by:
      getFilterRoleConfiguration in interface swiss.trustbroker.api.profileselection.dto.ProfileSelectionProperties
    • getDisplayClaims

      public List<String> getDisplayClaims()
      Specified by:
      getDisplayClaims in interface swiss.trustbroker.api.profileselection.dto.ProfileSelectionProperties
    • getTranslationAttributes

      public List<String> getTranslationAttributes()
      Specified by:
      getTranslationAttributes in interface swiss.trustbroker.api.profileselection.dto.ProfileSelectionProperties
    • builder

    • getEnabled

      public Boolean getEnabled()
      Enable this feature
    • getFilter

      public String getFilter()
      Apply filtering on roles.
      Default: true Alternatives: false to disable, regexp for picking custom role list.
      Since:
      1.12.0
    • getFilterOutbound

      public Boolean getFilterOutbound()
      Apply filtering on roles to claims output as well reducing data to what has been selected by the user in INTERACTIVE mode.
      Default: false
      Since:
      1.12.0
    • getSort

      public Boolean getSort()
      Apply sorting on profiles and roles.
      Default: true (sort ascending) Alternatives: false to disable sorting
      Since:
      1.12.0
    • getNeedToKnow

      public Boolean getNeedToKnow()
      Apply name/value transformation.
      Default: false
    • getOidcOnly

      public Boolean getOidcOnly()
      Apply name/value transformation for n2k only for Oidc.
      Default: true, disable if SAML should also be done
    • getCustomizeProperties

      public Boolean getCustomizeProperties()
      Apply name/value transformation for CustomProperties (if true regardless of n2k).
      Set to false if for n2k=true to leave custom profile props alone.
    • getCustomizeUnits

      public Boolean getCustomizeUnits()
      Apply name/value transformation for UnitProperties if n2k=true.
      Default: false
    • getFilterUnits

      public Boolean getFilterUnits()
      Filter unit properties by selected/default profile ID if n2k=true.
      Default: false
    • getProfileSelector

      public String getProfileSelector()
      Attribute used as selector (kind of unique Primary Key) for profile selection.
      Specified by:
      getProfileSelector in interface swiss.trustbroker.api.profileselection.dto.ProfileSelectionProperties
      Since:
      1.13.0
    • getOrganizationSelector

      public String getOrganizationSelector()
      Attribute used as selector (kind of unique Secondary Key) for organization selection.
      Specified by:
      getOrganizationSelector in interface swiss.trustbroker.api.profileselection.dto.ProfileSelectionProperties
      Since:
      1.14.0
    • getDisplayName

      public String getDisplayName()
      Attribute used as displayName for profile selection UI.
      Specified by:
      getDisplayName in interface swiss.trustbroker.api.profileselection.dto.ProfileSelectionProperties
      Since:
      1.13.0
    • getMode

      public ProfileSelectionMode getMode()
      Mode for profile selection.
    • setEnabled

      public void setEnabled(Boolean enabled)
      Enable this feature
    • setFilter

      public void setFilter(String filter)
      Apply filtering on roles.
      Default: true Alternatives: false to disable, regexp for picking custom role list.
      Since:
      1.12.0
    • setFilterOutbound

      public void setFilterOutbound(Boolean filterOutbound)
      Apply filtering on roles to claims output as well reducing data to what has been selected by the user in INTERACTIVE mode.
      Default: false
      Since:
      1.12.0
    • setSort

      public void setSort(Boolean sort)
      Apply sorting on profiles and roles.
      Default: true (sort ascending) Alternatives: false to disable sorting
      Since:
      1.12.0
    • setNeedToKnow

      public void setNeedToKnow(Boolean needToKnow)
      Apply name/value transformation.
      Default: false
    • setOidcOnly

      public void setOidcOnly(Boolean oidcOnly)
      Apply name/value transformation for n2k only for Oidc.
      Default: true, disable if SAML should also be done
    • setCustomizeProperties

      public void setCustomizeProperties(Boolean customizeProperties)
      Apply name/value transformation for CustomProperties (if true regardless of n2k).
      Set to false if for n2k=true to leave custom profile props alone.
    • setCustomizeUnits

      public void setCustomizeUnits(Boolean customizeUnits)
      Apply name/value transformation for UnitProperties if n2k=true.
      Default: false
    • setFilterUnits

      public void setFilterUnits(Boolean filterUnits)
      Filter unit properties by selected/default profile ID if n2k=true.
      Default: false
    • setProfileSelector

      public void setProfileSelector(String profileSelector)
      Attribute used as selector (kind of unique Primary Key) for profile selection.
      Since:
      1.13.0
    • setOrganizationSelector

      public void setOrganizationSelector(String organizationSelector)
      Attribute used as selector (kind of unique Secondary Key) for organization selection.
      Since:
      1.14.0
    • setDisplayName

      public void setDisplayName(String displayName)
      Attribute used as displayName for profile selection UI.
      Since:
      1.13.0
    • setDisplayClaims

      public void setDisplayClaims(List<String> displayClaims)
      Additional information to be displayed for profile selection.
      Since:
      1.13.0
    • setTranslationAttributes

      public void setTranslationAttributes(List<String> translationAttributes)
      Names of attributes that should be translated.
      Since:
      1.14.0
    • setMode

      public void setMode(ProfileSelectionMode mode)
      Mode for profile selection.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object