Class AclIndexOperations
java.lang.Object
org.bremersee.acl.spring.data.mongodb.AclIndexOperations
The acl index operations.
- Author:
- Christian Bremer
-
Constructor Summary
ConstructorsConstructorDescriptionAclIndexOperations(org.springframework.data.mongodb.core.MongoOperations mongoOperations) Instantiates a new acl index operations. -
Method Summary
Modifier and TypeMethodDescriptionvoidensureAclIndexes(Class<?> entityClass, String aclPath, Collection<String> possiblePermissions, boolean dropIndexesOfOtherPermissions) Ensure acl indexes.voidensureAclIndexes(Class<?> entityClass, Collection<String> possiblePermissions, boolean dropIndexesOfOtherPermissions) Ensure acl indexes.voidensureAclIndexes(String collectionName, String aclPath, Collection<String> possiblePermissions, boolean dropIndexesOfOtherPermissions) Ensure acl indexes.List<org.springframework.data.mongodb.core.index.IndexInfo> getAclIndexInfo(Class<?> entityClass) Gets acl index info.List<org.springframework.data.mongodb.core.index.IndexInfo> getAclIndexInfo(Class<?> entityClass, String aclPath) Gets acl index info.List<org.springframework.data.mongodb.core.index.IndexInfo> getAclIndexInfo(String collectionName, String aclPath) Gets acl index info.
-
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 classaclPath- 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 nameaclPath- 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 classpossiblePermissions- the possible permissionsdropIndexesOfOtherPermissions- 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 classaclPath- the acl pathpossiblePermissions- the possible permissionsdropIndexesOfOtherPermissions- 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 nameaclPath- the acl pathpossiblePermissions- the possible permissionsdropIndexesOfOtherPermissions- the drop indexes of other permissions
-