List of usage examples for org.springframework.security.acls.domain AccessControlEntryImpl getSid
@Override
public Sid getSid()
From source file:org.gaixie.micrite.security.service.impl.MutableAclServiceImpl.java
protected void createEntries(final MutableAcl acl) { int i = 1;/* w ww .j a v a 2s.c om*/ for (AccessControlEntry entry_ : acl.getEntries()) { AccessControlEntryImpl entry = (AccessControlEntryImpl) entry_; AclEntry aclEntry = new AclEntry(); long oid = ((Long) acl.getId()).longValue(); aclEntry.setAclObject(aclObjectIdentityDAO.get(oid)); aclEntry.setAceOrder(i); AclSid aclSid = getOrCreateAclSid(entry.getSid(), true); aclEntry.setAclSid(aclSid); aclEntry.setAuditFailure(entry.isAuditFailure()); aclEntry.setAuditSuccess(entry.isAuditSuccess()); aclEntry.setGranting(entry.isGranting()); aclEntry.setMask(entry.getPermission().getMask()); aclEntryDAO.save(aclEntry); i++; } }