File Source: constants.java
1 /*
2 * Copyright (c) 2003-2006, Simon Brown
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 *
8 * - Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 *
11 * - Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in
13 * the documentation and/or other materials provided with the
14 * distribution.
15 *
16 * - Neither the name of Pebble nor the names of its contributors may
17 * be used to endorse or promote products derived from this software
18 * without specific prior written permission.
19 *
20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
24 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30 * POSSIBILITY OF SUCH DAMAGE.
31 */
32 package net.sourceforge.pebble;
33
34 /**
35 * Contains constants for use in the presentation tier.
36 *
37 * @author Simon Brown
38 */
/*
P/P * Method: void net.sourceforge.pebble.Constants()
*/
39 public class Constants {
40
41 public static final String BLOG_KEY = "blog";
42 public static final String MULTI_BLOG_KEY = "multiBlog";
43 public static final String BLOG_URL = "blogUrl";
44 public static final String MULTI_BLOG_URL = "multiBlogUrl";
45
46 public static final String BLOG_TYPE = "blogType";
47 public static final String BLOGS = "blogs";
48 public static final String MONTHLY_BLOG = "monthlyBlog";
49 public static final String DAILY_BLOG = "dailyBlog";
50 public static final String BLOG_ENTRIES = "blogEntries";
51 public static final String RESPONSES = "responses";
52
53 public static final String RECENT_BLOG_ENTRIES = "recentBlogEntries";
54 public static final String RECENT_RESPONSES = "recentResponses";
55 public static final String CATEGORIES = "categories";
56 public static final String TAGS = "tags";
57 public static final String PLUGIN_PROPERTIES = "pluginProperties";
58 public static final String ARCHIVES = "archives";
59
60 public static final String BLOG_ENTRY_KEY = "blogEntry";
61 public static final String STATIC_PAGE_KEY = "staticPage";
62 public static final String COMMENT_KEY = "comment";
63 public static final String BLOG_MANAGER = "blogManager";
64 public static final String PEBBLE_CONTEXT = "pebbleContext";
65 public static final String PEBBLE_PROPERTIES = "pebbleProperties";
66 public static final String TITLE_KEY = "title";
67 public static final String CATEGORY_KEY = "category";
68 public static final String USER_KEY = "user";
69
70 public static final String EXTERNAL_URI = "externalUri";
71 public static final String INTERNAL_URI = "internalUri";
/*
P/P * Method: net.sourceforge.pebble.Constants__static_init
*
* Postconditions:
* ANY_ROLE == &"*"
* AUTHENTICATED_USER == &"authenticatedUser"
* BLOG_ADMIN_ROLE == &"ROLE_BLOG_ADMIN"
* BLOG_CONTRIBUTOR_ROLE == &"ROLE_BLOG_CONTRIBUTOR"
* BLOG_OWNER_ROLE == &"ROLE_BLOG_OWNER"
* BLOG_PUBLISHER_ROLE == &"ROLE_BLOG_PUBLISHER"
* BLOG_READER_ROLE == &"ROLE_BLOG_READER"
* FILTERS_APPLIED == &"filtersApplied"
* THEME == &"theme"
*/
72 public static String FILTERS_APPLIED = "filtersApplied";
73 public static String AUTHENTICATED_USER = "authenticatedUser";
74
75 public static String THEME = "theme";
76
77 public static String BLOG_ADMIN_ROLE = "ROLE_BLOG_ADMIN";
78 public static String BLOG_OWNER_ROLE = "ROLE_BLOG_OWNER";
79 public static String BLOG_PUBLISHER_ROLE = "ROLE_BLOG_PUBLISHER";
80 public static String BLOG_CONTRIBUTOR_ROLE = "ROLE_BLOG_CONTRIBUTOR";
81 public static String BLOG_READER_ROLE = "ROLE_BLOG_READER";
82 public static String ANY_ROLE = "*";
83
84 }
SofCheck Inspector Build Version : 2.22510
| constants.java |
2010-Jun-25 19:40:34 |
| constants.class |
2010-Jul-19 20:23:40 |