Class MetadataSettings.ContactPersonSettings.Builder
java.lang.Object
se.swedenconnect.spring.saml.idp.settings.AbstractSettings.AbstractBuilder<MetadataSettings.ContactPersonSettings,MetadataSettings.ContactPersonSettings.Builder>
se.swedenconnect.spring.saml.idp.settings.MetadataSettings.ContactPersonSettings.Builder
- Enclosing class:
MetadataSettings.ContactPersonSettings
public static final class MetadataSettings.ContactPersonSettings.Builder
extends AbstractSettings.AbstractBuilder<MetadataSettings.ContactPersonSettings,MetadataSettings.ContactPersonSettings.Builder>
A builder for
MetadataSettings.OrganizationSettings
.-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Is invoked byAbstractSettings.AbstractBuilder.build()
to apply default values to those settings that are mandatory and has not been assigned.protected MetadataSettings.ContactPersonSettings
Is invoked byAbstractSettings.AbstractBuilder.build()
and builds the settings object.Assigns theCompany
element.emailAddresses
(List<String> emailAddresses) Assigns theEmailAddress
elements.Assigns theGivenName
element.Assigns theSurName
element.telephoneNumbers
(List<String> telephoneNumbers) Assigns theTelephoneNumber
elements.Methods inherited from class se.swedenconnect.spring.saml.idp.settings.AbstractSettings.AbstractBuilder
build, getSettings, getThis, setting, settings
-
Method Details
-
company
Assigns theCompany
element.- Parameters:
company
- theCompany
- Returns:
- the builder
-
givenName
Assigns theGivenName
element.- Parameters:
givenName
- theGivenName
- Returns:
- the builder
-
surname
Assigns theSurName
element.- Parameters:
surname
- theSurName
- Returns:
- the builder
-
emailAddresses
Assigns theEmailAddress
elements.- Parameters:
emailAddresses
- a list of theEmailAddress
- Returns:
- the builder
-
telephoneNumbers
public MetadataSettings.ContactPersonSettings.Builder telephoneNumbers(List<String> telephoneNumbers) Assigns theTelephoneNumber
elements.- Parameters:
telephoneNumbers
- a list of theTelephoneNumber
s- Returns:
- the builder
-
applyDefaultSettings
protected void applyDefaultSettings()Is invoked byAbstractSettings.AbstractBuilder.build()
to apply default values to those settings that are mandatory and has not been assigned. -
buildObject
Is invoked byAbstractSettings.AbstractBuilder.build()
and builds the settings object.- Specified by:
buildObject
in classAbstractSettings.AbstractBuilder<MetadataSettings.ContactPersonSettings,
MetadataSettings.ContactPersonSettings.Builder> - Returns:
- the settings object
-