Package org.globus.workspace.groupauthz

Examples of org.globus.workspace.groupauthz.GroupAuthz


            }
        }
        else if (accountingType.equalsIgnoreCase("group")) {

            try {
                GroupAuthz groupAuthz = (GroupAuthz)this.authzCallout;
                accountString = groupAuthz.getGroupName(userDN);
            }
            catch (Exception e) {
                logger.error("Problem getting group string. Are you sure you're using Group or SQL authz?");
                logger.debug("full error: " + e);
            }
View Full Code Here


        catch(NumberFormatException e) {
            errorMsg = "Group id must be a positive integer";
            return null;
        }

        GroupAuthz groupAuthz = (GroupAuthz) authzCallout;
        Group[] groups = groupAuthz.getGroups();
        if(id <= 0 || id > groups.length || groups[id -1] == null) {
            errorMsg = "Group " + groupId + " not found";
            return null;
        }
View Full Code Here

        return groups[id -1];
    }

    private Group getGroupByGroupName(String groupName) {
        GroupAuthz groupAuthz = (GroupAuthz) authzCallout;
        Group[] groups = groupAuthz.getGroups();
        for(int i = 0; i < groups.length; i++) {
            if(groups[i] != null && groups[i].getName().equals(groupName))
                return groups[i];
        }
        errorMsg = "Group " + groupName + " not found";
View Full Code Here

    /*
     * Translates vm info into string format for passing over rmi with Gson
     */
    private VMTranslation translateVM(VM vm) throws RemoteException {
        try {
            GroupAuthz groupAuthz = (GroupAuthz) authzCallout;

            String id = vm.getID();
            VirtualMachine vmlong = workspaceHome.find(id).getVM();
            String node = vmlong.getNode();
            String creatorId = vm.getCreator().getIdentity();
            String groupId = Integer.toString(groupAuthz.getGroupIDFromCaller(creatorId));
            String groupName = groupAuthz.getGroupName(creatorId);
            String state = vm.getState().getState();
            String startTime = vm.getSchedule().getStartTime().getTime().toString();
            String endTime = vm.getSchedule().getDestructionTime().getTime().toString();

            ResourceAllocation ra = vm.getResourceAllocation();
View Full Code Here

TOP

Related Classes of org.globus.workspace.groupauthz.GroupAuthz

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.