KickJava   Java API By Example, From Geeks To Geeks.

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


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.Server;
16 import info.magnolia.cms.i18n.Messages;
17 import info.magnolia.cms.i18n.MessagesManager;
18 import info.magnolia.cms.license.LicenseFileExtractor;
19 import info.magnolia.module.admininterface.TemplatedMVCHandler;
20
21 import java.util.Map JavaDoc;
22
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 AboutPage extends TemplatedMVCHandler {
32
33     /**
34      * Required constructor.
35      * @param name page name
36      * @param request HttpServletRequest
37      * @param response HttpServletResponse
38      */

39     public AboutPage(String JavaDoc name, HttpServletRequest JavaDoc request, HttpServletResponse JavaDoc response) {
40         super(name, request, response);
41     }
42
43     public Map JavaDoc getLicense() {
44         return LicenseFileExtractor.getInstance().getEntries();
45     }
46
47     public Messages getMessages() {
48         return MessagesManager.getMessages();
49     }
50
51     public String JavaDoc getIsAdmin() {
52         return Boolean.toString(Server.isAdmin());
53     }
54
55 }
56
Popular Tags