public void setFullControl( Serializable id, RepositoryFileSid sid, RepositoryFilePermission permission ) {
addAce( id, sid, EnumSet.of( permission ) );
}
public RepositoryFileAcl updateAcl( final RepositoryFileAcl acl ) {
return (RepositoryFileAcl) jcrTemplate.execute( new JcrCallback() {
public Object doInJcr( final Session session ) throws RepositoryException, IOException {
PentahoJcrConstants pentahoJcrConstants = new PentahoJcrConstants( session );
JcrRepositoryFileUtils.checkoutNearestVersionableFileIfNecessary( session, pentahoJcrConstants, acl.getId() );
RepositoryFileAcl updatedAcl = internalUpdateAcl( session, pentahoJcrConstants, acl.getId(), acl );
JcrRepositoryFileUtils.checkinNearestVersionableFileIfNecessary( session, pentahoJcrConstants, acl.getId(),