Package pl.net.bluesoft.rnd.processtool.dict

Examples of pl.net.bluesoft.rnd.processtool.dict.ProcessDictionaryRegistry



    @Override
    public ProcessDictionaryRegistry getProcessDictionaryRegistry() {
        if (processDictionaryRegistry == null) {
            processDictionaryRegistry = new ProcessDictionaryRegistry();
            processDictionaryRegistry.addProcessDictionaryProvider("db", (ProcessDictionaryProvider) getProcessDictionaryDAO());
            processDictionaryRegistry.addGlobalDictionaryProvider("db", (GlobalDictionaryProvider) getProcessDictionaryDAO());
        }
        return processDictionaryRegistry;
    }
View Full Code Here



    @Override
    public ProcessDictionaryRegistry getProcessDictionaryRegistry() {
        if (processDictionaryRegistry == null) {
            processDictionaryRegistry = new ProcessDictionaryRegistry();
            processDictionaryRegistry.addProcessDictionaryProvider("db", (ProcessDictionaryProvider) getProcessDictionaryDAO());
            processDictionaryRegistry.addGlobalDictionaryProvider("db", (GlobalDictionaryProvider) getProcessDictionaryDAO());
        }
        return processDictionaryRegistry;
    }
View Full Code Here

      this.entryInfo = params.getDictMapper().getEntryInfo(dictDesc.getEntryClass());
    }
    this.i18NSource = params.getI18NSource();

    ProcessToolContext ctx = ProcessToolContext.Util.getThreadProcessToolContext();
    ProcessDictionaryRegistry processDictionaryRegistry = ctx.getProcessDictionaryRegistry();
    dict = getDictionary(processDictionaryRegistry, params);

    if (dict != null) {
      if (dictDesc.getEntryClass() != null) {
        entries = getDictionaryItemMap(
View Full Code Here

            @Override
            public ProcessDictionary getNewValue(String key) {
                return registry.withProcessToolContext(new ReturningProcessToolContextCallback<ProcessDictionary>() {
                    @Override
                    public ProcessDictionary processWithContext(ProcessToolContext ctx) {
                        ProcessDictionaryRegistry dictionaryRegistry = ctx.getProcessDictionaryRegistry();
                        return dictionaryRegistry.getSpecificGlobalDictionary("db", dictionaryId, languageCode);
                    }
                });
            }
        });
    }
View Full Code Here

            @Override
            public ProcessDictionary getNewValue(String key) {
                return registry.withProcessToolContext(new ReturningProcessToolContextCallback<ProcessDictionary>() {
                    @Override
                    public ProcessDictionary processWithContext(ProcessToolContext ctx) {
                        ProcessDictionaryRegistry dictionaryRegistry = ctx.getProcessDictionaryRegistry();
                        return dictionaryRegistry.getDefaultGlobalDictionary("db", dictionaryId);
                    }
                });
            }
        });
    }
View Full Code Here

      GenericVaadinPortlet2BpmApplication o = (GenericVaadinPortlet2BpmApplication) application;
      showKeys = o.showKeys();
    }

    ProcessToolContext ctx = ProcessToolContext.Util.getThreadProcessToolContext();
    ProcessDictionaryRegistry registry = ctx.getProcessDictionaryRegistry();

    List<ProcessDictionary> dictionaries = new ArrayList<ProcessDictionary>();

    for (ProcessDefinitionConfig definition : definitions) {
      ProcessDictionary dictProcess = registry.getSpecificOrDefaultProcessDictionary(definition, "db", dictionary, i18NSource.getLocale().toString());

      if (dictProcess != null) {
        dictionaries.add(dictProcess);
      }
    }

    ProcessDictionary dictGlobal = registry.getSpecificOrDefaultGlobalDictionary("db", dictionary, i18NSource.getLocale().toString());

    if (dictGlobal != null) {
      dictionaries.add(dictGlobal);
    }
View Full Code Here

*/
public class HelpUtility {
  public static Component helpIcon(final Application application, final I18NSource i18NSource, ContextHelp contextHelp, String dictionary, String key,
      Boolean showDebugKey, Component optionalComponent, Placement popupPlacement) {
    ProcessToolContext ctx = ProcessToolContext.Util.getThreadProcessToolContext();
    ProcessDictionaryRegistry processDictionaryRegistry = ctx.getProcessDictionaryRegistry();
    ProcessDictionary dict = processDictionaryRegistry.getSpecificOrDefaultGlobalDictionary("db", dictionary, i18NSource.getLocale().toString());

    return helpIcon(dict, application, i18NSource, contextHelp, key, showDebugKey, optionalComponent, popupPlacement);
  }
View Full Code Here

TOP

Related Classes of pl.net.bluesoft.rnd.processtool.dict.ProcessDictionaryRegistry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.