Class IdentityAttributeService
- java.lang.Object
-
- fr.paris.lutece.plugins.identitystore.service.attribute.IdentityAttributeService
-
public class IdentityAttributeService extends Object
-
-
Constructor Summary
Constructors Constructor Description IdentityAttributeService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.AttributeStatuscreateAttribute(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.AttributeDto attributeToCreate, Identity identity, String clientCode)Private method used to create an attribute for an identity.voidcreateAttributeKey(AttributeKey attributeKey)voiddeleteAttributeKey(AttributeKey attributeKey)List<AttributeKey>getAllAtributeKeys()Get all attributesAttributeKeygetAttributeKey(String keyName)GetAttributeKeyfrom its key name.AttributeKeygetAttributeKeySafe(String keyName)GetAttributeKeyfrom its key name.List<AttributeKey>getCommonAttributeKeys(String keyName)List<AttributeKey>getPivotAttributeKeys()Get allAttributeKeythat are flaged as PIVOT.static IdentityAttributeServiceinstance()fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.AttributeStatusuncertifyAttribute(IdentityAttribute attribute)Dé-certification d'un attribut.
Une identité ne pouvant pas posséder d'attributs non-certifiés, une dé-certification implique la certification de l'attribut avec le processus défini par la property :identitystore.identity.uncertify.processus(par défaut : "dec", qui correspond au niveau le plus faible de certification (auto-déclaratif))fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.AttributeStatusupdateAttribute(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.AttributeDto attributeToUpdate, Identity identity, String clientCode)private method used to update an attribute of an identityvoidupdateAttributeKey(AttributeKey attributeKey)
-
-
-
Method Detail
-
instance
public static IdentityAttributeService instance()
-
getAllAtributeKeys
public List<AttributeKey> getAllAtributeKeys()
Get all attributes- Returns:
- Throws:
IdentityAttributeNotFoundException
-
getAttributeKey
public AttributeKey getAttributeKey(String keyName) throws IdentityAttributeNotFoundException
GetAttributeKeyfrom its key name.- Parameters:
keyName- the key name- Returns:
AttributeKey- Throws:
IdentityAttributeNotFoundException- if noAttributeKeyexists for the provided key name.
-
getAttributeKeySafe
public AttributeKey getAttributeKeySafe(String keyName)
GetAttributeKeyfrom its key name.- Parameters:
keyName- the key name- Returns:
AttributeKey, ornullif noAttributeKeyexists for the provided key name.
-
getPivotAttributeKeys
public List<AttributeKey> getPivotAttributeKeys()
Get allAttributeKeythat are flaged as PIVOT.- Returns:
List
-
getCommonAttributeKeys
public List<AttributeKey> getCommonAttributeKeys(String keyName)
-
createAttributeKey
public void createAttributeKey(AttributeKey attributeKey) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
updateAttributeKey
public void updateAttributeKey(AttributeKey attributeKey) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
deleteAttributeKey
public void deleteAttributeKey(AttributeKey attributeKey) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
createAttribute
public fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.AttributeStatus createAttribute(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.AttributeDto attributeToCreate, Identity identity, String clientCode) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionPrivate method used to create an attribute for an identity.- Parameters:
attributeToCreate-identity-clientCode-- Returns:
- AttributeStatus
- Throws:
IdentityAttributeNotFoundExceptionfr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
updateAttribute
public fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.AttributeStatus updateAttribute(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.AttributeDto attributeToUpdate, Identity identity, String clientCode) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionprivate method used to update an attribute of an identity- Parameters:
attributeToUpdate-identity-clientCode-- Returns:
- AttributeStatus
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
uncertifyAttribute
public fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.AttributeStatus uncertifyAttribute(IdentityAttribute attribute) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
Dé-certification d'un attribut.
Une identité ne pouvant pas posséder d'attributs non-certifiés, une dé-certification implique la certification de l'attribut avec le processus défini par la property :identitystore.identity.uncertify.processus(par défaut : "dec", qui correspond au niveau le plus faible de certification (auto-déclaratif))- Parameters:
attribute- l'attribut à dé-certifier- Returns:
- le status
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
-