001: /*
002: * JFolder, Copyright 2001-2006 Gary Steinmetz
003: *
004: * Distributable under LGPL license.
005: * See terms of license at gnu.org.
006: */
007:
008: package org.jfolder.console.web.admin.macro.execute;
009:
010: //base classes
011: import java.io.IOException;
012: import java.util.ArrayList;
013: import javax.servlet.ServletException;
014:
015: //project specific classes
016: import org.jfolder.common.function.WebPageTagPreferences;
017: import org.jfolder.common.tagging.ConceptRollupTag;
018: import org.jfolder.common.tagging.ConceptTagCharacteristic;
019: import org.jfolder.common.tagging.RootConceptTagHolder;
020: import org.jfolder.common.utils.misc.CommonSeparators;
021: import org.jfolder.common.utils.misc.MiscHelper;
022: import org.jfolder.common.utils.web.ParameterSet;
023: import org.jfolder.common.web.template.SubmitActionContext;
024: import org.jfolder.common.web.template.SubmitActionParameters;
025: import org.jfolder.console.base.BaseConsoleServlet;
026: import org.jfolder.console.base.ConsolePageContext;
027: import org.jfolder.console.base.ConsolePageParameters;
028: import org.jfolder.console.base.ConsolePageSession;
029: import org.jfolder.console.base.NamesForParentCpc;
030: import org.jfolder.console.macro.ConsoleMacro;
031: import org.jfolder.console.macro.ConsoleMacroTagHelper;
032: import org.jfolder.console.macro.v1.OpenSectionIfClosedConsoleMacroTag;
033: import org.jfolder.console.macro.v1.RootV1ConsoleMacroTag;
034: import org.jfolder.security.model.UserHolder;
035:
036: //other classes
037:
038: public class CommonPetStoreActivity {
039:
040: //
041: protected CommonPetStoreActivity() {
042: }
043:
044: protected final static String getBaseTree() {
045: return (CommonSeparators.BRANCH_SEPARATOR + "(main)" + CommonSeparators.BRANCH_SEPARATOR);
046: }
047:
048: //
049: protected final static String getSectionDev() {
050: return ("(main),DEVELOP");
051: }
052:
053: protected final static String getSectionDevToggler() {
054: return ("(main),DEVELOP,[TOGGLE_CALLER],TOG_CALL__DEVEL");
055: }
056:
057: protected final static String getSectionDevApps() {
058: return ("(main),DEVELOP,APPLICATIONS");
059: }
060:
061: protected final static String getSectionDevAppsToggler() {
062: return ("(main),DEVELOP,APPLICATIONS,[TOGGLE_CALLER],TOG_CALL__DEV_APPS");
063: }
064:
065: //
066: protected final static String getSectionDevAppsSpecificApp(
067: String inName) {
068: return ("(main),DEVELOP,APPLICATIONS," + inName);
069: }
070:
071: protected final static String getSectionDevAppsSpecificAppToggler(
072: String inName) {
073: //
074: return ("(main),DEVELOP,APPLICATIONS," + inName + ",[TOGGLE_CALLER],TOG_CALL__USER_APP");
075: }
076:
077: //
078: protected final static String getSectionDevAppsSpecificAppWebDocs(
079: String inName) {
080: //
081: return ("(main),DEVELOP,APPLICATIONS," + inName + ",WEB");
082: }
083:
084: protected final static String getSectionDevAppsSpecificAppWebDocsToggler(
085: String inName) {
086: //
087: return ("(main),DEVELOP,APPLICATIONS," + inName + ",WEB,[TOGGLE_CALLER],TOG_CALL__WEB");
088: }
089:
090: //
091: //
092: //
093: protected final static String getStudioHandle(ArrayList inHandle) {
094:
095: String outValue = null;
096:
097: outValue = MiscHelper.reassembleHandle(inHandle,
098: CommonSeparators.TOGGLE_LINK_SEPARATOR);
099:
100: return outValue;
101: }
102:
103: //
104: //
105: //
106: protected final static String getWebPageHandle(ArrayList inHandle) {
107:
108: String outValue = null;
109:
110: WebPageTagPreferences wptp = new WebPageTagPreferences();
111:
112: outValue = MiscHelper.reassembleHandle(inHandle, wptp
113: .getHandleConjunction());
114:
115: return outValue;
116: }
117: }
|