Class ContactPersonFactoryBean
- java.lang.Object
-
- org.springframework.beans.factory.config.AbstractFactoryBean<T>
-
- se.litsec.opensaml.core.spring.AbstractSAMLObjectBuilderFactoryBean<ContactPerson>
-
- se.litsec.opensaml.saml2.metadata.build.spring.ContactPersonFactoryBean
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanClassLoaderAware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.FactoryBean<ContactPerson>
,org.springframework.beans.factory.InitializingBean
public class ContactPersonFactoryBean extends AbstractSAMLObjectBuilderFactoryBean<ContactPerson>
A Spring factory bean for creatingContactPerson
objects.- Author:
- Martin Lindström (martin.lindstrom@litsec.se)
- See Also:
ContactPersonBuilder
-
-
Constructor Summary
Constructors Constructor Description ContactPersonFactoryBean()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AbstractSAMLObjectBuilder<ContactPerson>
builder()
Returns the builder.Class<?>
getObjectType()
void
setCompany(String company)
Assigns theCompany
element.void
setEmailAddresses(String emailAddress)
Assigns oneEmailAddress
element.void
setEmailAddresses(List<String> emailAddresses)
Assigns theEmailAddress
elements.void
setGivenName(String givenName)
Assigns theGivenName
element.void
setSurname(String surname)
Assigns theSurName
element.void
setTelephoneNumber(String telephoneNumber)
Assigns oneTelephoneNumber
element.void
setTelephoneNumbers(List<String> telephoneNumbers)
Assigns theTelephoneNumber
elements.void
setType(ContactPersonTypeEnumeration type)
Assigns the type of contact person.-
Methods inherited from class se.litsec.opensaml.core.spring.AbstractSAMLObjectBuilderFactoryBean
createInstance, localizedStringListToVarArgs, stringListToVarArgs, toVarArgs
-
-
-
-
Method Detail
-
getObjectType
public Class<?> getObjectType()
- Specified by:
getObjectType
in interfaceorg.springframework.beans.factory.FactoryBean<ContactPerson>
- Specified by:
getObjectType
in classorg.springframework.beans.factory.config.AbstractFactoryBean<ContactPerson>
-
builder
protected AbstractSAMLObjectBuilder<ContactPerson> builder()
Returns the builder.- Specified by:
builder
in classAbstractSAMLObjectBuilderFactoryBean<ContactPerson>
- Returns:
- the builder
-
setType
public void setType(ContactPersonTypeEnumeration type)
Assigns the type of contact person.- Parameters:
type
- the type- See Also:
ContactPersonBuilder.type(ContactPersonTypeEnumeration)
-
setCompany
public void setCompany(String company)
Assigns theCompany
element.- Parameters:
company
- the company- See Also:
ContactPersonBuilder.company(String)
-
setGivenName
public void setGivenName(String givenName)
Assigns theGivenName
element.- Parameters:
givenName
- the name- See Also:
ContactPersonBuilder.givenName(String)
-
setSurname
public void setSurname(String surname)
Assigns theSurName
element.- Parameters:
surname
- the name- See Also:
ContactPersonBuilder.surname(String)
-
setEmailAddresses
public void setEmailAddresses(List<String> emailAddresses)
Assigns theEmailAddress
elements.- Parameters:
emailAddresses
- the email addresses- See Also:
ContactPersonBuilder.emailAddresses(String...)
-
setEmailAddresses
public void setEmailAddresses(String emailAddress)
Assigns oneEmailAddress
element.- Parameters:
emailAddress
- the email address- See Also:
ContactPersonBuilder.emailAddresses(String...)
-
setTelephoneNumbers
public void setTelephoneNumbers(List<String> telephoneNumbers)
Assigns theTelephoneNumber
elements.- Parameters:
telephoneNumbers
- the numbers to assign- See Also:
ContactPersonBuilder.telephoneNumbers(String...)
-
setTelephoneNumber
public void setTelephoneNumber(String telephoneNumber)
Assigns oneTelephoneNumber
element.- Parameters:
telephoneNumber
- the number to assign- See Also:
ContactPersonBuilder.telephoneNumbers(String...)
-
-