Package xregistry.generated

Examples of xregistry.generated.ListGroupsGivenAUserResponseDocument


    public ListGroupsGivenAUserResponseDocument listGroupsGivenAUser(
            ListGroupsGivenAUserDocument input) throws XregistryException {
        log.info("Request Received " + input.xmlText());
        String[] groups = registryImpl.listGroupsGivenAUser(findUserDN(), input
                .getListGroupsGivenAUser().getUserName());
        ListGroupsGivenAUserResponseDocument responseDocument = ListGroupsGivenAUserResponseDocument.Factory
                .newInstance();
        ListGroupsGivenAUserResponse listGroupsResponse = responseDocument
                .addNewListGroupsGivenAUserResponse();

        if (groups != null) {
            for (String group : groups) {
                listGroupsResponse.addNewGroup().setStringValue(group);
            }
        }
        log.info("Response  Sent  " + responseDocument.xmlText());
        return responseDocument;
    }
View Full Code Here


        return responseDocument.getListGroupsResponse().getGroupArray();
    }
    public String[] listGroupsGivenAUser(String user) throws XregistryException {
        ListGroupsGivenAUserDocument input =  ListGroupsGivenAUserDocument.Factory.newInstance();
        input.addNewListGroupsGivenAUser().setUserName(user);
        ListGroupsGivenAUserResponseDocument responseDocument = proxy.listGroupsGivenAUser(input);
       
        return responseDocument.getListGroupsGivenAUserResponse().getGroupArray();
    }
View Full Code Here

TOP

Related Classes of xregistry.generated.ListGroupsGivenAUserResponseDocument

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.