Examples of ValueParam


Examples of org.exoplatform.container.xml.ValueParam

   {
      this.sessionProviderService = sessionProviderService;
      this.repositoryService = repositoryService;
      this.nullResourceLocks = new NullResourceLocksHolder();

      ValueParam pXSLTParam = params.getValueParam(FOLDER_ICON_PATH);
      if (pXSLTParam != null)
      {
         xsltParams.put(FOLDER_ICON_PATH, pXSLTParam.getValue());
         log.info(FOLDER_ICON_PATH + " = " + pXSLTParam.getValue());
      }

      ValueParam pDefFolderNodeType = params.getValueParam(INIT_PARAM_DEF_FOLDER_NODE_TYPE);
      if (pDefFolderNodeType != null)
      {
         defaultFolderNodeType = pDefFolderNodeType.getValue();
         log.info(INIT_PARAM_DEF_FOLDER_NODE_TYPE + " = " + defaultFolderNodeType);
      }

      ValueParam pDefFileNodeType = params.getValueParam(INIT_PARAM_DEF_FILE_NODE_TYPE);
      if (pDefFileNodeType != null)
      {
         defaultFileNodeType = pDefFileNodeType.getValue();
         log.info(INIT_PARAM_DEF_FILE_NODE_TYPE + " = " + defaultFileNodeType);
      }

      ValueParam pDefFileMimeType = params.getValueParam(INIT_PARAM_DEF_FILE_MIME_TYPE);
      if (pDefFileMimeType != null)
      {
         defaultFileMimeType = pDefFileMimeType.getValue();
         log.info(INIT_PARAM_DEF_FILE_MIME_TYPE + " = " + defaultFileMimeType);
      }

      ValueParam pUpdatePolicy = params.getValueParam(INIT_PARAM_UPDATE_POLICY);
      if (pUpdatePolicy != null)
      {
         updatePolicyType = pUpdatePolicy.getValue();
         log.info(INIT_PARAM_UPDATE_POLICY + " = " + updatePolicyType);
      }

      ValueParam pAutoVersion = params.getValueParam(INIT_PARAM_AUTO_VERSION);
      if (pAutoVersion != null)
      {
         autoVersionType = pAutoVersion.getValue();
         log.info(INIT_PARAM_AUTO_VERSION + " = " + autoVersionType);
      }

      ValueParam pCacheControl = params.getValueParam(INIT_PARAM_CACHE_CONTROL);
      if (pCacheControl != null)
      {
         String cacheControlConfigValue = pCacheControl.getValue();

         try
         {
            String[] elements = cacheControlConfigValue.split(";");
            for (String element : elements)
View Full Code Here

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

Examples of org.exoplatform.container.xml.ValueParam

      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

Examples of org.exoplatform.container.xml.ValueParam

   {
      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

Examples of org.exoplatform.container.xml.ValueParam

      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

Examples of org.exoplatform.container.xml.ValueParam

      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

Examples of org.exoplatform.container.xml.ValueParam

    * @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

Examples of org.exoplatform.container.xml.ValueParam

      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

Examples of org.exoplatform.container.xml.ValueParam

      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

    */
   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
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.