KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > info > magnolia > module > admininterface > pages > UsersPage


1 /**
2  *
3  * Magnolia and its source-code is licensed under the LGPL.
4  * You may copy, adapt, and redistribute this file for commercial or non-commercial use.
5  * When copying, adapting, or redistributing this document in keeping with the guidelines above,
6  * you are required to provide proper attribution to obinary.
7  * If you reproduce or distribute the document without making any substantive modifications to its content,
8  * please use the following attribution line:
9  *
10  * Copyright 1993-2006 obinary Ltd. (http://www.obinary.com) All rights reserved.
11  *
12  */

13 package info.magnolia.module.admininterface.pages;
14
15 import info.magnolia.cms.beans.config.ContentRepository;
16 import info.magnolia.cms.core.ItemType;
17 import info.magnolia.context.MgnlContext;
18 import info.magnolia.module.admininterface.TemplatedMVCHandler;
19
20 import java.util.Collection JavaDoc;
21
22 import javax.jcr.RepositoryException;
23 import javax.servlet.http.HttpServletRequest JavaDoc;
24 import javax.servlet.http.HttpServletResponse JavaDoc;
25
26
27 /**
28  * @author Fabrizio Giustina
29  * @version $Revision: 6341 $ ($Author: philipp $)
30  */

31 public class UsersPage extends TemplatedMVCHandler {
32
33     /**
34      * Required constructor.
35      * @param name page name
36      * @param request HttpServletRequest
37      * @param response HttpServletResponse
38      */

39     public UsersPage(String JavaDoc name, HttpServletRequest JavaDoc request, HttpServletResponse JavaDoc response) {
40         super(name, request, response);
41     }
42
43     public Collection JavaDoc getUserNodes() throws RepositoryException {
44         return MgnlContext.getHierarchyManager(ContentRepository.USERS).getRoot().getChildren(ItemType.USER);
45     }
46
47 }
48
Popular Tags