Examples of addGroup()


Examples of cu.ftpd.user.User.addGroup()

        if (user.hasPermission(UserPermission.GROUPS) && user.hasPermission(UserPermission.USEREDIT)) {
            try {
                Group g = ServiceManager.getServices().getUserbase().getGroup(parameterList[2]);
                User u = ServiceManager.getServices().getUserbase().getUser(parameterList[1]);
                if (add) {
                    u.addGroup(g.getName()); // must be a member of the group you are adminning
                    u.addGadminForGroup(g.getName());
                } else {
                    u.removeGadminForGroup(g.getName());
                }
                connection.respond("200 Operation completed successfully.");
View Full Code Here

Examples of cu.ftpd.user.userbases.local.LocalUser.addGroup()

                    se.set(UserStatistics.DAYUP_TIME, Long.parseLong(parts[2]) / 1000);
                    statistics.store(se);
                } else if (line.startsWith("GROUP")) {
                    String[] groupdata = line.substring(5).trim().split(" ", 2);
                    final String group = groupdata[0].trim();
                    user.addGroup(group);
                    if ("1".equals(groupdata[1].trim())) {
                        user.addGadminForGroup(group, false);
                    }
                    if (!hasPrimaryGroupSet) {
                        hasPrimaryGroupSet = true;
View Full Code Here

Examples of de.bananaco.permissions.interfaces.PermissionSet.addGroup()

        if (set.getGroupNodes(group) == null) {
            return false;
        }

        set.addGroup(player, group);
        return true;
    }

    @Override
    public boolean playerRemoveGroup(String world, String player, String group) {
View Full Code Here

Examples of edu.harvard.fas.zfeledy.fiximulator.util.LogField.addGroup()

                    }
                } catch (FieldNotFound fieldNotFound) {
                }

                logField.addGroup(logGroup);
            }
        }

        return logField;
    }
View Full Code Here

Examples of javax.jdo.FetchPlan.addGroup()

        try {
            final Class<?> cls = clsOf(rootOid);
            final Object jdoObjectId = JdoObjectIdSerializer.toJdoObjectId(rootOid);
            final PersistenceManager pm = getPersistenceManager();
            FetchPlan fetchPlan = pm.getFetchPlan();
            fetchPlan.addGroup(FetchGroup.DEFAULT);
            result = pm.getObjectById(cls, jdoObjectId);
        } catch (final RuntimeException e) {

            final List<ExceptionRecognizer> exceptionRecognizers = getPersistenceSession().getServicesInjector().lookupServices(ExceptionRecognizer.class);
            for (ExceptionRecognizer exceptionRecognizer : exceptionRecognizers) {
View Full Code Here

Examples of javax.swing.GroupLayout.Group.addGroup()

  }
 
  private Group createHorizontalGroup(GroupLayout layout, int gap, Group ... columns) {
    Group g = layout.createSequentialGroup().addContainerGap();
    for (Group c: columns) {
      g.addGroup(c).addGap(gap);
    }
    return g;
  }
 
  private Group createVerticalGroup(GroupLayout layout, Group ... columns) {
View Full Code Here

Examples of javax.swing.GroupLayout.ParallelGroup.addGroup()

    v1.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED);
    //Add scroll panel to the sequential group v1
    v1.addComponent(jScrollPane1, GroupLayout.DEFAULT_SIZE, 500, Short.MAX_VALUE);
    v1.addContainerGap();
    //Add the group v1 to vGroup
    vGroup.addGroup(v1);
    //Create the vertical group
    layout.setVerticalGroup(vGroup);
    pack();
  }
View Full Code Here

Examples of javax.swing.GroupLayout.SequentialGroup.addGroup()

    h2.addComponent(jLabel1, GroupLayout.Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 512, Short.MAX_VALUE);

    //Add a container gap to the sequential group h1
    h1.addContainerGap();
    // Add the group h2 to the group h1
    h1.addGroup(h2);
    h1.addContainerGap();
    //Add the group h1 to hGroup
    hGroup.addGroup(Alignment.TRAILING,h1);
    //Create the horizontal group
    layout.setHorizontalGroup(hGroup);
View Full Code Here

Examples of net.ae97.totalpermissions.permission.PermissionUser.addGroup()

    @Override
    public boolean playerAddGroup(String world, String player, String group) {
        try {
            PermissionUser user = manager.getUser(player);
            user.addGroup(group, world);
            return true;
        } catch (IOException ex) {
            plugin.getLogger().log(Level.SEVERE,
                    String.format("[%s] An error occured while saving perms", totalperms.getDescription().getName()), ex);
            return false;
View Full Code Here

Examples of net.canarymod.api.OfflinePlayer.addGroup()

            return;
        }
        if (target == null) {
            OfflinePlayer oplayer = Canary.getServer().getOfflinePlayer(args[1]);
            if (!oplayer.isInGroup(group, true)) {
                oplayer.addGroup(group);
                caller.message(Colors.YELLOW + Translator.translate("modify group add"));
            }
            return;
        }
        if (!target.isInGroup(group, true)) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.