Class ServerIdentityConfigurationImpl
- java.lang.Object
-
- fr.gouv.vitam.common.server.application.configuration.ServerIdentityConfigurationImpl
-
- All Implemented Interfaces:
ServerIdentityConfiguration
public class ServerIdentityConfigurationImpl extends java.lang.Object implements ServerIdentityConfiguration
Implementation of ServerIdentityConfiguration Interface
-
-
Constructor Summary
Constructors Constructor Description ServerIdentityConfigurationImpl()ServerIdentityConfiguration empty constructor for YAMLFactoryServerIdentityConfigurationImpl(java.lang.String identityName, int identityServerId, int identitySiteId, java.lang.String identityRole)ServerIdentityConfiguration constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetIdentityName()Must return the value of a 'identityName' attributejava.lang.StringgetIdentityRole()Must return the value of a 'identityRole' attributeintgetIdentityServerId()Must return the value of a 'IdentityServerId' attributeintgetIdentitySiteId()Must return the value of a 'IdentitySiteId' attributeServerIdentityConfigurationImplsetIdentityName(java.lang.String identityName)ServerIdentityConfigurationImplsetIdentityRole(java.lang.String identityRole)ServerIdentityConfigurationImplsetIdentityServerId(int identityServerId)ServerIdentityConfigurationImplsetIdentitySiteId(int identitySiteId)
-
-
-
Constructor Detail
-
ServerIdentityConfigurationImpl
public ServerIdentityConfigurationImpl()
ServerIdentityConfiguration empty constructor for YAMLFactory
-
ServerIdentityConfigurationImpl
public ServerIdentityConfigurationImpl(java.lang.String identityName, int identityServerId, int identitySiteId, java.lang.String identityRole)ServerIdentityConfiguration constructor- Parameters:
identityName- database identity nameidentityServerId- identity server ididentitySiteId- identity site ididentityRole- identity role- Throws:
java.lang.IllegalArgumentException- if identityName or identityRole
-
-
Method Detail
-
getIdentityName
public java.lang.String getIdentityName()
Description copied from interface:ServerIdentityConfigurationMust return the value of a 'identityName' attribute- Specified by:
getIdentityNamein interfaceServerIdentityConfiguration- Returns:
- the identity name value
-
getIdentityServerId
public int getIdentityServerId()
Description copied from interface:ServerIdentityConfigurationMust return the value of a 'IdentityServerId' attribute- Specified by:
getIdentityServerIdin interfaceServerIdentityConfiguration- Returns:
- the identity platform id value
-
getIdentitySiteId
public int getIdentitySiteId()
Description copied from interface:ServerIdentityConfigurationMust return the value of a 'IdentitySiteId' attribute- Specified by:
getIdentitySiteIdin interfaceServerIdentityConfiguration- Returns:
- the identity platform id value
-
getIdentityRole
public java.lang.String getIdentityRole()
Description copied from interface:ServerIdentityConfigurationMust return the value of a 'identityRole' attribute- Specified by:
getIdentityRolein interfaceServerIdentityConfiguration- Returns:
- the identity role value
-
setIdentityName
public ServerIdentityConfigurationImpl setIdentityName(java.lang.String identityName)
- Parameters:
identityName- the identity Name to set- Returns:
- this
- Throws:
java.lang.IllegalArgumentException- if identityName is null or empty
-
setIdentityServerId
public ServerIdentityConfigurationImpl setIdentityServerId(int identityServerId)
- Parameters:
identityServerId- the identityServerId to set- Returns:
- this
- Throws:
java.lang.IllegalArgumentException- if identityServerId < 0
-
setIdentitySiteId
public ServerIdentityConfigurationImpl setIdentitySiteId(int identitySiteId)
- Parameters:
identitySiteId- the identitySiteId to set- Returns:
- this
- Throws:
java.lang.IllegalArgumentException- if identitySiteId < 0
-
setIdentityRole
public ServerIdentityConfigurationImpl setIdentityRole(java.lang.String identityRole)
- Parameters:
identityRole- the identityRole to set- Returns:
- this
- Throws:
java.lang.IllegalArgumentException- if identityRole is null or empty
-
-