0001: /*
0002: * JFolder, Copyright 2001-2006 Gary Steinmetz
0003: *
0004: * Distributable under LGPL license.
0005: * See terms of license at gnu.org.
0006: */
0007:
0008: package org.jfolder.config.instance;
0009:
0010: //base classes
0011: import java.io.InputStream;
0012: import org.w3c.dom.Node;
0013:
0014: //project specific classes
0015: import org.jfolder.common.tagging.ConceptTagCharacteristic;
0016: import org.jfolder.common.tagging.ConceptTagCharacteristicHolder;
0017: import org.jfolder.common.tagging.ConceptTagHelper;
0018: import org.jfolder.common.tagging.ConceptTagPreferences;
0019: import org.jfolder.common.tagging.ConceptTagPreferencesHelper;
0020: import org.jfolder.common.tagging.RootConceptTagHolder;
0021:
0022: //other classes
0023:
0024: public final class ConfigInstanceTagHelper extends ConceptTagHelper {
0025:
0026: public final static String DEFAULT_CONFIG = "MAIN_DEFAULT_CONFIG";
0027: //
0028: private final static String EXTENSION_PREFIX = "__";
0029: private final static String STANDARD = "STANDARD";
0030:
0031: private ConfigInstanceTagHelper() {
0032: }
0033:
0034: public static RootConceptTagHolder getRootHolder(InputStream inIs) {
0035: return ConceptTagHelper.getRootHolder(inIs,
0036: new ConfigInstanceTagPreferences());
0037: }
0038:
0039: public static RootConceptTagHolder getRootHolder(Node inNode) {
0040: return ConceptTagHelper.getRootHolder(inNode,
0041: new ConfigInstanceTagPreferences());
0042: }
0043:
0044: public static RootConceptTagHolder getDefault() {
0045:
0046: RootConceptTagHolder outValue = null;
0047:
0048: ConceptTagPreferences ctp = new ConfigInstanceTagPreferences();
0049:
0050: //
0051: outValue = getConfigInstance(ctp);
0052: outValue.validate();
0053:
0054: return outValue;
0055: }
0056:
0057: //
0058: public final static String APPLICATION = "APPLICATION";
0059: public final static String LOCATION = "LOCATION";
0060: public final static String SECURITY = "SECURITY";
0061: public final static String DATABASE = "DATABASE";
0062: //
0063: public final static String REGISTRY = "registry";
0064: public final static String HANDLE = "handle";
0065: public final static String SECTION = "section";
0066: public final static String NAMESPACE = "namespace";
0067: public final static String NAME = "name";
0068: public final static String CONCEPT_TAG = "concept-tag";
0069: public final static String INHERIT = "inherit";
0070: public final static String MENU_PATH = "menu-path";
0071: public final static String TYPE = "type";
0072: //
0073: public final static String CONFIG = "config";
0074: public final static String CONTENT = "content";
0075: public final static String CUSTOM_CONTENT = "custom-content";
0076:
0077: //
0078: protected final static RootConceptTagHolder getConfigInstance(
0079: ConceptTagPreferences inCtp) {
0080:
0081: RootConceptTagHolder outValue = getBaseRootHolder(
0082: inCtp,
0083: "org.jfolder.config.instance.v1.RootV1ConfigInstanceTag",
0084: true);
0085:
0086: ConceptTagCharacteristicHolder cmCtcharh = outValue
0087: .getFirstChildCharacteristicHolder();
0088:
0089: ConceptTagCharacteristic registryCtchar = cmCtcharh
0090: .getCharacteristic(REGISTRY);
0091: ConceptTagCharacteristic configCtchar = cmCtcharh
0092: .getCharacteristic(CONFIG);
0093:
0094: //
0095: registerCommonFunctionTags(registryCtchar);
0096: registerGovernorCallTags(registryCtchar);
0097: registerWorkflowTemplateTags(registryCtchar);
0098: registerWebPageTags(registryCtchar);
0099:
0100: //
0101: addConfigInstanceConfig(configCtchar, APPLICATION,
0102: "<applications>\n" + " <entities>\n"
0103: + " <set>\n"
0104: + " org.jfolder.workflow.lifecycle."
0105: + "GenericFileProjectApplicationSet\n"
0106: + " </set>\n"
0107: + " <application>\n"
0108: + " org.jfolder.workflow.lifecycle."
0109: + "GenericFileProjectApplication\n"
0110: + " </application>\n"
0111: + " <lifecycle>\n"
0112: + " org.jfolder.project.lifecycle."
0113: + "GenericJbossFileProjectLifecycle\n"
0114: + " </lifecycle>\n"
0115: + " </entities>\n" + "</applications>\n",
0116: //
0117: "<custom>AnyData</custom>");
0118: //
0119: addConfigInstanceConfig(
0120: configCtchar,
0121: LOCATION,
0122: "<locations base=\"./..\" deploy=\"../server/default/deploy\" "
0123: + "runtime-project=\"jfolder\" scripts=\"scripts\" "
0124: + "properties=\"properties\" users=\"users\">\n"
0125: + "</locations>\n",
0126: //
0127: "<custom>AnyData</custom>");
0128: //
0129: addConfigInstanceConfig(
0130: configCtchar,
0131: SECURITY,
0132: "<security>\n"
0133: + " <type>"
0134: + DEFAULT_CONFIG
0135: + "</type>\n"
0136: + " <manager>org.jfolder.security.lifecycle."
0137: + "GenericConfigLifecycleSecurityLifecycle</manager>\n"
0138: + " <console show-domain=\"false\">\n"
0139: + " <default domain=\"jfolder\" password=\"admin\" "
0140: + "username=\"admin\">\n"
0141: + " </default>\n" + " </console>\n"
0142: + "</security>\n",
0143: //
0144: "<generic>\n"
0145: + " <user username=\"admin\" password=\"admin\"></user>\n"
0146: + " <user username=\"Secretary1\" password=\"\"></user>\n"
0147: + " <user username=\"Secretary2\" password=\"\"></user>\n"
0148: + " <user username=\"Secretary3\" password=\"\"></user>\n"
0149: + " <user username=\"Secretary4\" password=\"\"></user>\n"
0150: + " <user username=\"EndUser\" password=\"\"></user>\n"
0151: + " <user username=\"MrManufacturing\" password=\"\"></user>\n"
0152: + " <user username=\"MrAutomation\" password=\"\"></user>\n"
0153: + " <user username=\"MsQuality\" password=\"\"></user>\n"
0154: + " <group name=\"Manufacturing\">\n"
0155: + " <user name=\"MrManufacturing\"></user>\n"
0156: + " </group>\n"
0157: + " <group name=\"Automation\">\n"
0158: + " <user name=\"MrAutomation\"></user>\n"
0159: + " </group>\n"
0160: + " <group name=\"Quality\">\n"
0161: + " <user name=\"MsQuality\"></user>\n"
0162: + " </group>\n"
0163: + " <group name=\"administrators\">\n"
0164: + " <user name=\"admin\"></user>\n"
0165: + " </group>\n"
0166: + " <group name=\"developers\">\n"
0167: + " <user name=\"admin\"></user>\n"
0168: + " </group>\n"
0169: + " <group name=\"AlphaPlaceApprovers\">\n"
0170: + " <user name=\"Secretary1\"></user>\n"
0171: + " <user name=\"Secretary2\"></user>\n"
0172: + " </group>\n"
0173: + " <group name=\"BetaPlaceApprovers\">\n"
0174: + " <user name=\"Secretary3\"></user>\n"
0175: + " <user name=\"Secretary4\"></user>\n"
0176: + " </group>\n" + "</generic>\n");
0177: //
0178: addConfigInstanceConfig(
0179: configCtchar,
0180: DATABASE,
0181: "<databases>\n"
0182: + " <database>\n"
0183: + " <display-name>Default Database</display-name>\n"
0184: + " <actual-name>DefaultDatabase</actual-name>\n"
0185: + " <reference-handle>Apps</reference-handle>\n"
0186: + " </database>\n" + "</databases>\n",
0187: //
0188: "<custom>AnyData</custom>");
0189: //
0190: //
0191: //
0192:
0193: getRootHolder(outValue.getRootCharacteristicHolder(), outValue);
0194:
0195: return outValue;
0196: }
0197:
0198: private final static String addNamespaceExtension(
0199: String inNamespace, String inExtension) {
0200: //
0201: String outValue = null;
0202:
0203: outValue = inNamespace + EXTENSION_PREFIX + inExtension;
0204:
0205: return outValue;
0206: }
0207:
0208: //////////
0209: private final static void registerCommonFunctionTags(
0210: ConceptTagCharacteristic inRegistryCtchar) {
0211: //
0212: registerCommonFunctionStandardTags(inRegistryCtchar);
0213: //
0214: String handle = ConceptTagPreferencesHelper.CTP_PREF_HANDLE__COMMON_FUNCTION;
0215: String ns = ConceptTagPreferencesHelper.CTP_PREF_NS__COMMON_FUNCTION__V1_BASE;
0216: String prefix = "org.jfolder.common.function.v1.CommonFunction";
0217: String suffix = "Tag";
0218: //
0219: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0220: "common-function", prefix + "RootV1" + suffix,
0221: new String[] { "CORE" });
0222: //
0223: addInherit(
0224: inRegistryCtchar,
0225: handle,
0226: addNamespaceExtension(
0227: ConceptTagPreferencesHelper.CTP_PREF_HANDLE__COMMON_FUNCTION,
0228: STANDARD));
0229: }
0230:
0231: public final static String CT_NAME_CF__MACRO_DECLARE_TEMP_INT = "macro-declare-temp-int";
0232:
0233: private final static void registerCommonFunctionStandardTags(
0234: ConceptTagCharacteristic inRegistryCtchar) {
0235: //
0236: String handle = addNamespaceExtension(
0237: ConceptTagPreferencesHelper.CTP_PREF_HANDLE__COMMON_FUNCTION,
0238: STANDARD);
0239: String ns = ConceptTagPreferencesHelper.CTP_PREF_NS__COMMON_FUNCTION__V1_BASE;
0240: String prefix = "org.jfolder.common.function.v1.CommonFunction";
0241: String suffix = "Tag";
0242: //
0243: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0244: "var-declare-local-var", prefix + "VarDeclareLocalVar"
0245: + suffix, new String[] { "CORE" });
0246: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0247: "var-get-var-value",
0248: prefix + "VarGetVarValue" + suffix,
0249: new String[] { "CORE" });
0250: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0251: "var-set-var-value",
0252: prefix + "VarSetVarValue" + suffix,
0253: new String[] { "CORE" });
0254: //
0255: addConfigInstanceTag(inRegistryCtchar, handle, ns, "add",
0256: prefix + "MathAdd" + suffix, new String[] { "CORE" });
0257: addConfigInstanceTag(inRegistryCtchar, handle, ns, "subtract",
0258: prefix + "MathSubtract" + suffix,
0259: new String[] { "CORE" });
0260: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0261: "drop-fraction", prefix + "MathDropFraction" + suffix,
0262: new String[] { "CORE" });
0263: addConfigInstanceTag(inRegistryCtchar, handle, ns, "multiply",
0264: prefix + "MathMultiply" + suffix,
0265: new String[] { "CORE" });
0266: //
0267: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0268: CT_NAME_CF__MACRO_DECLARE_TEMP_INT, prefix
0269: + "MacroDeclareTempInt" + suffix,
0270: new String[] { "CORE" });
0271: //
0272: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0273: "db-access-execute-state", prefix
0274: + "DbAccessExecuteState" + suffix,
0275: new String[] { "CORE" });
0276: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0277: "db-access-single-db-trans", prefix
0278: + "DbAccessSingleDbTrans" + suffix,
0279: new String[] { "CORE" });
0280: //
0281: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0282: "list-add-all", prefix + "ListAddAll" + suffix,
0283: new String[] { "List" });
0284: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0285: "list-add-value", prefix + "ListAddValue" + suffix,
0286: new String[] { "List" });
0287: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0288: "list-create-empty-list", prefix
0289: + "ListCreateEmptyList" + suffix,
0290: new String[] { "List" });
0291: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0292: "list-get-length", prefix + "ListGetLength" + suffix,
0293: new String[] { "List" });
0294: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0295: "list-get-value", prefix + "ListGetValue" + suffix,
0296: new String[] { "List" });
0297: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0298: "list-remove-value", prefix + "ListRemoveValue"
0299: + suffix, new String[] { "List" });
0300: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0301: "list-sub-list", prefix + "ListSubList" + suffix,
0302: new String[] { "List" });
0303: //
0304: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0305: "map-create-empty-map", prefix + "MapCreateEmptyMap"
0306: + suffix, new String[] { "Map" });
0307: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0308: "map-get-keys", prefix + "MapGetKeys" + suffix,
0309: new String[] { "Map" });
0310: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0311: "map-get-value", prefix + "MapGetValue" + suffix,
0312: new String[] { "Map" });
0313: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0314: "map-is-value-present", prefix + "MapIsValuePresent"
0315: + suffix, new String[] { "Map" });
0316: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0317: "map-place-value", prefix + "MapPlaceValue" + suffix,
0318: new String[] { "Map" });
0319: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0320: "map-remove-value", prefix + "MapRemoveValue" + suffix,
0321: new String[] { "Map" });
0322: //
0323: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0324: "literal-boolean", prefix + "LiteralBoolean" + suffix,
0325: new String[] { "Literal" });
0326: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0327: "literal-decimal", prefix + "LiteralDecimal" + suffix,
0328: new String[] { "Literal" });
0329: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0330: "literal-string", prefix + "LiteralString" + suffix,
0331: new String[] { "Literal" });
0332: //
0333: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0334: "log-struct-if-else-if-else", prefix
0335: + "LogStructIfElseIfElse" + suffix,
0336: new String[] { "Structures" });
0337: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0338: "log-struct-while-do", prefix + "LogStructWhileDo"
0339: + suffix, new String[] { "Structures" });
0340: //
0341: //
0342: //
0343: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0344: "log-comp-and", prefix + "LogCompAnd" + suffix,
0345: new String[] { "Logical" });
0346: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0347: "log-comp-or", prefix + "LogCompOr" + suffix,
0348: new String[] { "Logical" });
0349: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0350: "log-comp-not", prefix + "LogCompNot" + suffix,
0351: new String[] { "Logical" });
0352: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0353: "log-comp-xor", prefix + "LogCompXor" + suffix,
0354: new String[] { "Logical" });
0355: //
0356: //
0357: //
0358: addConfigInstanceTag(inRegistryCtchar, handle, ns, "comp-equ",
0359: prefix + "CompEqu" + suffix, new String[] { "Compare" });
0360: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0361: "comp-gr-th-or-equ", prefix + "CompGrThOrEqu" + suffix,
0362: new String[] { "Compare" });
0363: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0364: "comp-gr-th", prefix + "CompGrTh" + suffix,
0365: new String[] { "Compare" });
0366: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0367: "comp-is-not-null", prefix + "CompIsNotNull" + suffix,
0368: new String[] { "Compare" });
0369: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0370: "comp-is-null", prefix + "CompIsNull" + suffix,
0371: new String[] { "Compare" });
0372: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0373: "comp-ls-th-or-equ", prefix + "CompLsThOrEqu" + suffix,
0374: new String[] { "Compare" });
0375: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0376: "comp-ls-th", prefix + "CompLsTh" + suffix,
0377: new String[] { "Compare" });
0378: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0379: "comp-nt-equ", prefix + "CompNtEqu" + suffix,
0380: new String[] { "Compare" });
0381: //
0382: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0383: "bin-create-empty-bin", prefix + "BinCreateEmptyBin"
0384: + suffix, new String[] { "Binary" });
0385: //
0386: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0387: "str-concatenate", prefix + "StrConcatenate" + suffix,
0388: new String[] { "Strings" });
0389: //
0390: addConfigInstanceTag(inRegistryCtchar, handle, ns, "str-equ",
0391: prefix + "StrEqu" + suffix, new String[] { "Strings" });
0392: //
0393: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0394: "str-get-length", prefix + "StrGetLength" + suffix,
0395: new String[] { "Strings" });
0396: //
0397: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0398: "str-is-reg-expr-match", prefix + "StrIsRegExprMatch"
0399: + suffix, new String[] { "Strings" });
0400: //
0401: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0402: "str-format-decimal", prefix + "StrFormatDecimal"
0403: + suffix, new String[] { "Strings" });
0404: //
0405: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0406: "str-substring", prefix + "StrSubstring" + suffix,
0407: new String[] { "Strings" });
0408: //
0409: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0410: "str-start-with", prefix + "StrStartsWith" + suffix,
0411: new String[] { "Strings" });
0412: //
0413: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0414: "conv-str-to-dec", prefix + "ConvStrToDec" + suffix,
0415: new String[] { "Strings" });
0416: //
0417: //
0418: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0419: "time-current-month", prefix + "TimeCurrentMonth"
0420: + suffix, new String[] { "Time" });
0421: //
0422: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0423: "time-current-day", prefix + "TimeCurrentDay" + suffix,
0424: new String[] { "Time" });
0425: //
0426: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0427: "time-current-year", prefix + "TimeCurrentYear"
0428: + suffix, new String[] { "Time" });
0429: //
0430: //addConfigInstanceTag(inRegistryCtchar, handle, ns, "and",
0431: // prefix + "And" + suffix, new String[]{"CORE"});
0432: //
0433: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
0434: // "bitwise-operation",
0435: // prefix + "BitwiseOperation" + suffix, new String[]{"CORE"});
0436: //
0437: //addConfigInstanceTag(inRegistryCtchar, handle, ns, "comment",
0438: // prefix + "Comment" + suffix, new String[]{"CORE"});
0439: //
0440: //addConfigInstanceTag(inRegistryCtchar, handle, ns, "compare-equals",
0441: // prefix + "CompareEquals" + suffix, new String[]{"CORE"});
0442: //
0443: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
0444: // "compare-greater-than",
0445: // prefix + "CompareGreaterThan" + suffix, new String[]{"CORE"});
0446: //
0447: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
0448: // "compare-greater-than-or-equals",
0449: // prefix + "CompareGreaterThanOrEquals" + suffix,
0450: // new String[]{"CORE"});
0451: //
0452: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
0453: // "compare-less-than",
0454: // prefix + "CompareLessThan" + suffix, new String[]{"CORE"});
0455: //
0456: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
0457: // "compare-less-than-or-equals",
0458: // prefix + "CompareLessThanOrEquals" + suffix,
0459: // new String[]{"CORE"});
0460: //
0461: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
0462: // "compare-not-equal",
0463: // prefix + "CompareNotEquals" + suffix,
0464: // new String[]{"CORE"});
0465: //
0466: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
0467: // "compute-and-return",
0468: // prefix + "ComputeAndReturn" + suffix,
0469: // new String[]{"CORE"});
0470: //
0471: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
0472: // "declare-local-variable",
0473: // prefix + "DeclareLocalVariable" + suffix,
0474: // new String[]{"CORE"});
0475: //
0476: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
0477: // "divide",
0478: // prefix + "Divide" + suffix,
0479: // new String[]{"CORE"});
0480: //
0481: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
0482: // "email",
0483: // prefix + "Email" + suffix,
0484: // new String[]{"CORE"});
0485: //
0486: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
0487: // "exponent",
0488: // prefix + "Exponent" + suffix,
0489: // new String[]{"CORE"});
0490: //
0491: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
0492: // "format-decimal",
0493: // prefix + "FormatDecimal" + suffix,
0494: // new String[]{"CORE"});
0495: //
0496: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
0497: // "get-property",
0498: // prefix + "GetProperty" + suffix,
0499: // new String[]{"CORE"});
0500: //
0501: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
0502: // "get-variable-value",
0503: // prefix + "GetVariableValue" + suffix,
0504: // new String[]{"CORE"});
0505: //
0506: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
0507: // "guard-for-fault",
0508: // prefix + "GuardForFault" + suffix,
0509: // new String[]{"CORE"});
0510: //
0511: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
0512: // "if-else-if-else",
0513: // prefix + "IfElseIfElseIf" + suffix,
0514: // new String[]{"CORE"});
0515: //
0516: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
0517: // "is-property-present",
0518: // prefix + "IsPropertyPresent" + suffix,
0519: // new String[]{"CORE"});
0520: //
0521: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
0522: // "is-regular-expression-match",
0523: // prefix + "IsRegularExpressionMatch" + suffix,
0524: // new String[]{"CORE"});
0525: //
0526: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
0527: // "log-event",
0528: // prefix + "LogEvent" + suffix,
0529: // new String[]{"CORE"});
0530: //
0531: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
0532: // "macro-call",
0533: // prefix + "MacroCall" + suffix,
0534: // new String[]{"CORE"});
0535: //
0536: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
0537: // "modular",
0538: // prefix + "Modular" + suffix,
0539: // new String[]{"CORE"});
0540: //
0541: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
0542: // "multiply",
0543: // prefix + "Multiply" + suffix,
0544: // new String[]{"CORE"});
0545: //
0546: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
0547: // "not",
0548: // prefix + "Not" + suffix,
0549: // new String[]{"CORE"});
0550: //
0551: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
0552: // "or",
0553: // prefix + "Or" + suffix,
0554: // new String[]{"CORE"});
0555: //
0556: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
0557: // "random-number",
0558: // prefix + "RandomNumber" + suffix,
0559: // new String[]{"CORE"});
0560: //
0561: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
0562: // "read-property",
0563: // prefix + "ReadProperty" + suffix,
0564: // new String[]{"CORE"});
0565: //
0566: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
0567: // "round-decimal",
0568: // prefix + "RoundDecimal" + suffix,
0569: // new String[]{"CORE"});
0570: //
0571: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
0572: // "square-root",
0573: // prefix + "SquareRoot" + suffix,
0574: // new String[]{"CORE"});
0575: //
0576: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
0577: // "string-concatenate",
0578: // prefix + "StringConcatenate" + suffix,
0579: // new String[]{"CORE"});
0580: //
0581: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
0582: // "string-to-boolean",
0583: // prefix + "StringToBoolean" + suffix,
0584: // new String[]{"CORE"});
0585: //
0586: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
0587: // "string-to-decimal",
0588: // prefix + "StringToDecimal" + suffix,
0589: // new String[]{"CORE"});
0590: //
0591: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
0592: // "subtract",
0593: // prefix + "Subtract" + suffix,
0594: // new String[]{"CORE"});
0595: //
0596: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
0597: // "while-do",
0598: // prefix + "WhileDo" + suffix,
0599: // new String[]{"CORE"});
0600: //
0601: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
0602: // "xor",
0603: // prefix + "Xor" + suffix,
0604: // new String[]{"CORE"});
0605: //
0606: }
0607:
0608: //////////
0609: private final static void registerGovernorCallTags(
0610: ConceptTagCharacteristic inRegistryCtchar) {
0611:
0612: String handle = ConceptTagPreferencesHelper.CTP_PREF_HANDLE__SYSTEM_ENTITY;
0613: String ns = ConceptTagPreferencesHelper.CTP_PREF_NS__SYSTEM_ENTITY__V1_BASE;
0614: String prefix = "org.jfolder.services.governor.model.v1.";
0615: String suffix = "GovernorCallTag";
0616:
0617: //
0618:
0619: //
0620: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0621: "governor-call", prefix + "RootV1" + suffix,
0622: new String[] { "CORE" });
0623: //
0624: prefix = "org.jfolder.dms.model.v1.DocumentFileSystem";
0625: suffix = "Tag";
0626: //
0627: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0628: "dms-directory", prefix + "Directory" + suffix,
0629: new String[] { "CORE" });
0630: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0631: "dms-directory-updates", prefix + "DirectoryUpdates"
0632: + suffix, new String[] { "CORE" });
0633: addConfigInstanceTag(inRegistryCtchar, handle, ns, "dms-file",
0634: prefix + "File" + suffix, new String[] { "CORE" });
0635: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0636: "dms-file-updates", prefix + "FileUpdates" + suffix,
0637: new String[] { "CORE" });
0638: addConfigInstanceTag(inRegistryCtchar, handle, ns, "dms-root",
0639: prefix + "Root" + suffix, new String[] { "CORE" });
0640: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0641: "dms-root-updates", prefix + "RootUpdates" + suffix,
0642: new String[] { "CORE" });
0643: }
0644:
0645: private final static void registerWorkflowTemplateTags(
0646: ConceptTagCharacteristic inRegistryCtchar) {
0647:
0648: String handle = ConceptTagPreferencesHelper.CTP_PREF_HANDLE__WORKFLOW_TEMPLATE;
0649: String ns = ConceptTagPreferencesHelper.CTP_PREF_NS__WORKFLOW_TEMPLATE__V1_BASE;
0650: String prefix = "org.jfolder.workflow.model.template.v1.";
0651: String suffix = "WorkflowTemplateTag";
0652:
0653: //
0654: //
0655: addInherit(
0656: inRegistryCtchar,
0657: handle,
0658: addNamespaceExtension(
0659: ConceptTagPreferencesHelper.CTP_PREF_HANDLE__COMMON_FUNCTION,
0660: STANDARD));
0661:
0662: //
0663: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0664: "workflow-template", prefix + "RootV1" + suffix,
0665: new String[] { "CORE" });
0666: addConfigInstanceTag(inRegistryCtchar, handle, ns, "attribute",
0667: prefix + "Attribute" + suffix, new String[] { "CORE" });
0668: addConfigInstanceTag(inRegistryCtchar, handle, ns, "start",
0669: prefix + "Start" + suffix, new String[] { "CORE" });
0670: addConfigInstanceTag(inRegistryCtchar, handle, ns, "state",
0671: prefix + "State" + suffix, new String[] { "CORE" });
0672: addConfigInstanceTag(inRegistryCtchar, handle, ns, "stop",
0673: prefix + "Stop" + suffix, new String[] { "CORE" });
0674:
0675: //
0676: ns = ConceptTagPreferencesHelper.CTP_PREF_NS__WORKFLOW_TEMPLATE__V1_BASE;
0677: //prefix = "org.jfolder.workflow.model.template.v1.returnable.";
0678: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0679: "get-trigger-attribute", prefix + "GetTriggerAttribute"
0680: + suffix, new String[] { "CORE" });
0681: // get-trigger-element-count GetTriggerElementCount
0682: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0683: "get-trigger-element-count", prefix
0684: + "GetTriggerElementCount" + suffix,
0685: new String[] { "CORE" });
0686: // get-trigger-text GetTriggerText
0687: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0688: "get-trigger-text", prefix + "GetTriggerText" + suffix,
0689: new String[] { "CORE" });
0690: // is-trigger-attribute-present IsTriggerAttributePresent
0691: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0692: "is-trigger-attribute-present", prefix
0693: + "IsTriggerAttributePresent" + suffix,
0694: new String[] { "CORE" });
0695: // is-trigger-element-present IsTriggerElementPresent
0696: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0697: "is-trigger-element-present", prefix
0698: + "IsTriggerElementPresent" + suffix,
0699: new String[] { "CORE" });
0700: // is-trigger-from-application IsTriggerFromApplication
0701: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0702: "is-trigger-from-application", prefix
0703: + "IsTriggerFromApplication" + suffix,
0704: new String[] { "CORE" });
0705: // is-trigger-text-present IsTriggerTextPresent
0706: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0707: "is-trigger-text-present", prefix
0708: + "IsTriggerTextPresent" + suffix,
0709: new String[] { "CORE" });
0710: }
0711:
0712: //
0713: public final static String CT_NAME_WP__SIMPLE_WEB_PAGE = "simple-web-page";
0714: public final static String CT_NAME_WP__DYNAMIC_TABLE_HOLDER = "dynamic-table-holder";
0715: public final static String CT_NAME_WP__DYNAMIC_TABLE_ROW = "dynamic-table-row";
0716: public final static String CT_NAME_WP__DYNAMIC_TABLE_CELL = "dynamic-table-cell";
0717: public final static String CT_NAME_WP__COMPUTE_WITHOUT_DISPLAY = "compute-without-display";
0718:
0719: //
0720: private final static void registerWebPageTags(
0721: ConceptTagCharacteristic inRegistryCtchar) {
0722:
0723: //
0724: String handle = ConceptTagPreferencesHelper.CTP_PREF_HANDLE__WEB_PAGE;
0725: String ns = ConceptTagPreferencesHelper.CTP_PREF_NS__WEB_PAGE__V1_BASE;
0726: String prefix = "org.jfolder.web.page.v1.";
0727: String suffix = "WebPageTag";
0728:
0729: //
0730: addInherit(
0731: inRegistryCtchar,
0732: handle,
0733: addNamespaceExtension(
0734: ConceptTagPreferencesHelper.CTP_PREF_HANDLE__COMMON_FUNCTION,
0735: STANDARD));
0736:
0737: //namespace http://java.sun.com/JSP/Page
0738: //root JspRoot
0739: addConfigInstanceTag(inRegistryCtchar, handle, ns, "root",
0740: prefix + "RootV1" + suffix, new String[] { "CORE" });
0741:
0742: ns = ConceptTagPreferencesHelper.CTP_PREF_NS__WEB_PAGE__V1_XHTML;
0743: //(blank namespace)
0744: /*
0745: //a XhtmlA
0746: addConfigInstanceTag(inRegistryCtchar, handle, ns, "a",
0747: prefix + "XhtmlA" + suffix, new String[]{"Html", "Other"});
0748: //body XhtmlBody
0749: addConfigInstanceTag(inRegistryCtchar, handle, ns, "body",
0750: prefix + "XhtmlBody" + suffix, new String[]{"Html", "Meta"});
0751: *--/
0752: //br XhtmlBr
0753: addConfigInstanceTag(inRegistryCtchar, handle, ns, "br",
0754: prefix + "XhtmlBr" + suffix, new String[]{"Html", "Other"});
0755: /--*
0756: //form XhtmlForm
0757: addConfigInstanceTag(inRegistryCtchar, handle, ns, "form",
0758: prefix + "XhtmlForm" + suffix, new String[]{"Html", "Forms"});
0759: //frameset XhtmlFrameSet
0760: addConfigInstanceTag(inRegistryCtchar, handle, ns, "frameset",
0761: prefix + "XhtmlFrameSet" + suffix, new String[]{"Html", "Meta"});
0762: //frame XhtmlFrame
0763: addConfigInstanceTag(inRegistryCtchar, handle, ns, "frame",
0764: prefix + "XhtmlFrame" + suffix, new String[]{"Html", "Meta"});
0765: //head XhtmlHead
0766: addConfigInstanceTag(inRegistryCtchar, handle, ns, "head",
0767: prefix + "XhtmlHead" + suffix, new String[]{"Html", "Meta"});
0768: //html XhtmlHtml
0769: addConfigInstanceTag(inRegistryCtchar, handle, ns, "html",
0770: prefix + "XhtmlHtml" + suffix, new String[]{"Html", "Meta"});
0771: //img XhtmlImg
0772: addConfigInstanceTag(inRegistryCtchar, handle, ns, "img",
0773: prefix + "XhtmlImg" + suffix, new String[]{"Html", "Other"});
0774: //input XhtmlInput
0775: addConfigInstanceTag(inRegistryCtchar, handle, ns, "input",
0776: prefix + "XhtmlInput" + suffix, new String[]{"Html", "Forms"});
0777: //li XhtmlLi
0778: addConfigInstanceTag(inRegistryCtchar, handle, ns, "li",
0779: prefix + "XhtmlLi" + suffix, new String[]{"Html", "Lists"});
0780: //ol XhtmlOl
0781: addConfigInstanceTag(inRegistryCtchar, handle, ns, "ol",
0782: prefix + "XhtmlOl" + suffix, new String[]{"Html", "Lists"});
0783: //option XhtmlOption
0784: addConfigInstanceTag(inRegistryCtchar, handle, ns, "option",
0785: prefix + "XhtmlOption" + suffix, new String[]{"Html", "Forms"});
0786: //p XhtmlP
0787: addConfigInstanceTag(inRegistryCtchar, handle, ns, "p",
0788: prefix + "XhtmlP" + suffix, new String[]{"Html", "Other"});
0789: //select XhtmlSelect
0790: addConfigInstanceTag(inRegistryCtchar, handle, ns, "select",
0791: prefix + "XhtmlSelect" + suffix, new String[]{"Html", "Forms"});
0792: //table XhtmlTable
0793: addConfigInstanceTag(inRegistryCtchar, handle, ns, "table",
0794: prefix + "XhtmlTable" + suffix, new String[]{"Html", "Tables"});
0795: //td XhtmlTd
0796: addConfigInstanceTag(inRegistryCtchar, handle, ns, "td",
0797: prefix + "XhtmlTd" + suffix, new String[]{"Html", "Table"});
0798: //textarea XhtmlTextArea
0799: addConfigInstanceTag(inRegistryCtchar, handle, ns, "textarea",
0800: prefix + "XhtmlTextArea" + suffix, new String[]{"Html", "Forms"});
0801: //title XhtmlTitle
0802: addConfigInstanceTag(inRegistryCtchar, handle, ns, "title",
0803: prefix + "XhtmlTitle" + suffix, new String[]{"Html", "Meta"});
0804: //tr XhtmlTr
0805: addConfigInstanceTag(inRegistryCtchar, handle, ns, "tr",
0806: prefix + "XhtmlTr" + suffix, new String[]{"Html", "Tables"});
0807: //ul XhtmlUl
0808: addConfigInstanceTag(inRegistryCtchar, handle, ns, "ul",
0809: prefix + "XhtmlUl" + suffix, new String[]{"Html", "Lists"});
0810: */
0811:
0812: ns = ConceptTagPreferencesHelper.CTP_PREF_NS__WEB_PAGE__V1_BASE;
0813: //
0814: //declare-macro-group TaglibDeclareMacroGroup
0815: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0816: "declare-macro-group", prefix
0817: + "TaglibDeclareMacroGroup" + suffix,
0818: new String[] { "Macros" });
0819: //declare-macro TaglibDeclareMacro
0820: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0821: "declare-macro",
0822: prefix + "TaglibDeclareMacro" + suffix,
0823: new String[] { "Macros" });
0824: //call-macro TaglibCallMacro
0825: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0826: "call-macro", prefix + "TaglibCallMacro" + suffix,
0827: new String[] { "Macros" });
0828: //call-template TaglibCallTemplate
0829: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0830: "call-template",
0831: prefix + "TaglibCallTemplate" + suffix,
0832: new String[] { "Macros" });
0833: //content-bundle TaglibContentBundle
0834: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0835: "content-bundle", prefix + "TaglibContentBundle"
0836: + suffix, new String[] { "CORE" });
0837: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0838: CT_NAME_WP__COMPUTE_WITHOUT_DISPLAY, prefix
0839: + "TaglibComputeWithoutDisplay" + suffix,
0840: new String[] { "CORE" });
0841: //
0842: //
0843: //
0844: //simple-web-page SimpleWebPage
0845: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0846: CT_NAME_WP__SIMPLE_WEB_PAGE, prefix + "SimpleWebPage"
0847: + suffix, new String[] { "General" });
0848: //dynamic-table-holder DynamicTableHolder
0849: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0850: CT_NAME_WP__DYNAMIC_TABLE_HOLDER, prefix
0851: + "DynamicTableHolder" + suffix,
0852: new String[] { "Table" });
0853: //dynamic-table-row DynamicTableRow
0854: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0855: CT_NAME_WP__DYNAMIC_TABLE_ROW, prefix
0856: + "DynamicTableRow" + suffix,
0857: new String[] { "Table" });
0858: //dynamic-table-cell DynamicTableCell
0859: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0860: CT_NAME_WP__DYNAMIC_TABLE_CELL, prefix
0861: + "DynamicTableCell" + suffix,
0862: new String[] { "Table" });
0863: //dynamic-hyperlink DynamicHyperlink
0864: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0865: "dynamic-hyperlink", prefix + "DynamicHyperlink"
0866: + suffix, new String[] { "Web", "Other" });
0867: //dynamic-style DynamicStyle
0868: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0869: "dynamic-style", prefix + "DynamicStyle" + suffix,
0870: new String[] { "Web", "Other" });
0871: //dynamic-image DynamicImage
0872: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0873: "dynamic-image", prefix + "DynamicImage" + suffix,
0874: new String[] { "Web", "Other" });
0875: //dynamic-form DynamicForm
0876: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0877: "dynamic-form", prefix + "DynamicForm" + suffix,
0878: new String[] { "Forms" });
0879: //dynamic-input-submit DynamicInputSubmit
0880: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0881: "dynamic-input-submit", prefix + "DynamicInputSubmit"
0882: + suffix, new String[] { "Forms" });
0883: //dynamic-input-text-box DynamicInputTextBox
0884: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0885: "dynamic-input-text-box", prefix
0886: + "DynamicInputTextBox" + suffix,
0887: new String[] { "Forms" });
0888: //dynamic-input-text-area DynamicInputTextArea
0889: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0890: "dynamic-input-text-area", prefix
0891: + "DynamicInputTextArea" + suffix,
0892: new String[] { "Forms" });
0893: //dynamic-input-check-box DynamicInputCheckBox
0894: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0895: "dynamic-input-check-box", prefix
0896: + "DynamicInputCheckBox" + suffix,
0897: new String[] { "Forms" });
0898: //dynamic-input-drop-down-box DynamicInputDropDownBox
0899: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0900: "dynamic-input-drop-down-box", prefix
0901: + "DynamicInputDropDownBox" + suffix,
0902: new String[] { "Forms" });
0903: //dynamic-input-hidden-field DynamicInputHiddenField
0904: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0905: "dynamic-input-hidden-field", prefix
0906: + "DynamicInputHiddenField" + suffix,
0907: new String[] { "Forms" });
0908: //
0909: //dynamic-horizontal-row DynamicHorizontalRow
0910: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0911: "dynamic-horizontal-row", prefix
0912: + "DynamicHorizontalRow" + suffix,
0913: new String[] { "Web", "Other" });
0914: //
0915: //
0916: //
0917: //
0918: //session-get-var SessionGetVar
0919: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0920: "session-get-var", prefix + "SessionGetVar" + suffix,
0921: new String[] { "Web" });
0922: //session-set-var SessionSetVar
0923: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0924: "session-set-var", prefix + "SessionSetVar" + suffix,
0925: new String[] { "Web" });
0926: //session-remove-var SessionRemoveVar
0927: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0928: "session-remove-var", prefix + "SessionRemoveVar"
0929: + suffix, new String[] { "Web" });
0930: //session-is-var-present SessionIsVarPresent
0931: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0932: "session-is-var-present", prefix
0933: + "SessionIsVarPresent" + suffix,
0934: new String[] { "Web" });
0935: //
0936: //
0937: //
0938: //
0939: //
0940: //
0941: //
0942: //request-get-param RequestGetParam
0943: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0944: "request-get-param", prefix + "RequestGetParam"
0945: + suffix, new String[] { "Web" });
0946: //request-get-param-names RequestGetParamNames
0947: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0948: "request-get-param-names", prefix
0949: + "RequestGetParamNames" + suffix,
0950: new String[] { "Web" });
0951: //request-is-param-present RequestIsParamPresent
0952: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0953: "request-is-param-present", prefix
0954: + "RequestIsParamPresent" + suffix,
0955: new String[] { "Web" });
0956: //
0957: //
0958: //
0959: //request-get-cookie-value RequestGetCookieValue
0960: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0961: "request-get-cookie-value", prefix
0962: + "RequestGetCookieValue" + suffix,
0963: new String[] { "Web", "Cookies" });
0964: //request-is-cookie-present RequestIsCookiePresent
0965: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0966: "request-is-cookie-present", prefix
0967: + "RequestIsCookiePresent" + suffix,
0968: new String[] { "Web", "Cookies" });
0969: //response-add-cookie ResponseAddCookie
0970: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0971: "response-add-cookie", prefix + "ResponseAddCookie"
0972: + suffix, new String[] { "Web", "Cookies" });
0973: //response-remove-cookie ResponseRemoveCookie
0974: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0975: "response-remove-cookie", prefix
0976: + "ResponseRemoveCookie" + suffix,
0977: new String[] { "Web", "Cookies" });
0978: //response-forward-locally ResponseForwardLocally
0979: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0980: "response-forward-locally", prefix
0981: + "ResponseForwardLocally" + suffix,
0982: new String[] { "Web", "Actions" });
0983: //response-forward-locally ResponseRenderBinaryOutput
0984: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0985: "response-render-binary-output", prefix
0986: + "ResponseRenderBinaryOutput" + suffix,
0987: new String[] { "Web", "Other" });
0988: //
0989: //
0990: //
0991: //
0992: //project-relative-url ProjectRelativeUrl
0993: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0994: "project-relative-url", prefix + "ProjectRelativeUrl"
0995: + suffix, new String[] { "Web", "Link" });
0996: //project-get-file-name ProjectGetFileName
0997: addConfigInstanceTag(inRegistryCtchar, handle, ns,
0998: "project-get-file-name", prefix + "ProjectGetFileName"
0999: + suffix, new String[] { "Project" });
1000: //
1001: //namespace http://www.jfolder.org/dtds/apps/web/v1/returnable.dtd
1002: //dynamic-checkbox TaglibDynamicCheckbox
1003: //addConfigInstanceTag(inRegistryCtchar, handle, ns, "dynamic-checkbox",
1004: // prefix + "TaglibDynamicCheckbox" + suffix, new String[]{"CORE"});
1005: //forward-to-local-page TaglibForwardToLocalPage
1006: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
1007: // "forward-to-local-page",
1008: // prefix + "TaglibForwardToLocalPage" + suffix,
1009: // new String[]{"CORE"});
1010: //get-form-parameter-count TaglibGetFormParameterCount
1011: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
1012: // "get-form-parameter-count",
1013: // prefix + "TaglibGetFormParameterCount" + suffix,
1014: // new String[]{"CORE"});
1015: //get-form-parameter TaglibGetFormParameter
1016: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
1017: // "get-form-parameter",
1018: // prefix + "TaglibGetFormParameter" + suffix, new String[]{"CORE"});
1019: //get-page-variable TaglibGetPageVariable
1020: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
1021: // "get-page-variable",
1022: // prefix + "TaglibGetPageVariable" + suffix, new String[]{"CORE"});
1023: //get-selected-form-parameter TaglibGetSelectedFormParameter
1024: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
1025: // "get-selected-form-parameter",
1026: // prefix + "TaglibGetSelectedFormParameter" + suffix,
1027: // new String[]{"CORE"});
1028: //get-selected-workflow-instance-attribute
1029: // TaglibGetSelectedWorkflowInstanceAttribute
1030: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
1031: // "get-selected-workflow-instance-attribute",
1032: // prefix + "TaglibGetSelectedWorkflowInstanceAttribute" + suffix,
1033: // new String[]{"CORE"});
1034: //get-user-name TaglibGetUserName
1035: //addConfigInstanceTag(inRegistryCtchar, handle, ns, "get-user-name",
1036: // prefix + "TaglibGetUserName" + suffix, new String[]{"CORE"});
1037: //is-user-anonymous TaglibIsUserAnonymous
1038: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
1039: // "is-user-anonymous",
1040: // prefix + "TaglibIsUserAnonymous" + suffix, new String[]{"CORE"});
1041: //is-user-in-group TaglibIsUserInGroup
1042: //addConfigInstanceTag(inRegistryCtchar, handle, ns, "is-user-in-group",
1043: // prefix + "TaglibIsUserInGroup" + suffix, new String[]{"CORE"});
1044: //is-user-invalid-or-anonymous TaglibIsUserInvalidOrAnonymous
1045: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
1046: // "is-user-invalid-or-anonymous",
1047: // prefix + "TaglibIsUserInvalidOrAnonymous" + suffix,
1048: // new String[]{"CORE"});
1049: //is-user-not-in-group TaglibIsUserNotInGroup
1050: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
1051: // "is-user-not-in-group",
1052: // prefix + "TaglibIsUserNotInGroup" + suffix, new String[]{"CORE"});
1053: //is-user-valid TaglibIsUserValid
1054: //addConfigInstanceTag(inRegistryCtchar, handle, ns, "is-user-valid",
1055: // prefix + "TaglibIsUserValid" + suffix, new String[]{"CORE"});
1056: //release-selected-workflow-instance-wait
1057: // TaglibReleaseSelectedWorkflowInstanceWait
1058: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
1059: // "release-selected-workflow-instance-wait",
1060: // prefix + "TaglibReleaseSelectedWorkflowInstanceWait" + suffix,
1061: // new String[]{"CORE"});
1062: //select-waiting-workflow-instances
1063: // TaglibSelectWaitingWorkflowInstances
1064: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
1065: // "select-waiting-workflow-instances",
1066: // prefix + "TaglibSelectWaitingWorkflowInstances" + suffix,
1067: // new String[]{"CORE"});
1068: //select-form-parameters TaglibSelectFormParameters
1069: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
1070: // "select-form-parameters",
1071: // prefix + "TaglibSelectFormParameters" + suffix,
1072: // new String[]{"CORE"});
1073: //set-page-variable TaglibSetPageVariable
1074: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
1075: // "set-page-variable",
1076: // prefix + "TaglibSetPageVariable" + suffix, new String[]{"CORE"});
1077: //set-selected-workflow-instance-attribute
1078: // TaglibSetSelectedWorkflowInstanceAttribute
1079: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
1080: // "set-selected-workflow-instance-attribute",
1081: // prefix + "TaglibSetSelectedWorkflowInstanceAttribute" + suffix,
1082: // new String[]{"CORE"});
1083: //workflow-instance-query-and TaglibWorkflowInstanceQueryAnd
1084: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
1085: // "workflow-instance-query-and",
1086: // prefix + "TaglibWorkflowInstanceQueryAnd" + suffix,
1087: // new String[]{"CORE"});
1088: //workflow-instance-query-boolean TaglibWorkflowInstanceQueryBoolean
1089: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
1090: // "workflow-instance-query-boolean",
1091: // prefix + "TaglibWorkflowInstanceQueryBoolean" + suffix,
1092: // new String[]{"CORE"});
1093: //workflow-instance-query-decimal TaglibWorkflowInstanceQueryDecimal
1094: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
1095: // "workflow-instance-query-decimal",
1096: // prefix + "TaglibWorkflowInstanceQueryDecimal" + suffix,
1097: // new String[]{"CORE"});
1098: //workflow-instance-query-or TaglibWorkflowInstanceQueryOr
1099: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
1100: // "workflow-instance-query-or",
1101: // prefix + "TaglibWorkflowInstanceQueryOr" + suffix,
1102: // new String[]{"CORE"});
1103: //workflow-instance-query-string TaglibWorkflowInstanceQueryString
1104: //addConfigInstanceTag(inRegistryCtchar, handle, ns,
1105: // "workflow-instance-query-string",
1106: // prefix + "TaglibWorkflowInstanceQueryString" + suffix,
1107: // new String[]{"CORE"});
1108: }
1109:
1110: private final static void addConfigInstanceConfig(
1111: ConceptTagCharacteristic inCtchar, String inHandle,
1112: String inContent, String inCustomContent) {
1113:
1114: //MiscHelper.println("ConceptTagHelper addConfig called");
1115: //int nextIndex = inCtchar.getValueLength();
1116: ConceptTagCharacteristicHolder nextConfigCtcharh = inCtchar
1117: .createRegisteredHolder(inCtchar.getValueLength(), true);
1118: // ConceptTagCharacteristicHolder.newInstance(
1119: // inCtchar.getPreferences(), inCtchar, nextIndex);
1120: ////nextConfigCtcharh.setInitialized(true);
1121: //inCtchar.addValue(inCtchar.getValueLength(), nextConfigCtcharh);
1122: //
1123: ConceptTagCharacteristic handleCtchar = nextConfigCtcharh
1124: .registerCharacteristic(HANDLE);
1125: handleCtchar.addValue(0, inHandle);
1126: //
1127: ConceptTagCharacteristic contentCtchar = nextConfigCtcharh
1128: .registerCharacteristic(CONTENT);
1129: contentCtchar.addValue(0, inContent);
1130: //
1131: ConceptTagCharacteristic customContentCtchar = nextConfigCtcharh
1132: .registerCharacteristic(CUSTOM_CONTENT);
1133: customContentCtchar.addValue(0, inCustomContent);
1134: }
1135:
1136: //
1137: private final static void addInherit(
1138: ConceptTagCharacteristic inRegistryCtchar, String inHandle,
1139: String inInheritHandle) {
1140: //
1141: ConceptTagCharacteristicHolder registryCtcharh = getRegistry(
1142: inRegistryCtchar, inHandle);
1143: ConceptTagCharacteristic inheritCtchar = registryCtcharh
1144: .getCharacteristic(INHERIT);
1145: //
1146: inheritCtchar.addValue(inheritCtchar.getValueLength(),
1147: inInheritHandle);
1148: }
1149:
1150: private final static ConceptTagCharacteristicHolder getRegistry(
1151: ConceptTagCharacteristic inRegistryCtchar, String inHandle) {
1152:
1153: ConceptTagCharacteristicHolder outValue = null;
1154:
1155: //
1156: for (int i = 0; i < inRegistryCtchar.getValueLength(); i++) {
1157: ConceptTagCharacteristicHolder nextRegistryCtcharh = inRegistryCtchar
1158: .getValueAsHolder(i, null);
1159: //
1160: ConceptTagCharacteristic nextHandleCtchar = nextRegistryCtcharh
1161: .getCharacteristic(HANDLE);
1162: if (inHandle.equals(nextHandleCtchar.getValueAsString(0,
1163: null))) {
1164: outValue = nextRegistryCtcharh;
1165: }
1166: }
1167: //
1168: if (outValue == null) {
1169: outValue = inRegistryCtchar.createRegisteredHolder(
1170: inRegistryCtchar.getValueLength(), true);
1171: //
1172: ConceptTagCharacteristic handleCtchar = outValue
1173: .registerCharacteristic(HANDLE);
1174: handleCtchar.addValue(0, inHandle);
1175: outValue.registerCharacteristic(SECTION);
1176: outValue.registerCharacteristic(INHERIT);
1177: }
1178:
1179: return outValue;
1180: }
1181:
1182: private final static void addConfigInstanceTag(
1183: ConceptTagCharacteristic inRegistryCtchar, String inHandle,
1184: String inNamespace, String inName, String inType,
1185: String inMenuPath[]) {
1186:
1187: //
1188: ConceptTagCharacteristicHolder registryCtcharh = getRegistry(
1189: inRegistryCtchar, inHandle);
1190: ConceptTagCharacteristic sectionCtchar = registryCtcharh
1191: .getCharacteristic(SECTION);
1192: //
1193: //
1194: ConceptTagCharacteristicHolder nsCtcharh = null;
1195: //
1196: for (int i = 0; i < sectionCtchar.getValueLength(); i++) {
1197: ConceptTagCharacteristicHolder nextNsCtcharh = sectionCtchar
1198: .getValueAsHolder(i, null);
1199: //
1200: ConceptTagCharacteristic nextCtchar = nextNsCtcharh
1201: .getCharacteristic(NAMESPACE);
1202: //
1203: if (inNamespace == null && nextCtchar.getValueLength() == 0) {
1204: nsCtcharh = nextNsCtcharh;
1205: //
1206: } else if (inNamespace != null
1207: && nextCtchar.getValueLength() > 0
1208: && inNamespace.equals(nextCtchar.getValueAsString(
1209: 0, null))) {
1210: nsCtcharh = nextNsCtcharh;
1211: //
1212: }
1213: }
1214: if (nsCtcharh == null) {
1215: //
1216: nsCtcharh = sectionCtchar.createRegisteredHolder(
1217: sectionCtchar.getValueLength(), true);
1218: //
1219: ConceptTagCharacteristic namespaceCtchar = nsCtcharh
1220: .registerCharacteristic(NAMESPACE);
1221: if (inNamespace != null) {
1222: namespaceCtchar.addValue(0, inNamespace);
1223: }
1224: //
1225: nsCtcharh.registerCharacteristic(CONCEPT_TAG);
1226: }
1227: //
1228: ConceptTagCharacteristic conceptTagCtchar = nsCtcharh
1229: .getCharacteristic(CONCEPT_TAG);
1230: //
1231: ConceptTagCharacteristicHolder conceptTagCtcharh = conceptTagCtchar
1232: .createRegisteredHolder(conceptTagCtchar
1233: .getValueLength(), true);
1234: //
1235: ConceptTagCharacteristic nameCtchar = conceptTagCtcharh
1236: .registerCharacteristic(NAME);
1237: nameCtchar.addValue(0, inName);
1238: //
1239: ConceptTagCharacteristic typeCtchar = conceptTagCtcharh
1240: .registerCharacteristic(TYPE);
1241: typeCtchar.addValue(0, inType);
1242: //
1243: ConceptTagCharacteristic menuPathCtchar = conceptTagCtcharh
1244: .registerCharacteristic(MENU_PATH);
1245: for (int i = 0; i < inMenuPath.length; i++) {
1246: menuPathCtchar.addValue(i, inMenuPath[i]);
1247: }
1248: //
1249: }
1250: }
|