Class IdentityAttributeService
java.lang.Object
fr.paris.lutece.plugins.identitystore.service.attribute.IdentityAttributeService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfr.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) Get all attributesgetAttributeKey(String keyName) GetAttributeKeyfrom its key name.getAttributeKeySafe(String keyName) GetAttributeKeyfrom its key name.getCommonAttributeKeys(String keyName) Get allAttributeKeythat are flagged as PIVOT.getPivotAttributeKeys(boolean isRegularIdentity) Get allAttributeKeythat are flagged 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)
-
Constructor Details
-
IdentityAttributeService
public IdentityAttributeService()
-
-
Method Details
-
instance
-
getAllAtributeKeys
Get all attributes -
getAttributeKey
public AttributeKey getAttributeKey(String keyName) throws fr.paris.lutece.plugins.identitystore.web.exception.ResourceNotFoundException GetAttributeKeyfrom its key name.- Parameters:
keyName- the key name- Returns:
AttributeKey- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.ResourceNotFoundException- if noAttributeKeyexists for the provided key name.
-
getAttributeKeySafe
GetAttributeKeyfrom its key name.- Parameters:
keyName- the key name- Returns:
AttributeKey, ornullif noAttributeKeyexists for the provided key name.
-
getPivotAttributeKeys
Get allAttributeKeythat are flagged as PIVOT.- Returns:
List<AttributeKey>
-
getPivotAttributeKeys
Get allAttributeKeythat are flagged as PIVOT.- Parameters:
isRegularIdentity- if true, return the regular pivot attributes. If false, return the alternative pivot attributes.- Returns:
List<AttributeKey>
-
getCommonAttributeKeys
-
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.IdentityStoreException Private method used to create an attribute for an identity.- Parameters:
attributeToCreate-identity-clientCode-- Returns:
- AttributeStatus
- Throws:
fr.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.IdentityStoreException private 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
-