KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > services > pages > PageInfoInterface


1 //
2
// ____.
3
// __/\ ______| |__/\. _______
4
// __ .____| | \ | +----+ \
5
// _______| /--| | | - \ _ | : - \_________
6
// \\______: :---| : : | : | \________>
7
// |__\---\_____________:______: :____|____:_____\
8
// /_____|
9
//
10
// . . . i n j a h i a w e t r u s t . . .
11
//
12

13 package org.jahia.services.pages;
14
15
16 /**
17  * This interface holds constants related to the pages.
18  *
19  * @author Fulco Houkes
20  * @version 1.0
21  */

22 public interface PageInfoInterface {
23
24     //---------------------------------
25
// The following constants define the different kind of pages present
26
// inside of Jahia. A TYPE_DIRECT page is a real page holding renderable
27
// content, while the TYPE_LINK and TYPE_URL are references on other pages.
28
// Respectively the TYPE_LINK and TYPE_URL type are links to an internal
29
// jahia page and a remote URL, which is usually a non jahia page.
30

31
32     /** Real page type */
33     public static final int TYPE_DIRECT = 0;
34
35     /** Link type page */
36     public static final int TYPE_LINK = 1;
37
38     /** Remote URL page type */
39     public static final int TYPE_URL = 2;
40
41     /** Array holding the constant type names */
42     public static final String JavaDoc[] PAGE_TYPE_NAMES = {"TYPE_DIRECT", "TYPE_LINK", "TYPE_URL"};
43
44
45
46     //---------------------------------
47
// page default link values.
48

49
50     /** Default remote URL value */
51     public static final String JavaDoc NO_REMOTE_URL = "http://";
52
53     /**
54      * Page tree hierarchy termination value. <b>No real page should have this
55      * page ID!</b>
56      */

57     public static final int TERMINATION_PAGE_ID = -1;
58
59 }
60
Popular Tags