Package com.cosmo.util

Examples of com.cosmo.util.PluginProperties


   {
      Node attribNode;
      NodeList attribList;
      Element pluginElement;
      Element attribElement;
      PluginProperties plugin;

      HashMap<String, PluginProperties> plugins = new HashMap<String, PluginProperties>();

      NodeList pluginList = doc.getElementsByTagName(pluginTag);
      for (int pidx = 0; pidx < pluginList.getLength(); pidx++)
      {
         Node pluginNode = pluginList.item(pidx);
         if (pluginNode.getNodeType() == Node.ELEMENT_NODE)
         {
            pluginElement = (Element) pluginNode;

            plugin = new PluginProperties();
            plugin.setId(pluginElement.getAttribute(WorkspaceProperties.XML_ATT_ID));
            plugin.setModuleClass(pluginElement.getAttribute(WorkspaceProperties.XML_ATT_DRIVER));

            attribList = pluginElement.getElementsByTagName(WorkspaceProperties.XML_TAG_PARAMETER);
            for (int aidx = 0; aidx < attribList.getLength(); aidx++)
            {
               attribNode = attribList.item(aidx);
               if (attribNode.getNodeType() == Node.ELEMENT_NODE)
               {
                  attribElement = (Element) attribNode;
                  plugin.setParam(attribElement.getAttribute(WorkspaceProperties.XML_ATT_KEY),
                                  attribElement.getAttribute(WorkspaceProperties.XML_ATT_VALUE));
               }
            }

            plugins.put(plugin.getId(), plugin);
         }
      }

      return plugins;
   }
View Full Code Here


      {
         return agents.get(agentId);
      }
      else
      {
         PluginProperties agent = workspace.getProperties().getCommProperties().getCommunicationAgent(agentId);

         className = agent.getModuleClass();
         if (StringUtils.isNullOrEmptyTrim(className))
         {
            throw new CommunicationsException("Communications Configuration Exception: No communications driver found");
         }
View Full Code Here

    *
    * @throws AuthorizationException
    */
   private static Authorization loadProvider(Workspace workspace) throws AuthorizationException
   {
      PluginProperties agent;
      String className = "-- no authorization provider defined in proprties --";
      Authorization provider;
     
      // Obtiene el agente de autorizaci�n
      agent = workspace.getProperties().getSecurityProperties().getAuthorizationAgent();
      if (agent == null)
      {
         throw new AuthorizationException("Security Configuration Exception: No authorization agent found");
      }
     
      // Obtiene el driver de autorizaci�n
      className = agent.getModuleClass();
      if (StringUtils.isNullOrEmptyTrim(className))
      {
         throw new AuthorizationException("Security Configuration Exception: No authorization driver found");
      }
     
View Full Code Here

    * @throws AuthenticationException
    */
   private static Authentication loadProvider(Workspace workspace) throws AuthenticationException
   {
      String className = "-- no authentication provider defined in proprties --";
      PluginProperties agent;
      Authentication provider;
     
      // Obtiene el agente de autenticaci�n
      agent = workspace.getProperties().getSecurityProperties().getAuthenticationAgent();
      if (agent == null)
      {
         throw new AuthenticationException("Security Configuration Exception: No authentication agent found");
      }
     
      // Obtiene el driver de autenticaci�n
      className = agent.getModuleClass();
      if (StringUtils.isNullOrEmptyTrim(className))
      {
         throw new AuthenticationException("Security Configuration Exception: No authentication driver found");
      }
     
View Full Code Here

      {
         return agents.get(agentId);
      }
      else
      {
         PluginProperties agent = workspace.getProperties().getDataProperties().getDataAgent(agentId);

         className = agent.getModuleClass();
         if (StringUtils.isNullOrEmptyTrim(className))
         {
            throw new DataException("Data Services Configuration Exception: No data driver found");
         }
View Full Code Here

TOP

Related Classes of com.cosmo.util.PluginProperties

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.