Package org.exoplatform.container.xml

Examples of org.exoplatform.container.xml.ValuesParam


    * @param params the container parameters.
    */
   public TextPlainDocumentReader(InitParams params)
   {

      ValuesParam encoding = (ValuesParam)params.getParameter(DEFAULT_ENCODING);

      if (encoding != null && encoding.getValue() != null && !encoding.getValue().equalsIgnoreCase(""))
      {
         defaultEncoding = encoding.getValue();
      }
      else
      {
         defaultEncoding = null;
      }
View Full Code Here


     
      paramConf.setValue("false");
      dsp = new DataSourceProviderImpl(params);
      assertFalse(dsp.isManaged(DS_NAME));
     
      ValuesParam paramsConf = new ValuesParam();
      paramsConf.setName(DataSourceProviderImpl.PARAM_MANAGED_DS);
      ArrayList<String> values = new ArrayList<String>();
      values.add(DS_NAME);
      values.add(" ds-foo1, ds-foo2 ");
      values.add("ds-foo3");
      paramsConf.setValues(values);
      params.addParameter(paramsConf);
      dsp = new DataSourceProviderImpl(params);
      assertTrue(dsp.isManaged(DS_NAME));
      assertTrue(dsp.isManaged("ds-foo1"));
      assertTrue(dsp.isManaged("ds-foo2"));
View Full Code Here

         if (param != null && Boolean.valueOf(param.getValue()))
         {
            this.alwaysManaged = true;
            return;
         }
         ValuesParam vp = params.getValuesParam(PARAM_MANAGED_DS);
         if (vp != null && vp.getValues() != null)
         {
            for (Object oValue : vp.getValues())
            {
               String s = (String)oValue;
               StringTokenizer st = new StringTokenizer(s, ",");
               while (st.hasMoreTokens())
               {
View Full Code Here

   {

      Iterator<ValuesParam> vparams = params.getValuesParamIterator();
      while (vparams.hasNext())
      {
         ValuesParam nodeTypeParam = vparams.next();
         nodeTypes.put(nodeTypeParam.getName(), nodeTypeParam.getValues());
      }
   }
View Full Code Here

   @SuppressWarnings("unchecked")
   public UserACL(InitParams params)
   {
      UserACLMetaData md = new UserACLMetaData(params);

      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");
View Full Code Here

      vp = params.getValueParam("apply.default");
      if (vp != null && vp.getValue().length() > 0)
      {
         this.bDefault = Boolean.valueOf(vp.getValue());
      }
      ValuesParam vsp = params.getValuesParam("apply.specific");
      if (vsp != null && !vsp.getValues().isEmpty())
      {
         this.names = new HashSet<String>(vsp.getValues());
      }
      this.changes = params.getObjectParamValues(PortalContainerDefinitionChange.class);
   }
View Full Code Here

   private Set<String> names;
  
   @SuppressWarnings("unchecked")
   public PortalContainerDefinitionDisablePlugin(InitParams params)
   {
      ValuesParam vsp = params.getValuesParam("names");
      if (vsp != null && !vsp.getValues().isEmpty())
      {
         this.names = new HashSet<String>(vsp.getValues());
      }
   }
View Full Code Here

      if (props == null)
      {
         throw new RepositoryConfigurationException("Property parameters 'locations' expected");
      }

      ValuesParam mixinValues = params.getValuesParam("mixin-names");
      if (mixinValues != null)
      {
         this.mixinNames = params.getValuesParam("mixin-names").getValues();
      }
      else
View Full Code Here

    /**
     * @return the list of enclosed "classpath" resource bundles
     */
    @SuppressWarnings("unchecked")
    public List<String> getClasspathResources() {
        ValuesParam vParam = params.getValuesParam("classpath.resources");
        return vParam == null ? null : vParam.getValues();
    }
View Full Code Here

    /**
     * @return the list of enclosed "portal" resource bundles
     */
    @SuppressWarnings("unchecked")
    public List<String> getPortalResources() {
        ValuesParam vParam = params.getValuesParam("portal.resource.names");
        return vParam == null ? null : vParam.getValues();
    }
View Full Code Here

TOP

Related Classes of org.exoplatform.container.xml.ValuesParam

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.