Examples of ModuleConfiguration


Examples of org.apache.axis2.description.ModuleConfiguration

                                                              DeploymentConstants.TAG_REFERENCE, moduleName);
                moduleEle.addAttribute(moduleRefAttr);
                parent.addChild(moduleEle);

                //module configs
                ModuleConfiguration moduleConfig;
                if (axisDesc instanceof AxisService) {
                    moduleConfig = ((AxisService) axisDesc).getModuleConfig(moduleName);
                } else if (axisDesc instanceof AxisOperation) {
                    moduleConfig = ((AxisOperation) axisDesc).getModuleConfig(moduleName);
                } else if (axisDesc instanceof AxisServiceGroup) {
                    moduleConfig = ((AxisServiceGroup) axisDesc).getModuleConfig(moduleName);
                } else {
                    return;
                }

                if (moduleConfig != null) {
                    OMElement moduleConfigEle = createOMElement(fac, ns,
                                                                DeploymentConstants.TAG_MODULE_CONFIG);
                    OMAttribute moduleConfigNameAttr = createOMAttribute(fac, ns,
                                                                         DeploymentConstants.ATTRIBUTE_NAME, moduleConfig.getModuleName());
                    moduleConfigEle.addAttribute(moduleConfigNameAttr);
                    parent.addChild(moduleConfigEle);
                    List paramsList = moduleConfig.getParameters();
                    serializeParameterList(paramsList, moduleConfigEle, fac, ns);
                }
            }
        }
View Full Code Here

Examples of org.apache.marmotta.platform.core.model.module.ModuleConfiguration

        // resource resolving by the filter
        this.resourceMap = new HashMap<String, String>();


        for(String module : moduleService.listModules()) {
            ModuleConfiguration config = moduleService.getModuleConfiguration(module);

            if(config.getConfiguration().containsKey("baseurl")) {
                String path = config.getConfiguration().getString("baseurl");
                resourceMap.put(path.startsWith("/")?path:"/"+path,moduleService.getModuleJar(module).toString());
            }
        }

View Full Code Here

Examples of org.broadleafcommerce.common.config.domain.ModuleConfiguration

        List<ModuleConfiguration> configurations =
                moduleConfigService.findActiveConfigurationsByType(ModuleConfigurationType.TAX_CALCULATION);

        //Try to find a default configuration
        ModuleConfiguration config = null;
        if (configurations != null) {
            for (ModuleConfiguration configuration : configurations) {
                if (configuration.getIsDefault()) {
                    config = configuration;
                    break;
View Full Code Here

Examples of org.fcrepo.server.config.ModuleConfiguration

*/
public abstract class SQLUtility {

    public static ConnectionPool getConnectionPool(ServerConfiguration fcfg)
            throws SQLException {
        ModuleConfiguration mcfg =
                fcfg
                        .getModuleConfiguration("org.fcrepo.server.storage.ConnectionPoolManager");
        String defaultPool = mcfg.getParameter("defaultPoolName",Parameter.class).getValue();
        DatastoreConfiguration dcfg =
                fcfg.getDatastoreConfiguration(defaultPool);
        return getConnectionPool(dcfg);
    }
View Full Code Here

Examples of org.olat.modules.ModuleConfiguration

   * @param isNewNode true: an initial configuration is set; false: upgrading
   *          from previous node configuration version, set default to maintain
   *          previous behaviour
   */
  public void updateModuleConfigDefaults(boolean isNewNode) {
    ModuleConfiguration config = getModuleConfiguration();
    if (isNewNode || config.getConfigurationVersion() < 2) {
      // use defaults for new course building blocks
      config.setBooleanEntry(NodeEditController.CONFIG_STARTPAGE, Boolean.FALSE.booleanValue());
      config.setConfigurationVersion(2);
    }
    // else node is up-to-date - nothing to do
    config.remove(NodeEditController.CONFIG_INTEGRATION);
  }
View Full Code Here

Examples of org.olat.modules.ModuleConfiguration

    super(TYPE);
    updateModuleConfigDefaults(true);
  }

  public void updateModuleConfigDefaults(boolean isNewNode) {
    ModuleConfiguration config = getModuleConfiguration();
    if (isNewNode) {
      // use defaults for new course building blocks
      config.setBooleanEntry(NodeEditController.CONFIG_STARTPAGE, false);
      config.setConfigurationVersion(1);
    }
  }
View Full Code Here

Examples of org.olat.modules.ModuleConfiguration

    super(TYPE);
    initDefaultConfig();
  }

  private void initDefaultConfig() {
    ModuleConfiguration config = getModuleConfiguration();
    // add an empty checkpoint entry as default if none existent
    if (config.get(CONF_CHECKLIST) == null) {
      Checklist initialChecklist = new Checklist();
      // set to config
      config.set(CONF_CHECKLIST, initialChecklist);
      // save to db
      ChecklistManager.getInstance().saveChecklist(initialChecklist);
    }
  }
View Full Code Here

Examples of org.olat.modules.ModuleConfiguration

    super(TYPE);
    initDefaultConfig();
  }

  private void initDefaultConfig() {
    ModuleConfiguration config = getModuleConfiguration();
    // add an empty link entry as default if none existent
    if (config.get(CONF_LINKLIST) == null) {
      List<LLModel> initialList = new ArrayList<LLModel>(1);
      initialList.add(new LLModel());
      config.set(CONF_LINKLIST, initialList);
    }
  }
View Full Code Here

Examples of org.olat.modules.ModuleConfiguration

  IQDisplayController(Resolver resolver, String type, IQSecurityCallback secCallback, UserRequest ureq, WindowControl wControl) {
    super(wControl);

    ThreadLocalUserActivityLogger.log(LearningResourceLoggingAction.LEARNING_RESOURCE_OPEN, getClass());

    this.modConfig = new ModuleConfiguration();
    modConfig.set(IQEditController.CONFIG_KEY_ENABLEMENU, Boolean.TRUE);
    modConfig.set(IQEditController.CONFIG_KEY_TYPE, type);
    modConfig.set(IQEditController.CONFIG_KEY_SEQUENCE, AssessmentInstance.QMD_ENTRY_SEQUENCE_ITEM);
    modConfig.set(IQEditController.CONFIG_KEY_SCOREPROGRESS, Boolean.TRUE);
    modConfig.set(IQEditController.CONFIG_KEY_QUESTIONPROGRESS, Boolean.FALSE);
View Full Code Here

Examples of org.olat.modules.ModuleConfiguration

            // Best we can do here -> return noSubsInfo and clean up
            NotificationsManager.getInstance().deactivate(p);
            // return nothing available
            return NotificationsManager.getInstance().getNoSubscriptionInfo();
          }
          ModuleConfiguration config = ((WikiCourseNode)courseNode).getModuleConfiguration();
          RepositoryEntry re = WikiEditController.getWikiRepoReference(config, true);
          resId = re.getOlatResource().getResourceableId();
          logDebug("resId=" + resId, null);
          ores = OresHelper.createOLATResourceableInstance(WikiResource.TYPE_NAME, resId);
          businessControlString = p.getBusinessPath() + "[path=";
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.