Example usage for org.springframework.security.acls.domain AclImpl setOwner

List of usage examples for org.springframework.security.acls.domain AclImpl setOwner

Introduction

In this page you can find the example usage for org.springframework.security.acls.domain AclImpl setOwner.

Prototype

@Override
    public void setOwner(Sid newOwner) 

Source Link

Usage

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*/
}