Examples of addGroupName()


Examples of com.cloud.bridge.service.core.ec2.EC2DescribeSecurityGroups.addGroupName()

        Enumeration<?> names = request.getParameterNames();
        while( names.hasMoreElements()) {
            String key = (String)names.nextElement();
            if (key.startsWith("GroupName")) {
                String[] value = request.getParameterValues( key );
                if (null != value && 0 < value.length) EC2request.addGroupName( value[0] );
            }
        } 

        // -> are there any filters with this request?
        EC2Filter[] filterSet = extractFilters( request );
View Full Code Here

Examples of com.cloud.bridge.service.core.ec2.EC2RunInstances.addGroupName()

   
    // -> we can only support one group per instance
    if (null != gst) {
      GroupItemType[] items = gst.getItem();
      if (null != items) {
        for( int i=0; i < items.length; i++ ) request.addGroupName(items[i].getGroupId());
        }
    }
    return toRunInstancesResponse( engine.runInstances( request ), engine);
  }
 
View Full Code Here

Examples of com.cloud.bridge.service.core.ec2.EC2RunInstances.addGroupName()

   
    // -> we can only support one group per instance
    if (null != gst) {
      GroupItemType[] items = gst.getItem();
      if (null != items) {
        for( int i=0; i < items.length; i++ ) request.addGroupName(items[i].getGroupId());
        }
    }
    return toRunInstancesResponse( engine.runInstances( request ), engine);
  }
 
View Full Code Here

Examples of com.cloud.bridge.service.core.ec2.EC2RunInstances.addGroupName()

        while( names.hasMoreElements()) {
            String key = (String)names.nextElement();
            if ( key.startsWith("SecurityGroup")) {
                String[] value = request.getParameterValues(key);
                if (null != value && 0 < value.length)
                    EC2request.addGroupName( value[0]);
            }
        }

        // -> execute the request
        EC2Engine engine = ServiceProvider.getInstance().getEC2Engine();
View Full Code Here

Examples of com.sun.enterprise.deployment.runtime.common.SecurityRoleMapping.addGroupName()

    public void setElementValue(XMLElement element, String value) {  
        SecurityRoleMapping srm = (SecurityRoleMapping) getDescriptor();
        if (RuntimeTagNames.ROLE_NAME.equals(element.getQName())) {
            srm.setRoleName(value);
        } else if (RuntimeTagNames.GROUP_NAME.equals(element.getQName())) {
            srm.addGroupName(value);
        } else super.setElementValue(element, value);
    }

    /**
     * write the descriptor class to a DOM tree and return it
View Full Code Here

Examples of com.sun.enterprise.deployment.runtime.common.SecurityRoleMapping.addGroupName()

    public void setElementValue(XMLElement element, String value) {  
        SecurityRoleMapping srm = (SecurityRoleMapping) getDescriptor();
        if (RuntimeTagNames.ROLE_NAME.equals(element.getQName())) {
            srm.setRoleName(value);
        } else if (RuntimeTagNames.GROUP_NAME.equals(element.getQName())) {
            srm.addGroupName(value);
        } else super.setElementValue(element, value);
    }

    /**
     * write the descriptor class to a DOM tree and return it
View Full Code Here

Examples of com.sun.enterprise.deployment.runtime.common.SecurityRoleMapping.addGroupName()

    public void setElementValue(XMLElement element, String value) {  
        SecurityRoleMapping srm = (SecurityRoleMapping) getDescriptor();
        if (RuntimeTagNames.ROLE_NAME.equals(element.getQName())) {
            srm.setRoleName(value);
        } else if (RuntimeTagNames.GROUP_NAME.equals(element.getQName())) {
            srm.addGroupName(value);
        } else super.setElementValue(element, value);
    }

    /**
     * write the descriptor class to a DOM tree and return it
View Full Code Here

Examples of edu.internet2.middleware.grouperClient.api.GcFindGroups.addGroupName()

      WsGroup wsGroup = null;

    if (key != null) {

      GcFindGroups gcFindGroups = new GcFindGroups();
      gcFindGroups.addGroupName(key);
      WsFindGroupsResults results = gcFindGroups.execute();

      // if no results were returned, return null
      if (results != null && results.getGroupResults() != null
          && results.getGroupResults().length > 0) {
View Full Code Here

Examples of edu.internet2.middleware.grouperClient.api.GcFindGroups.addGroupName()

  }

  public Group findGroup(String groupID){
    GcFindGroups groupFinder = new GcFindGroups();

    groupFinder.addGroupName(groupID);
    WsFindGroupsResults res = groupFinder.execute();
   
    if(!"T".equals(res.getResultMetadata().getSuccess())){
      throw new RuntimeException("Error finding group: "+groupID+", "+res.getResultMetadata().getResultMessage());
    }
View Full Code Here

Examples of edu.internet2.middleware.grouperClient.api.GcGetMembers.addGroupName()

        try {
           
            // execute a search for members of the specified group
            GcGetMembers getGroupsMembers = new GcGetMembers();
            getGroupsMembers.addGroupName(group.getLocalKey());
            getGroupsMembers.assignIncludeSubjectDetail(true);
            WsGetMembersResults results = getGroupsMembers.execute();
           
            if (results == null || results.getResults() == null
                    || results.getResults().length == 0
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.