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 javax.servlet.ServletException;
013:
014: //project specific classes
015: import org.jfolder.common.tagging.ConceptRollupTag;
016: import org.jfolder.common.tagging.ConceptTagCharacteristic;
017: import org.jfolder.common.tagging.RootConceptTagHolder;
018: import org.jfolder.common.utils.misc.CommonSeparators;
019: import org.jfolder.common.utils.web.ParameterSet;
020: import org.jfolder.common.web.template.ConsoleTemplateFunctionsContext;
021: import org.jfolder.common.web.template.SubmitActionContext;
022: import org.jfolder.common.web.template.SubmitActionParameters;
023: import org.jfolder.console.base.BaseConsoleServlet;
024: import org.jfolder.console.base.ConsolePageContext;
025: import org.jfolder.console.base.ConsolePageParameters;
026: import org.jfolder.console.base.ConsolePageSession;
027: import org.jfolder.console.base.NamesForParentCpc;
028: import org.jfolder.console.macro.ConsoleMacro;
029: import org.jfolder.console.macro.ConsoleMacroTagHelper;
030: import org.jfolder.console.macro.v1.GoToAndChangeValueConsoleMacroTag;
031: import org.jfolder.console.macro.v1.GoToConsoleMacroTag;
032: import org.jfolder.console.macro.v1.OpenSectionIfClosedConsoleMacroTag;
033: import org.jfolder.console.macro.v1.RootV1ConsoleMacroTag;
034: import org.jfolder.console.macro.v1.SimpleClickConsoleMacroTag;
035: import org.jfolder.console.macro.v1.SubmitActionConsoleMacroTag;
036: import org.jfolder.console.web.base.ConsoleScreenContext;
037: import org.jfolder.security.model.UserHolder;
038:
039: //other classes
040:
041: public class PetStoreActivityCreateWebPage extends
042: CommonPetStoreActivity {
043:
044: //
045: private PetStoreActivityCreateWebPage() {
046: }
047:
048: //
049: public final static void getCreateWebPage(
050: RootV1ConsoleMacroTag inRv1cmt, String inAppName,
051: String inDirName, String inWebPage) {
052:
053: //
054: ConceptTagCharacteristic currentActionCtchar = null;
055: String fromHandle = null;
056: String sourPage = null;
057: String destPage = null;
058: String treeState = null;
059: ////////////
060: fromHandle = NamesForParentCpc.getConsoleScreenCpcName();
061: sourPage = ConsolePageParameters.SERVLET_CONSOLE;
062: destPage = ConsolePageParameters.SERVLET_CONSOLE;
063: treeState = getBaseTree();
064: //
065: currentActionCtchar = inRv1cmt.generateNextPage(fromHandle,
066: fromHandle, sourPage, destPage);
067: //
068: OpenSectionIfClosedConsoleMacroTag.newInstance(
069: currentActionCtchar, getSectionDev(),
070: getSectionDevToggler());
071: //
072: OpenSectionIfClosedConsoleMacroTag.newInstance(
073: currentActionCtchar, getSectionDevApps(),
074: getSectionDevAppsToggler());
075: //
076: OpenSectionIfClosedConsoleMacroTag.newInstance(
077: currentActionCtchar,
078: getSectionDevAppsSpecificApp(inAppName),
079: getSectionDevAppsSpecificAppToggler(inAppName));
080: //
081: OpenSectionIfClosedConsoleMacroTag.newInstance(
082: currentActionCtchar,
083: getSectionDevAppsSpecificAppWebDocs(inAppName),
084: getSectionDevAppsSpecificAppWebDocsToggler(inAppName));
085: //
086: //
087: GoToAndChangeValueConsoleMacroTag.newInstance(
088: currentActionCtchar, "(main),DEVELOP,APPLICATIONS,"
089: + inAppName
090: + ",WEB,[TEXT_BOX],INPUT_DIRECTORY_NAME",
091: inDirName);
092: //
093: GoToAndChangeValueConsoleMacroTag.newInstance(
094: currentActionCtchar, "(main),DEVELOP,APPLICATIONS,"
095: + inAppName
096: + ",WEB,[TEXT_BOX],INPUT_CREATE_PAGE",
097: inWebPage);
098: //
099: //
100: GoToConsoleMacroTag.newInstance(currentActionCtchar,
101: "(main),DEVELOP,APPLICATIONS," + inAppName
102: + ",WEB,[TABLE_BUTTON],BUTTON__US_CRE_PAGE");
103: SimpleClickConsoleMacroTag.newInstance(currentActionCtchar);
104: //
105: //
106: //
107: //
108: //
109: SubmitActionContext createWebPageSac = SubmitActionContext
110: .newInstance(sourPage, fromHandle, fromHandle);
111: //
112: ConsoleScreenContext.initializeCreateWebPageSac(
113: createWebPageSac, inAppName, inDirName, inWebPage,
114: false);
115: //
116: SubmitActionConsoleMacroTag.newInstance(currentActionCtchar,
117: createWebPageSac);
118: //
119:
120: //notes
121: //include property to select database type
122: //
123: //declare properties
124: //if project is deployed, remove it
125: //if project is under development, remove it
126: //create project under development
127: }
128: }
|