Class LDAPConnectorStorage

  • All Implemented Interfaces:
    Storage

    public class LDAPConnectorStorage
    extends ConnectorStorage
    Storage implementation that stores data into a LDAP using the personify connector framework
    Author:
    vanderw
    • Constructor Detail

      • LDAPConnectorStorage

        public LDAPConnectorStorage()
    • Method Detail

      • get

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

        public boolean delete​(String id)
        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)
      • search

        public List<Map> search​(be.personify.util.SearchCriteria searchCriteria,
                                int start,
                                int count,
                                String sortBy,
                                String sortOrderString,
                                List<String> includeAttributes)
        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)
        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()
        Description copied from interface: Storage
        Deletes all entities
        Returns:
        boolean indicating success
      • get

        public Map<String,​Object> get​(String id,
                                            String version)
        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)
        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