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.macro;
09:
10: //base classes
11: import java.util.ArrayList;
12: import java.util.HashMap;
13:
14: //project specific classes
15: import org.jfolder.common.tagging.ConceptTagHelper;
16: import org.jfolder.common.tagging.ConceptTagSetContext;
17: import org.jfolder.common.tagging.ConceptTagSetHolder;
18: import org.jfolder.common.tagging.RootConceptTagHolder;
19: import org.jfolder.common.utils.web.ParameterSet;
20: import org.jfolder.common.web.template.ConsoleTemplateSession;
21: import org.jfolder.common.web.template.PageSetupContext;
22:
23: //other classes
24:
25: public interface ConsoleMacro {
26:
27: //
28: public void processRecordCommands(String inCommands,
29: String inFromHandle, String inAliasFromHandle,
30: String inSourName, String inDestName);
31:
32: //public void processRecordCommands(
33: // String inCommands, String inFromHandle, String inAliasFromHandle,
34: // String inSourName, String inDestName, String inTreeState);
35:
36: //
37: public void reset(String inStartDesc, String inEndDesc,
38: HashMap inVars);
39:
40: public void postIncrementCommand(RootConceptTagHolder inRcth);
41:
42: public void preIncrementCommand(RootConceptTagHolder inRcth);
43:
44: public void loadRcthConstraintBuilderIfPresent(
45: PageSetupContext inPsc, RootConceptTagHolder inRcth);
46:
47: public boolean isDoneRunning();
48:
49: //public String getTreeState();
50: public boolean isMacroReset();
51:
52: public void generateMacroCommands(PageSetupContext inPsc,
53: ConsoleTemplateSession inCts, RootConceptTagHolder inRcth,
54: HashMap inVars, String inFromHandle,
55: String inAliasFromHandle, String inSourcePage,
56: String inDestinationPage);
57:
58: public int getCurrentIndex();
59:
60: public int getMacroCommandCount();
61:
62: //
63: public void addDescriptionToNextPage(String inDescription);
64:
65: public ArrayList getPageDescriptions();
66:
67: public int getPageIndexOfDescription(String inDesciption);
68:
69: public String getDescription(int inIndex);
70:
71: //
72: public void initializeParameters(ParameterSet inPs);
73:
74: public void addParameterAsFileUpload(String inName,
75: String inFileName, byte inContent[]);
76:
77: public void addParameterAsString(String inName, String inValue);
78: }
|