Class AclIndexOperations

java.lang.Object
org.bremersee.acl.spring.data.mongodb.AclIndexOperations

public class AclIndexOperations extends Object
The acl index operations.
Author:
Christian Bremer
  • Constructor Details

    • AclIndexOperations

      public AclIndexOperations(org.springframework.data.mongodb.core.MongoOperations mongoOperations)
      Instantiates a new acl index operations.
      Parameters:
      mongoOperations - the mongo operations
  • Method Details

    • getAclIndexInfo

      public List<org.springframework.data.mongodb.core.index.IndexInfo> getAclIndexInfo(Class<?> entityClass)
      Gets acl index info.
      Parameters:
      entityClass - the entity class
      Returns:
      the acl index info
    • getAclIndexInfo

      public List<org.springframework.data.mongodb.core.index.IndexInfo> getAclIndexInfo(Class<?> entityClass, String aclPath)
      Gets acl index info.
      Parameters:
      entityClass - the entity class
      aclPath - the acl path
      Returns:
      the acl index info
    • getAclIndexInfo

      public List<org.springframework.data.mongodb.core.index.IndexInfo> getAclIndexInfo(String collectionName, String aclPath)
      Gets acl index info.
      Parameters:
      collectionName - the collection name
      aclPath - the acl path
      Returns:
      the acl index info
    • ensureAclIndexes

      public void ensureAclIndexes(Class<?> entityClass, Collection<String> possiblePermissions, boolean dropIndexesOfOtherPermissions)
      Ensure acl indexes.
      Parameters:
      entityClass - the entity class
      possiblePermissions - the possible permissions
      dropIndexesOfOtherPermissions - the drop indexes of other permissions
    • ensureAclIndexes

      public void ensureAclIndexes(Class<?> entityClass, String aclPath, Collection<String> possiblePermissions, boolean dropIndexesOfOtherPermissions)
      Ensure acl indexes.
      Parameters:
      entityClass - the entity class
      aclPath - the acl path
      possiblePermissions - the possible permissions
      dropIndexesOfOtherPermissions - the drop indexes of other permissions
    • ensureAclIndexes

      public void ensureAclIndexes(String collectionName, String aclPath, Collection<String> possiblePermissions, boolean dropIndexesOfOtherPermissions)
      Ensure acl indexes.
      Parameters:
      collectionName - the collection name
      aclPath - the acl path
      possiblePermissions - the possible permissions
      dropIndexesOfOtherPermissions - the drop indexes of other permissions