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.String
getIdentityName()
Must return the value of a 'identityName' attributejava.lang.String
getIdentityRole()
Must return the value of a 'identityRole' attributeint
getIdentityServerId()
Must return the value of a 'IdentityServerId' attributeint
getIdentitySiteId()
Must return the value of a 'IdentitySiteId' attributeServerIdentityConfigurationImpl
setIdentityName(java.lang.String identityName)
ServerIdentityConfigurationImpl
setIdentityRole(java.lang.String identityRole)
ServerIdentityConfigurationImpl
setIdentityServerId(int identityServerId)
ServerIdentityConfigurationImpl
setIdentitySiteId(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:ServerIdentityConfiguration
Must return the value of a 'identityName' attribute- Specified by:
getIdentityName
in interfaceServerIdentityConfiguration
- Returns:
- the identity name value
-
getIdentityServerId
public int getIdentityServerId()
Description copied from interface:ServerIdentityConfiguration
Must return the value of a 'IdentityServerId' attribute- Specified by:
getIdentityServerId
in interfaceServerIdentityConfiguration
- Returns:
- the identity platform id value
-
getIdentitySiteId
public int getIdentitySiteId()
Description copied from interface:ServerIdentityConfiguration
Must return the value of a 'IdentitySiteId' attribute- Specified by:
getIdentitySiteId
in interfaceServerIdentityConfiguration
- Returns:
- the identity platform id value
-
getIdentityRole
public java.lang.String getIdentityRole()
Description copied from interface:ServerIdentityConfiguration
Must return the value of a 'identityRole' attribute- Specified by:
getIdentityRole
in 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
-
-