Examples of findAllAsXml()


Examples of org.fao.geonet.repository.UserRepository.findAllAsXml()

    int userId = Integer.parseInt(us.getUserId());

        final UserRepository userRepository = context.getBean(UserRepository.class);
        if (us.getProfile() == Profile.Administrator) {
      @SuppressWarnings("unchecked")
            List<Element> allUsers = userRepository.findAllAsXml().getChildren();
            return allUsers;
    }

    if (us.getProfile() != Profile.UserAdmin) {
            @SuppressWarnings("unchecked")
View Full Code Here

Examples of org.fao.geonet.repository.UserRepository.findAllAsXml()

            return allUsers;
    }

    if (us.getProfile() != Profile.UserAdmin) {
            @SuppressWarnings("unchecked")
            List<Element> identifiedUsers = userRepository.findAllAsXml(UserSpecs.hasUserId(userId)).getChildren();;
            return identifiedUsers;
        }

    //--- we have a user admin
View Full Code Here

Examples of org.fao.geonet.repository.UserRepository.findAllAsXml()

        Set<String> profileSet = us.getProfile().getAllNames();

    //--- retrieve all users

    Element elUsers = userRepository.findAllAsXml(null, SortUtils.createSort(User_.name));

    //--- now filter them

    ArrayList<Element> alToRemove = new ArrayList<Element>();
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.