Package org.exoplatform.container.xml

Examples of org.exoplatform.container.xml.ValueParam


   public ExoCacheFactoryConfigPlugin(InitParams params)
   {
      configs = new HashMap<String, String>();
      for (Iterator<ValueParam> iterator = params.getValueParamIterator(); iterator.hasNext();)
      {
         ValueParam vParam = iterator.next();
         configs.put(vParam.getName(), vParam.getValue());
      }
   }
View Full Code Here


      this.dependencySupplier = dependencySupplier;
      if (params != null)
      {
         for (Iterator<ValueParam> i = params.getValueParamIterator(); i.hasNext();)
         {
            ValueParam vp = i.next();
            properties.put(vp.getName(), vp.getValue());
         }
      }
   }
View Full Code Here

   {
      if (params == null)
      {
         return null;
      }
      final ValueParam vp = params.getValueParam(key);
      String result;
      if (vp == null || (result = vp.getValue()) == null || (result = result.trim()).length() == 0)
      {
         return null;
      }
      return result;
   }
View Full Code Here

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

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

    * @param InitParams
    */
   public FtpConfigImpl(ExoContainerContext context, InitParams params)
   {

      ValueParam pCommandPort = params.getValueParam(INIT_PARAM_COMMAND_PORT);
      if (pCommandPort != null)
      {
         _commandPort = new Integer(pCommandPort.getValue());
      }

      ValueParam pDataMinPort = params.getValueParam(INIT_PARAM_DATA_MIN_PORT);
      if (pDataMinPort != null)
      {
         _dataMinPort = new Integer(pDataMinPort.getValue());
      }

      ValueParam pDataMaxPort = params.getValueParam(INIT_PARAM_DATA_MAX_PORT);
      if (pDataMaxPort != null)
      {
         _dataMaxPort = new Integer(pDataMaxPort.getValue());
      }

      ValueParam pSystem = params.getValueParam(INIT_PARAM_SYSTEM);
      if (pSystem != null)
      {
         _system = pSystem.getValue();
      }

      ValueParam pClientSideEncoding = params.getValueParam(INIT_PARAM_CLIENT_SIDE_ENCODING);
      if (pClientSideEncoding != null)
      {
         _clientSideEncoding = pClientSideEncoding.getValue();
      }

      ValueParam pFolderNodeType = params.getValueParam(INIT_PARAM_DEF_FOLDER_NODE_TYPE);
      if (pFolderNodeType != null)
      {
         _defFolderNodeType = pFolderNodeType.getValue();
      }

      ValueParam pFileNodeType = params.getValueParam(INIT_PARAM_DEF_FILE_NODE_TYPE);
      if (pFileNodeType != null)
      {
         _defFileNodeType = pFileNodeType.getValue();
      }

      ValueParam pFileMimeType = params.getValueParam(INIT_PARAM_DEF_FILE_MIME_TYPE);
      if (pFileMimeType != null)
      {
         _defFileMimeType = pFileMimeType.getValue();
      }

      ValueParam pCacheFolderName = params.getValueParam(INIT_PARAM_CACHE_FOLDER_NAME);
      if (pCacheFolderName != null)
      {
         _cacheFolderName = pCacheFolderName.getValue();
      }

      ValueParam pSlowUpLoad = params.getValueParam(INIT_PARAM_UPLOAD_SPEED_LIMIT);
      if (pSlowUpLoad != null)
      {
         _needSlowUpLoad = true;
         _upLoadSpeed = new Integer(pSlowUpLoad.getValue());
      }

      ValueParam pSlowDownLoad = params.getValueParam(INIT_PARAM_DOWNLOAD_SPEED_LIMIT);
      if (pSlowDownLoad != null)
      {
         _needSlowDownLoad = true;
         _downLoadSpeed = new Integer(pSlowDownLoad.getValue());
      }

      ValueParam pTimeOut = params.getValueParam(INIT_PARAM_TIME_OUT);
      if (pTimeOut != null)
      {
         _needTimeOut = true;
         _timeOutValue = new Integer(pTimeOut.getValue());
      }
     
      ValueParam pReplaceForbiddenChars = params.getValueParam(INIT_PARAM_REPLACE_FORBIDDEN_CHARS);
      if (pReplaceForbiddenChars != null)
      {
         _replaceForbiddenChars = new Boolean(pReplaceForbiddenChars.getValue());
      }

      ValueParam pForbiddenChars = params.getValueParam(INIT_PARAM_FORBIDDEN_CHARS);
      if (pForbiddenChars != null)
      {
         _forbiddenChars = pForbiddenChars.getValue();
      }

      ValueParam pReplaceChar = params.getValueParam(INIT_PARAM_REPLACE_CHAR);
      if (pReplaceChar != null)
      {
         _replaceChar = pReplaceChar.getValue().charAt(0);
      }

      ExoContainer container = context.getContainer();
      if (container instanceof PortalContainer)
      {
View Full Code Here

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

      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

    */
   private static String getValueParam(InitParams params, String parameterKey)
   {
      if (params != null)
      {
         ValueParam parameterKeyValue = params.getValueParam(parameterKey);
         if (parameterKeyValue != null)
         {
            String parameterKeyValueString = parameterKeyValue.getValue();
            if (parameterKeyValueString != null)
            {
               return parameterKeyValueString.trim();
            }
         }
View Full Code Here

            }
         }
      }
      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

TOP

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

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.