hudson.setProperty("hudson:managed-by","hudson"); // mark this file system as "managed by Hudson" ACLBuilder acl = new ACLBuilder(); acl.user(userName).withEverything(); hudson.allow(acl); } catch (ZFSException e) {
/** * For everyone. */ public PermissionBuilder everyone() { return add(new PermissionBuilder(zfs_deleg_who_type_t.ZFS_DELEG_EVERYONE)); }
/** * For user */ public PermissionBuilder user(final String userName) { return add(new PermissionBuilder(zfs_deleg_who_type_t.ZFS_DELEG_USER) { protected String who() { return userName; } }); }
public void allow(String userName) { ACLBuilder acl = new ACLBuilder(); acl.user(userName).withEverything(); zfsFileSystem.allow(acl); }
/** * For group */ public PermissionBuilder group(final String groupName) { return add(new PermissionBuilder(zfs_deleg_who_type_t.ZFS_DELEG_GROUP) { protected String who() { return groupName; } }); }
hudson.setProperty("hudson:managed-by","hudson"); // mark this file system as "managed by Hudson" ACLBuilder acl = new ACLBuilder(); acl.user(userName).withEverything(); hudson.allow(acl); } catch (ZFSException e) {
/** * For user */ public PermissionBuilder user(final String userName) { return add(new PermissionBuilder(zfs_deleg_who_type_t.ZFS_DELEG_USER) { protected String who() { return userName; } }); }
hudson.setProperty("hudson:managed-by","hudson"); // mark this file system as "managed by Hudson" ACLBuilder acl = new ACLBuilder(); acl.user(userName).withEverything(); hudson.allow(acl); } catch (ZFSException e) {
/** * For everyone. */ public PermissionBuilder everyone() { return add(new PermissionBuilder(zfs_deleg_who_type_t.ZFS_DELEG_EVERYONE)); }
hudson.setProperty("hudson:managed-by","hudson"); // mark this file system as "managed by Hudson" ACLBuilder acl = new ACLBuilder(); acl.user(userName).withEverything(); hudson.allow(acl); } catch (ZFSException e) {
/** * For group */ public PermissionBuilder group(final String groupName) { return add(new PermissionBuilder(zfs_deleg_who_type_t.ZFS_DELEG_GROUP) { protected String who() { return groupName; } }); }