List of usage examples for org.springframework.security.acls.domain AclImpl setOwner
@Override public void setOwner(Sid newOwner)
From source file:org.tibetjungle.demo.service.DataSourcePopulator.java
private void changeOwner(int contactNumber, String newOwnerUsername) { AclImpl acl = (AclImpl) mutableAclService .readAclById(new ObjectIdentityImpl(Contact.class, new Long(contactNumber))); acl.setOwner(new PrincipalSid(newOwnerUsername)); updateAclInTransaction(acl);/*from w w w . j ava 2 s. c o m*/ }