Advertisement
Guest User

Untitled

a guest
Jul 4th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. /**
  2. * This Source Code Form is subject to the terms of the Mozilla Public License,
  3. * v. 2.0. If a copy of the MPL was not distributed with this file, You can
  4. * obtain one at http://mozilla.org/MPL/2.0/. OpenMRS is also distributed under
  5. * the terms of the Healthcare Disclaimer located at http://openmrs.org/license.
  6. *
  7. * Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
  8. * graphic logo is a trademark of OpenMRS Inc.
  9. */
  10. package org.openmrs.module.department.fragment.controller;
  11.  
  12. import org.openmrs.api.UserService;
  13. import org.openmrs.ui.framework.annotation.SpringBean;
  14. import org.openmrs.ui.framework.fragment.FragmentModel;
  15.  
  16. /**
  17. *  * Controller for a fragment that shows all users  
  18. */
  19. public class UsersFragmentController {
  20.  
  21. public void controller(FragmentModel model, @SpringBean("userService") UserService service) {
  22. model.addAttribute("users", service.getAllUsers());
  23. }
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement