Class IdentityAttributeService


  • public class IdentityAttributeService
    extends java.lang.Object
    • Constructor Detail

      • IdentityAttributeService

        public IdentityAttributeService()
    • Method Detail

      • getAllAtributeKeys

        public java.util.List<AttributeKey> getAllAtributeKeys()
        Get all attributes
      • getAttributeKey

        public AttributeKey getAttributeKey​(java.lang.String keyName)
                                     throws fr.paris.lutece.plugins.identitystore.web.exception.ResourceNotFoundException
        Get AttributeKey from its key name.
        Parameters:
        keyName - the key name
        Returns:
        AttributeKey
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.ResourceNotFoundException - if no AttributeKey exists for the provided key name.
      • getAttributeKeySafe

        public AttributeKey getAttributeKeySafe​(java.lang.String keyName)
        Get AttributeKey from its key name.
        Parameters:
        keyName - the key name
        Returns:
        AttributeKey, or null if no AttributeKey exists for the provided key name.
      • getPivotAttributeKeys

        public java.util.List<AttributeKey> getPivotAttributeKeys()
        Get all AttributeKey that are flaged as PIVOT.
        Returns:
        List
      • getCommonAttributeKeys

        public java.util.List<AttributeKey> getCommonAttributeKeys​(java.lang.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,
                                                                                                          java.lang.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,
                                                                                                          java.lang.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