01: /*
02: * JFolder, Copyright 2001-2006 Gary Steinmetz
03: *
04: * Distributable under LGPL license.
05: * See terms of license at gnu.org.
06: */
07:
08: package org.jfolder.console.base;
09:
10: //base classes
11:
12: //project specific classes
13: import org.jfolder.common.web.template.ConsoleTemplateFunctionsContext;
14:
15: //other classes
16:
17: public class NamesForParentCpc {
18:
19: protected final static String HANDLE_SEPARATOR = ConsoleTemplateFunctionsContext.HANDLE_SEPARATOR;
20:
21: private NamesForParentCpc() {
22: }
23:
24: //
25: public final static String getConsoleScreenCpcName() {
26: return ConsolePageParameters.SERVLET_CONSOLE + HANDLE_SEPARATOR;
27: }
28:
29: //
30: public final static String getDevelopWebPageCpcName(
31: String inAppType, String inAppName, String inDocType,
32: String inDocDir, String inDocFile) {
33: //
34: return ConsolePageParameters.SERVLET_DEVELOP_WEB_PAGE
35: + HANDLE_SEPARATOR + inAppType + HANDLE_SEPARATOR
36: + inAppName + HANDLE_SEPARATOR + inDocType
37: + HANDLE_SEPARATOR + inDocDir + HANDLE_SEPARATOR
38: + inDocFile;
39: }
40:
41: public final static String getDevelopWebPageCpcName(
42: ConsolePageSession inCps) {
43: //
44: return getDevelopWebPageCpcName(inCps
45: .getCurrentApplicationType(), inCps
46: .getCurrentApplicationName(), inCps
47: .getCurrentApplicationWebDocType(), inCps
48: .getCurrentApplicationWebDocDirectory(), inCps
49: .getCurrentApplicationWebDocFile());
50: }
51:
52: //
53: public final static String getConsoleMacroCpcName(
54: ConsolePageSession inCps) {
55: //
56: return ConsolePageParameters.SERVLET_MACRO_STUDIO
57: + HANDLE_SEPARATOR;
58: }
59:
60: public final static String getConfigInstanceCpcName(
61: ConsolePageSession inCps) {
62: //
63: return ConsolePageParameters.SERVLET_CONFIG_STUDIO
64: + HANDLE_SEPARATOR;
65: }
66:
67: public final static String getDatabaseAccessCpcName(
68: ConsolePageSession inCps) {
69: //
70: return ConsolePageParameters.SERVLET_DATABASE_ACCESS
71: + HANDLE_SEPARATOR;
72: }
73: }
|