Package org.globus.workspace.groupauthz

Examples of org.globus.workspace.groupauthz.Group$TextFile


        }
        return gson.toJson(vmts);
    }

    public String getAllVMsByGroupId(String groupId) throws RemoteException {
        Group group = getGroupByGroupId(groupId);
        VM[] vms = getAllVMsByGroup(group);

        if(vms == null)
            return null;
View Full Code Here


        }
        return gson.toJson(vmts);
    }

    public String getAllVMsByGroupName(String groupName) throws RemoteException {
        Group group = getGroupByGroupName(groupName);
        VM[] vms = getAllVMsByGroup(group);

        if(vms == null)
            return null;
View Full Code Here

                if(vms.length == 0)
                    errorMsg = "No VMs with DN " + typeID + " found";
                return vms;
            }
            else if(type == SHUTDOWN_GID || type == CLEANUP_GID) {
                Group group = getGroupByGroupId(typeID);
                if(group == null)
                    return null;
                VM[] vms = getAllVMsByGroup(group);
                if(vms == null)
                    errorMsg = "No VMs with group id " + typeID + " found";
                return vms;
            }
            else if(type == SHUTDOWN_GNAME || type == CLEANUP_GNAME) {
                Group group = getGroupByGroupName(typeID);
                if(group == null)
                    return null;
                VM[] vms = getAllVMsByGroup(group);
                if(vms == null)
                    errorMsg = "No VMs with group name " + typeID + " found";
View Full Code Here

        }

        final ArrayList seenDNs = new ArrayList();
       
        for (int i = 0; i < groups.length; i++) {
            final Group group = groups[i];
            if (group != null) {
                System.out.println(
                    "\n------------------------------------------------\n");
                this.printGroup(group);
                System.out.println("");
View Full Code Here

    protected boolean scanAll(String dn,
                              Group[] groups) throws Exception {
       
        for (int i = 0; i < groups.length; i++) {
            final Group group = groups[i];
            if (group != null && this.findID(dn, group)) {
                return true;
            }
        }
        return false;
View Full Code Here

    // returns true if something was removed
    protected boolean deleteAllInstances(String dn,
                                         Group[] groups) throws Exception {
        boolean ret = false;
        for (int i = 0; i < groups.length; i++) {
            final Group group = groups[i];
            if (group != null && this.findID(dn, group)) {
                this.deleteDN(dn,
                              group.getIdentitiesFilePath(),
                              group.getName());
                ret = true;
            }
        }
        return ret;
    }
View Full Code Here

        final StringBuffer promptbuf =
                new StringBuffer("\nPick a group to add this DN to:\n");

        for (int i = 0; i < groups.length; i++) {
            final Group group = groups[i];
            if (group != null) {

                numValid++;

                promptbuf.append("\n[")
                         .append(memberFormat.format(i+1))
                         .append("] - Group: '")
                         .append(group.getName())
                         .append("'");
                promptbuf.append("\n");
                promptbuf.append(
                        ReportAll.policyBrief(
                                group.getRights(), indent));
                promptbuf.append("\n");
            }
        }

        if (numValid == 0) {
View Full Code Here

        } catch (Throwable t) {
            // out of bounds, etc., if user gets tricky
            throw new Exception("Invalid choice.");
        }

        final Group chosenGroup = groups[choice-1];
        this.addImpl(dn, chosenGroup);

        System.out.println("\nSUCCESS");
        System.out.println("\nAdded DN: '" + dn + "'");
        System.out.println("To group: '" + chosenGroup.getName() + "'");
        System.out.println("\nGroup policies:");
        System.out.println(ReportAll.policyBrief(chosenGroup.getRights(), ""));
        System.out.println(
            "\nAccess list: '" + chosenGroup.getIdentitiesFilePath() + "'\n");

        final DateFormat format = DateFormat.getDateTimeInstance();
        final String time = format.format(Calendar.getInstance().getTime());

        System.out.println("Time: " + time + "\n");
View Full Code Here

        int numFound = 0;

        final String dn = this.args[0].trim();

        for (int i = 0; i < groups.length; i++) {
            final Group group = groups[i];
            if (group != null
                    && this.findID(dn, group)) {
               
                numFound += 1;

                final String groupName = "group #" + (i+1) +
                            " '" + group.getName() + "'";

                if (numFound > 1) {
                    System.out.println(
                            "Also found in " + groupName + " (NOT in effect)");
                } else {
View Full Code Here

TOP

Related Classes of org.globus.workspace.groupauthz.Group$TextFile

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.