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 PetStoreActivityCreateApplication extends
042: CommonPetStoreActivity {
043:
044: //
045: private PetStoreActivityCreateApplication() {
046: }
047:
048: //
049: public final static void getCreateApp(
050: RootV1ConsoleMacroTag inRv1cmt, String inAppName) {
051:
052: //
053: ConceptTagCharacteristic currentActionCtchar = null;
054: String fromHandle = null;
055: String sourPage = null;
056: String destPage = null;
057: String treeState = null;
058: ////////////
059: fromHandle = NamesForParentCpc.getConsoleScreenCpcName();
060: sourPage = ConsolePageParameters.SERVLET_CONSOLE;
061: destPage = ConsolePageParameters.SERVLET_CONSOLE;
062: treeState = getBaseTree();
063: //
064: currentActionCtchar = inRv1cmt.generateNextPage(fromHandle,
065: fromHandle, sourPage, destPage);
066: //
067: OpenSectionIfClosedConsoleMacroTag.newInstance(
068: currentActionCtchar, getSectionDev(),
069: getSectionDevToggler());
070: //
071: OpenSectionIfClosedConsoleMacroTag.newInstance(
072: currentActionCtchar, getSectionDevApps(),
073: getSectionDevAppsToggler());
074: //
075: GoToAndChangeValueConsoleMacroTag
076: .newInstance(
077: currentActionCtchar,
078: "(main),DEVELOP,APPLICATIONS,[TEXT_BOX],APPLICATION_TO_CREATE",
079: inAppName);
080: //
081: GoToConsoleMacroTag
082: .newInstance(currentActionCtchar,
083: "(main),DEVELOP,APPLICATIONS,[TABLE_BUTTON],BUTTON__US_NEW_APP");
084: SimpleClickConsoleMacroTag.newInstance(currentActionCtchar);
085: //
086: //
087: //
088: //
089: //
090: SubmitActionContext createAppSac = SubmitActionContext
091: .newInstance(sourPage, fromHandle, fromHandle);
092: //
093: ConsoleScreenContext.initializeCreateAppSac(createAppSac,
094: inAppName, false);
095: //
096: SubmitActionConsoleMacroTag.newInstance(currentActionCtchar,
097: createAppSac);
098: //
099:
100: //notes
101: //include property to select database type
102: //
103: //declare properties
104: //if project is deployed, remove it
105: //if project is under development, remove it
106: //create project under development
107: }
108: }
|