Package org.platformlayer.ops.users.PosixGroupManagement

Examples of org.platformlayer.ops.users.PosixGroupManagement.Group


  @Handler
  public void doOperation() throws OpsException {
    OpsTarget target = OpsContext.get().getInstance(OpsTarget.class);

    Map<String, Group> groups = PosixGroupManagement.getGroups(target);
    Group group = groups.get(groupName);
    if (group == null) {
      target.executeCommand("groupadd {0}", groupName);
    }
  }
View Full Code Here

TOP

Related Classes of org.platformlayer.ops.users.PosixGroupManagement.Group

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.