Examples of ValueParam


Examples of org.exoplatform.container.xml.ValueParam

            }
         }
      }
      bindReferencesPlugins = new ArrayList<BindReferencePlugin>();

      ValueParam bindingStorePathParam = params.getValueParam(BINDINGS_STORE_PATH);

      if (LOG.isDebugEnabled())
      {
         LOG.debug("The default initial context factory is " + DEFAULT_INITIAL_CONTEXT_FACTORY);        
      }
      ValueParam overloadContextFactoryParam = params.getValueParam(OVERLOAD_CONTEXT_FACTORY);
      if (overloadContextFactoryParam != null && overloadContextFactoryParam.getValue() != null
         && Boolean.valueOf(overloadContextFactoryParam.getValue()))
      {
         PrivilegedSystemHelper
            .setProperty(Context.INITIAL_CONTEXT_FACTORY, ExoContainerContextFactory.class.getName());

      }
View Full Code Here

Examples of org.exoplatform.container.xml.ValueParam

   @SuppressWarnings("unchecked")
   public UserACL(InitParams params)
   {
      UserACLMetaData md = new UserACLMetaData();
      ValueParam superUserParam = params.getValueParam("super.user");
      if (superUserParam != null)
      {
         md.setSuperUser(superUserParam.getValue());
      }
      ValueParam guestGroupParam = params.getValueParam("guests.group");
      if (guestGroupParam != null)
      {
         md.setGuestsGroups(guestGroupParam.getValue());
      }
      ValueParam navCretorParam = params.getValueParam("navigation.creator.membership.type");
      if (navCretorParam != null)
      {
         md.setNavigationCreatorMembershipType(navCretorParam.getValue());
      }
      ValueParam portalCretorGroupsParam = params.getValueParam("portal.creator.groups");
      if (portalCretorGroupsParam != null)
      {
         md.setPortalCreateGroups(portalCretorGroupsParam.getValue());
      }
      ValuesParam mandatoryGroupsParam = params.getValuesParam("mandatory.groups");
      if (mandatoryGroupsParam != null)
      {
         mandatoryGroups_ = mandatoryGroupsParam.getValues();
      }
      else
      {
         mandatoryGroups_ = new ArrayList<String>();
      }

      ValuesParam mandatoryMSTypesParam = params.getValuesParam("mandatory.mstypes");
      if (mandatoryMSTypesParam != null)
         mandatoryMSTypes_ = mandatoryMSTypesParam.getValues();
      else
         mandatoryMSTypes_ = new ArrayList<String>();

      // tam.nguyen get admin group value
      ValueParam adminGroupsParam = params.getValueParam("portal.administrator.groups");
      if (adminGroupsParam != null)
      {
         setAdminGroups(adminGroupsParam.getValue());
      }

      // tam.nguyen get administrator member type
      ValueParam adminMSTypeParam = params.getValueParam("portal.administrator.mstype");
      if (adminMSTypeParam != null)
      {
         setAdminMSType(adminMSTypeParam.getValue());
      }

      init(md);
   }
View Full Code Here

