Package org.exoplatform.container.xml

Examples of org.exoplatform.container.xml.ValueParam


   }
  
   public void testCommands() throws Exception
   {
      InitParams params = new InitParams();
      ValueParam paramConf = new ValueParam();
      paramConf.setName(RPCServiceImpl.PARAM_JGROUPS_CONFIG);
      paramConf.setValue("jar:/conf/portal/udp.xml");     
      params.addParameter(paramConf);
      RPCServiceImpl service = null;
      try
      {
         service = new RPCServiceImpl(container.getContext(), params, configManager);
View Full Code Here


   }

   public void testSeveralNodes() throws Exception
   {
      InitParams params = new InitParams();
      ValueParam paramConf = new ValueParam();
      paramConf.setName(RPCServiceImpl.PARAM_JGROUPS_CONFIG);
      paramConf.setValue("jar:/conf/portal/udp.xml");     
      params.addParameter(paramConf);
      RPCServiceImpl service1 = null, service2 = null;     
      try
      {
         service1 = new RPCServiceImpl(container.getContext(), params, configManager);
View Full Code Here

      catch (IllegalArgumentException e)
      {
         // OK
      }
      InitParams params = new InitParams();
      ValueParam paramConf = new ValueParam();
      paramConf.setName(RPCServiceImpl.PARAM_JGROUPS_CONFIG);
      paramConf.setValue("jar:/conf/portal/udp.xml");     
      params.addParameter(paramConf);
      RPCServiceImpl service = null;
      try
      {
         service = new RPCServiceImpl(container.getContext(), params, configManager);
View Full Code Here

   }
  
   public void testExecOnCoordinator() throws Exception
   {
      InitParams params = new InitParams();
      ValueParam paramConf = new ValueParam();
      paramConf.setName(RPCServiceImpl.PARAM_JGROUPS_CONFIG);
      paramConf.setValue("jar:/conf/portal/udp.xml");
      params.addParameter(paramConf);

      final List<Boolean> calledCommands = Collections.synchronizedList(new ArrayList<Boolean>());

      RPCServiceImpl service1 = null;
View Full Code Here

   private static Class<? extends Annotation> findInjectAnnotationClass(InitParams params)
   {
      Class<? extends Annotation> injectAnnotationClass = null;
      if (params != null)
      {
         final ValueParam injectAnnotationParameter = params.getValueParam("inject.annotation.class");
         try
         {
            injectAnnotationClass = AccessController.doPrivileged(new PrivilegedExceptionAction<Class>()
            {
               public Class run() throws ClassNotFoundException
               {
                  return Thread.currentThread().getContextClassLoader().loadClass(injectAnnotationParameter.getValue());
               }
            });
         }
         catch (PrivilegedActionException pe)
         {
View Full Code Here

    *          The InitParams
    * @return force-xml-configuration value if present and false in other case
    */
   public boolean getForceXMLConfigurationValue(InitParams initParams)
   {
      ValueParam valueParam = initParams.getValueParam("force-xml-configuration");
      return (valueParam != null ? Boolean.valueOf(valueParam.getValue()) : false);
   }
View Full Code Here

      if (initParams != null)
      {
         Iterator<ValueParam> iterator = initParams.getValueParamIterator();
         while (iterator.hasNext())
         {
            ValueParam valueParam = (ValueParam)iterator.next();
            appConfiguration.put(valueParam.getName(), valueParam.getValue().trim());
         }
      }
   }
View Full Code Here

         membershipDAO_ = new MembershipDAOImpl(ldapAttrMapping, ldapService, this, cacheHandler);
      }
      userProfileDAO_ = new UserProfileDAOImpl(hservice, cservice, userDAO_);
      membershipTypeDAO_ = new MembershipTypeDAOImpl(ldapAttrMapping, ldapService, cacheHandler);

      ValueParam param = params.getValueParam("ldap.userDN.key");
      if (param != null)
         ldapAttrMapping.userDNKey = param.getValue();

      param = params.getValueParam("ldap.groupDN.key");
      if (param != null)
         ldapAttrMapping.groupDNKey = param.getValue();
   }
View Full Code Here

        this.clientID = params.getValueParam("clientId").getValue();
        this.clientSecret = params.getValueParam("clientSecret").getValue();
        String redirectURLParam = params.getValueParam("redirectURL").getValue();
        String scope = params.getValueParam("scope").getValue();
        this.accessType = params.getValueParam("accessType").getValue();
        ValueParam appNameParam = params.getValueParam("applicationName");
        if (appNameParam != null && appNameParam.getValue() != null) {
            applicationName = appNameParam.getValue();
        } else {
            applicationName = "GateIn portal";
        }

        if (clientID == null || clientID.length() == 0 || clientID.trim().equals("<<to be replaced>>")) {
View Full Code Here

        String enabledPar = getParam(params, "enabled");
        String usernameAttributeName = getParam(params, "userNameAttributeName");
        String oauthProviderProcessorClass = getParam(params, "oauthProviderProcessorClass");
        String principalProcessorClassName = null;

        ValueParam param = params.getValueParam("principalProcessorClass");
        if(param != null) {
            principalProcessorClassName = param.getValue();
        }

        String initOAuthURL = getParam(params, "initOAuthURL");
        String friendlyName = getParam(params, "friendlyName");
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.