Class PersonifyConnectorStorage

java.lang.Object
be.personify.iam.scim.storage.impl.ConnectorStorage
be.personify.iam.scim.storage.impl.PersonifyConnectorStorage
All Implemented Interfaces:
Storage

public class PersonifyConnectorStorage extends ConnectorStorage
Storage implementation that stores data into a database using the personify connector framework
Author:
vanderw
  • Constructor Details

    • PersonifyConnectorStorage

      public PersonifyConnectorStorage()
  • Method Details

    • create

      public void create(String id, Map<String,Object> scimObject, Consumer consumer) throws ConstraintViolationException, DataException
      Description copied from interface: Storage
      Creates a entity
      Parameters:
      id - the id of the entity
      scimObject - the entity itself
      Throws:
      ConstraintViolationException - indicating if constraints are violated
      DataException
    • get

      public Map<String,Object> get(String id, Consumer consumer)
      Description copied from interface: Storage
      Gets a entity by id
      Parameters:
      id - the id of the entity
      Returns:
      the entity
    • update

      public void update(String id, Map<String,Object> scimObject, Consumer consumer) throws ConstraintViolationException
      Description copied from interface: Storage
      Updates a entity
      Parameters:
      id - the id of the entity
      scimObject - the entity itself
      Throws:
      ConstraintViolationException - indicating if constraints are violated
    • delete

      public boolean delete(String id, Consumer consumer)
      Description copied from interface: Storage
      Deletes a entity by id
      Parameters:
      id - the id of the entity
      Returns:
      boolean indicating success
    • search

      public List<Map> search(be.personify.util.SearchCriteria searchCriteria, int start, int count, String sortBy, String sortOrderString, Consumer consumer)
    • search

      public List<Map> search(be.personify.util.SearchCriteria searchCriteria, int start, int count, String sortBy, String sortOrderString, List<String> includeAttributes, Consumer consumer)
      Description copied from interface: Storage
      Searches entities
      Parameters:
      searchCriteria - the searchcriteria
      start - the start position
      count - the number of results to returm
      sortBy - the sortby attributes separated by a comma
      sortOrderString - the sortorder ( ascending or descending )
      Returns:
      a list containing the entities
    • count

      public long count(be.personify.util.SearchCriteria searchCriteria, Consumer consumer)
      Description copied from interface: Storage
      Counts the results giving a searchcrtieria
      Parameters:
      searchCriteria - the searchcriteria
      Returns:
      a long indicating the number of results
    • initialize

      public void initialize(String type)
      Description copied from interface: Storage
      Bootstrap your storage here
      Parameters:
      type - the type
    • flush

      public void flush()
      Description copied from interface: Storage
      Optional to implement : persist
    • deleteAll

      public boolean deleteAll(Consumer consumer)
      Description copied from interface: Storage
      Deletes all entities
      Returns:
      boolean indicating success
    • get

      public Map<String,Object> get(String id, String version, Consumer consumer)
      Description copied from interface: Storage
      Gets a antity by id and version
      Parameters:
      id - the id of the entity
      version - the version of the entity
      Returns:
      the entity
    • getVersions

      public List<String> getVersions(String id, Consumer consumer)
      Description copied from interface: Storage
      Gets the version of a specific entity
      Parameters:
      id - the id of the entity
      Returns:
      a list containing the versions
    • tenantCompatible

      public boolean tenantCompatible()