Package fr.gouv.vitam.common
Class ServerIdentity.ServerIdentityConfigurationImpl
java.lang.Object
fr.gouv.vitam.common.ServerIdentity.ServerIdentityConfigurationImpl
- All Implemented Interfaces:
ServerIdentityConfiguration
- Enclosing class:
- ServerIdentity
public static class ServerIdentity.ServerIdentityConfigurationImpl
extends Object
implements ServerIdentityConfiguration
Implementation of ServerIdentityConfiguration Interface
-
Constructor Summary
ConstructorDescriptionServerIdentityConfiguration empty constructor for YAMLFactoryServerIdentityConfigurationImpl
(String identityName, int identityServerId, int identitySiteId, String identityRole) ServerIdentityConfiguration constructor -
Method Summary
Modifier and TypeMethodDescriptionMust return the value of a 'identityName' attributeMust return the value of a 'identityRole' attributeint
Must return the value of a 'IdentityServerId' attributeint
Must return the value of a 'IdentitySiteId' attributesetIdentityName
(String identityName) setIdentityRole
(String identityRole) setIdentityServerId
(int identityServerId) setIdentitySiteId
(int identitySiteId)
-
Constructor Details
-
ServerIdentityConfigurationImpl
public ServerIdentityConfigurationImpl()ServerIdentityConfiguration empty constructor for YAMLFactory -
ServerIdentityConfigurationImpl
public ServerIdentityConfigurationImpl(String identityName, int identityServerId, int identitySiteId, String identityRole) ServerIdentityConfiguration constructor- Parameters:
identityName
- database identity nameidentityServerId
- identity server ididentitySiteId
- identity site ididentityRole
- identity role- Throws:
IllegalArgumentException
- if identityName or identityRole
-
-
Method Details
-
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
Description copied from interface:ServerIdentityConfiguration
Must return the value of a 'identityRole' attribute- Specified by:
getIdentityRole
in interfaceServerIdentityConfiguration
- Returns:
- the identity role value
-
setIdentityName
- Parameters:
identityName
- the identity Name to set- Returns:
- this
- Throws:
IllegalArgumentException
- if identityName is null or empty
-
setIdentityServerId
- Parameters:
identityServerId
- the identityServerId to set- Returns:
- this
- Throws:
IllegalArgumentException
- if identityServerId < 0
-
setIdentitySiteId
- Parameters:
identitySiteId
- the identitySiteId to set- Returns:
- this
- Throws:
IllegalArgumentException
- if identitySiteId < 0
-
setIdentityRole
- Parameters:
identityRole
- the identityRole to set- Returns:
- this
- Throws:
IllegalArgumentException
- if identityRole is null or empty
-