return newAcl;
}
private Acl adaptAcl( com.emc.atmos.api.Acl acl ) {
if ( acl == null ) return null;
Acl newAcl = new Acl();
for ( String name : acl.getGroupAcl().keySet() ) {
newAcl.addGrant( new Grant( new Grantee( name, Grantee.GRANT_TYPE.GROUP ),
acl.getGroupAcl().get( name ).toString() ) );
}
for ( String name : acl.getUserAcl().keySet() ) {
newAcl.addGrant( new Grant( new Grantee( name, Grantee.GRANT_TYPE.USER ),
acl.getUserAcl().get( name ).toString() ) );
}
return newAcl;
}