public class MongoAclService extends Object implements org.springframework.security.acls.model.AclService, org.springframework.beans.factory.InitializingBean
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Marker |
ACL |
protected org.springframework.security.acls.model.AclCache |
aclCache |
protected String |
aclCollectionName |
protected String |
auditFailureFieldName |
protected String |
auditSuccessFieldName |
protected String |
classFieldName |
protected String |
entriesFieldName |
protected String |
entriesInheritingFieldName |
protected String |
grantingFieldName |
protected String |
identityFieldName |
protected String |
maskFieldName |
protected String |
objectIdFieldName |
protected String |
ownerFieldName |
protected String |
parentObjectFieldName |
protected String |
principalFieldName |
protected String |
qualifiedObjectIdClassFieldName |
protected String |
qualifiedObjectIdIdentityFieldName |
protected String |
qualifiedParentObjectClassFieldName |
protected String |
qualifiedParentObjectIdentityFieldName |
protected String |
sidFieldName |
| Constructor and Description |
|---|
MongoAclService(com.mongodb.DB db,
org.springframework.security.acls.model.AclCache aclCache,
org.springframework.security.acls.model.PermissionGrantingStrategy permissionGrantingStrategy,
org.springframework.security.acls.domain.AclAuthorizationStrategy aclAuthorizationStrategy) |
MongoAclService(com.mongodb.Mongo mongo,
String databaseName,
org.springframework.security.acls.model.AclCache aclCache,
org.springframework.security.acls.model.PermissionGrantingStrategy permissionGrantingStrategy,
org.springframework.security.acls.domain.AclAuthorizationStrategy aclAuthorizationStrategy) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
List<org.springframework.security.acls.model.ObjectIdentity> |
findChildren(org.springframework.security.acls.model.ObjectIdentity parentIdentity) |
protected com.mongodb.DBCollection |
getAclCollection() |
protected com.mongodb.DBObject |
queryById(Object id) |
protected com.mongodb.DBObject |
queryByObjectIdentity(org.springframework.security.acls.model.ObjectIdentity oid) |
protected com.mongodb.DBObject |
queryByParentIdentity(org.springframework.security.acls.model.ObjectIdentity oid) |
org.springframework.security.acls.model.Acl |
readAclById(org.springframework.security.acls.model.ObjectIdentity object) |
org.springframework.security.acls.model.Acl |
readAclById(org.springframework.security.acls.model.ObjectIdentity object,
List<org.springframework.security.acls.model.Sid> sids) |
Map<org.springframework.security.acls.model.ObjectIdentity,org.springframework.security.acls.model.Acl> |
readAclsById(List<org.springframework.security.acls.model.ObjectIdentity> objects) |
Map<org.springframework.security.acls.model.ObjectIdentity,org.springframework.security.acls.model.Acl> |
readAclsById(List<org.springframework.security.acls.model.ObjectIdentity> objects,
List<org.springframework.security.acls.model.Sid> sids) |
void |
setAclCollectionName(String aclCollectionName) |
void |
setAuditFailureFieldName(String auditFailureFieldName) |
void |
setAuditSuccessFieldName(String auditSuccessFieldName) |
void |
setClassFieldName(String classFieldName) |
void |
setEntriesFieldName(String entriesFieldName) |
void |
setEntriesInheritingFieldName(String entriesInheritingFieldName) |
void |
setGrantingFieldName(String grantingFieldName) |
void |
setIdentityFieldName(String identityFieldName) |
void |
setMaskFieldName(String maskFieldName) |
void |
setObjectIdFieldName(String objectIdFieldName) |
void |
setOwnerFieldName(String ownerFieldName) |
void |
setParentObjectFieldName(String parentObjectFieldName) |
void |
setPermissionFactory(org.springframework.security.acls.domain.PermissionFactory permissionFactory) |
void |
setPrincipalFieldName(String principalFieldName) |
void |
setSidFieldName(String sidFieldName) |
protected org.springframework.security.acls.model.AccessControlEntry |
toAccessControlEntry(int id,
org.springframework.security.acls.model.Acl acl,
com.mongodb.DBObject dbo) |
protected org.springframework.security.acls.model.ObjectIdentity |
toObjectIdentity(com.mongodb.DBObject dbo) |
protected org.springframework.security.acls.model.Sid |
toSid(com.mongodb.DBObject dbo) |
protected static final org.slf4j.Marker ACL
protected final org.springframework.security.acls.model.AclCache aclCache
protected String aclCollectionName
protected String objectIdFieldName
protected String classFieldName
protected String identityFieldName
protected String parentObjectFieldName
protected String ownerFieldName
protected String principalFieldName
protected String sidFieldName
protected String entriesFieldName
protected String entriesInheritingFieldName
protected String maskFieldName
protected String grantingFieldName
protected String auditSuccessFieldName
protected String auditFailureFieldName
protected String qualifiedObjectIdClassFieldName
protected String qualifiedObjectIdIdentityFieldName
protected String qualifiedParentObjectClassFieldName
protected String qualifiedParentObjectIdentityFieldName
public MongoAclService(com.mongodb.Mongo mongo,
String databaseName,
org.springframework.security.acls.model.AclCache aclCache,
org.springframework.security.acls.model.PermissionGrantingStrategy permissionGrantingStrategy,
org.springframework.security.acls.domain.AclAuthorizationStrategy aclAuthorizationStrategy)
public MongoAclService(com.mongodb.DB db,
org.springframework.security.acls.model.AclCache aclCache,
org.springframework.security.acls.model.PermissionGrantingStrategy permissionGrantingStrategy,
org.springframework.security.acls.domain.AclAuthorizationStrategy aclAuthorizationStrategy)
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionprotected final com.mongodb.DBCollection getAclCollection()
public List<org.springframework.security.acls.model.ObjectIdentity> findChildren(org.springframework.security.acls.model.ObjectIdentity parentIdentity)
findChildren in interface org.springframework.security.acls.model.AclServicepublic org.springframework.security.acls.model.Acl readAclById(org.springframework.security.acls.model.ObjectIdentity object)
throws org.springframework.security.acls.model.NotFoundException
readAclById in interface org.springframework.security.acls.model.AclServiceorg.springframework.security.acls.model.NotFoundExceptionpublic org.springframework.security.acls.model.Acl readAclById(org.springframework.security.acls.model.ObjectIdentity object,
List<org.springframework.security.acls.model.Sid> sids)
throws org.springframework.security.acls.model.NotFoundException
readAclById in interface org.springframework.security.acls.model.AclServiceorg.springframework.security.acls.model.NotFoundExceptionpublic Map<org.springframework.security.acls.model.ObjectIdentity,org.springframework.security.acls.model.Acl> readAclsById(List<org.springframework.security.acls.model.ObjectIdentity> objects) throws org.springframework.security.acls.model.NotFoundException
readAclsById in interface org.springframework.security.acls.model.AclServiceorg.springframework.security.acls.model.NotFoundExceptionpublic Map<org.springframework.security.acls.model.ObjectIdentity,org.springframework.security.acls.model.Acl> readAclsById(List<org.springframework.security.acls.model.ObjectIdentity> objects, List<org.springframework.security.acls.model.Sid> sids) throws org.springframework.security.acls.model.NotFoundException
readAclsById in interface org.springframework.security.acls.model.AclServiceorg.springframework.security.acls.model.NotFoundExceptionprotected final org.springframework.security.acls.model.AccessControlEntry toAccessControlEntry(int id,
org.springframework.security.acls.model.Acl acl,
com.mongodb.DBObject dbo)
protected final org.springframework.security.acls.model.Sid toSid(com.mongodb.DBObject dbo)
protected final org.springframework.security.acls.model.ObjectIdentity toObjectIdentity(com.mongodb.DBObject dbo)
protected final com.mongodb.DBObject queryById(Object id)
protected final com.mongodb.DBObject queryByParentIdentity(org.springframework.security.acls.model.ObjectIdentity oid)
protected final com.mongodb.DBObject queryByObjectIdentity(org.springframework.security.acls.model.ObjectIdentity oid)
public void setAclCollectionName(String aclCollectionName)
public void setObjectIdFieldName(String objectIdFieldName)
public void setClassFieldName(String classFieldName)
public void setIdentityFieldName(String identityFieldName)
public void setParentObjectFieldName(String parentObjectFieldName)
public void setOwnerFieldName(String ownerFieldName)
public void setPrincipalFieldName(String principalFieldName)
public void setSidFieldName(String sidFieldName)
public void setEntriesFieldName(String entriesFieldName)
public void setEntriesInheritingFieldName(String entriesInheritingFieldName)
public void setMaskFieldName(String maskFieldName)
public void setGrantingFieldName(String grantingFieldName)
public void setAuditSuccessFieldName(String auditSuccessFieldName)
public void setAuditFailureFieldName(String auditFailureFieldName)
public void setPermissionFactory(org.springframework.security.acls.domain.PermissionFactory permissionFactory)
Copyright © 2015 Pivotal Software, Inc.. All rights reserved.