Class IdentityAttributeService

java.lang.Object
fr.paris.lutece.plugins.identitystore.service.attribute.IdentityAttributeService

public class IdentityAttributeService extends Object
  • Constructor Details

    • IdentityAttributeService

      public IdentityAttributeService()
  • Method Details

    • instance

      public static IdentityAttributeService instance()
    • getAllAtributeKeys

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

      public AttributeKey getAttributeKey(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(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 List<AttributeKey> getPivotAttributeKeys()
      Get all AttributeKey that are flaged as PIVOT.
      Returns:
      List<AttributeKey>
    • 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.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