Examples of org.exoplatform.container.xml.ValueParam

      throws Exception
   {
      cmanager_ = cmanager;
      dataStorage_ = dataStorage;

      ValueParam valueParam = params.getValueParam("page.templates.location");
      if (valueParam != null)
         pageTemplatesLocation_ = valueParam.getValue();

      valueParam = params.getValueParam("default.portal");
      if (valueParam != null)
      {
         defaultPortal = valueParam.getValue();
      }
     
      if (defaultPortal == null || defaultPortal.trim().length() == 0)
      {
         defaultPortal = "classic";
      }
      else
      {
         defaultPortalSpecified = true;
      }
     
      configs = params.getObjectParamValues(NewPortalConfig.class);

      templateConfigs = params.getObjectParamValues(SiteConfigTemplates.class);

      // get parameter
      valueParam = params.getValueParam("initializing.failure.ignore");
      // determine in the run function, is use try catch or not
      if (valueParam != null)
      {
         isUseTryCatch = (valueParam.getValue().toLowerCase().equals("true"));
      }
      else
      {
         isUseTryCatch = true;
      }
View Full Code Here

Examples of org.exoplatform.container.xml.ValueParam

   public DataSourceProviderImpl(InitParams params, TransactionService tService)
   {
      this.tm = tService == null ? null : tService.getTransactionManager();
      if (params != null)
      {
         ValueParam param = params.getValueParam(PARAM_CHECK_TX);
         if (param != null)
         {
            this.checkIfTxActive = Boolean.valueOf(param.getValue());
         }
         param = params.getValueParam(PARAM_ALWAYS_MANAGED);
         if (param != null && Boolean.valueOf(param.getValue()))
         {
            this.alwaysManaged = true;
            return;
         }
         ValuesParam vp = params.getValuesParam(PARAM_MANAGED_DS);
View Full Code Here

Examples of org.exoplatform.container.xml.ValueParam

      if (params != null)
      {
         Iterator<ValueParam> i = params.getValueParamIterator();
         while (i.hasNext())
         {
            ValueParam v = i.next();
            try
            {
               fs.add((Class<? extends ResponseFilter>)Class.forName(v.getValue()));
            }
            catch (ClassNotFoundException e)
            {
               LOG.error("Failed load class " + v.getValue(), e);
            }
         }
      }
   }
View Full Code Here

Examples of org.exoplatform.container.xml.ValueParam

    public UserPortalConfigService(UserACL userACL, DataStorage storage, OrganizationService orgService,
            NavigationService navService, DescriptionService descriptionService, PageService pageService, InitParams params)
            throws Exception {

        //
        ValueParam createUserPortalParam = params == null ? null : params.getValueParam("create.user.portal");
        boolean createUserPortal = createUserPortalParam == null
                || createUserPortalParam.getValue().toLowerCase().trim().equals("true");

        //
        ValueParam destroyUserPortalParam = params == null ? null : params.getValueParam("destroy.user.portal");
        boolean destroyUserPortal = destroyUserPortalParam == null
                || destroyUserPortalParam.getValue().toLowerCase().trim().equals("true");

        //
        ValueParam defaultImportModeParam = params == null ? null : params.getValueParam("default.import.mode");
        ImportMode defaultImportMode = defaultImportModeParam == null ? ImportMode.CONSERVE : ImportMode
                .valueOf(defaultImportModeParam.getValue().toUpperCase().trim());

        //
        this.storage_ = storage;
        this.orgService_ = orgService;
        this.userACL_ = userACL;
View Full Code Here

Examples of org.exoplatform.container.xml.ValueParam

            mandatoryMSTypes_ = mandatoryMSTypesParam.getValues();
        else
            mandatoryMSTypes_ = new ArrayList<String>();

        // tam.nguyen get admin group value
        ValueParam adminGroupsParam = params.getValueParam("portal.administrator.groups");
        if (adminGroupsParam != null) {
            setAdminGroups(adminGroupsParam.getValue());
        }

        // tam.nguyen get administrator member type
        ValueParam adminMSTypeParam = params.getValueParam("portal.administrator.mstype");
        if (adminMSTypeParam != null) {
            setAdminMSType(adminMSTypeParam.getValue());
        }

        init(md);
    }
View Full Code Here

Examples of org.exoplatform.container.xml.ValueParam

        dataStorage_ = dataStorage;
        pageService_ = pageService;
        navigationService_ = navigationService;
        descriptionService_ = descriptionService;

        ValueParam valueParam = params.getValueParam("page.templates.location");
        if (valueParam != null)
            pageTemplatesLocation_ = valueParam.getValue();

        valueParam = params.getValueParam("default.portal");
        if (valueParam != null) {
            defaultPortal = valueParam.getValue();
        }

        if (defaultPortal == null || defaultPortal.trim().length() == 0) {
            defaultPortal = "classic";
        } else {
            defaultPortalSpecified = true;
        }

        configs = params.getObjectParamValues(NewPortalConfig.class);

        templateConfigs = params.getObjectParamValues(SiteConfigTemplates.class);

        // get parameter
        valueParam = params.getValueParam("initializing.failure.ignore");
        // determine in the run function, is use try catch or not
        if (valueParam != null) {
            isUseTryCatch = (valueParam.getValue().toLowerCase().equals("true"));
        } else {
            isUseTryCatch = true;
        }

        valueParam = params.getValueParam("override");
        if (valueParam != null) {
            overrideExistingData = "true".equals(valueParam.getValue());
        } else {
            overrideExistingData = false;
        }

        this.pomMgr = pomMgr;
View Full Code Here

Examples of org.exoplatform.container.xml.ValueParam

    public PortalACLPlugin(InitParams initParams) {
        ValuesParam roles2 = initParams.getValuesParam("portal.creation.roles");
        if (roles2 != null) {
            portalCreationRoles = roles2.getValues();
        }
        ValueParam role3 = initParams.getValueParam("super.user");
        if (role3 != null) {
            superUser = role3.getValue();
        }
    }
View Full Code Here

Examples of org.exoplatform.container.xml.ValueParam

     * Initialize the metadata for UserACL service base on the {@link InitParams} params passed to the constructor
     *
     * @param params
     */
    public UserACLMetaData(InitParams params) {
        ValueParam superUserParam = params.getValueParam("super.user");
        if (superUserParam != null) {
            setSuperUser(superUserParam.getValue());
        }
        ValueParam guestGroupParam = params.getValueParam("guests.group");
        if (guestGroupParam != null) {
            setGuestsGroups(guestGroupParam.getValue());
        }
        ValueParam navCretorParam = params.getValueParam("navigation.creator.membership.type");
        if (navCretorParam != null) {
            setNavigationCreatorMembershipType(navCretorParam.getValue());
        }
        ValueParam portalCretorGroupsParam = params.getValueParam("portal.creator.groups");
        if (portalCretorGroupsParam != null) {
            setPortalCreateGroups(portalCretorGroupsParam.getValue());
        }
    }
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.