Package org.infoglue.cms.services

Examples of org.infoglue.cms.services.BaseService


    {
      ServiceDefinition serviceDefinition = serviceBinding.getServiceDefinition();
      if(serviceDefinition != null)
      {
        String serviceClassName = serviceDefinition.getClassName();
        BaseService service = (BaseService)Class.forName(serviceClassName).newInstance();
            
        HashMap arguments = new HashMap();
        arguments.put("method", "selectContentListOnIdList");
               
        List qualifyerList = new ArrayList();
        Collection qualifyers = serviceBinding.getBindingQualifyers();

        qualifyers = sortQualifyers(qualifyers);

        Iterator iterator = qualifyers.iterator();
        while(iterator.hasNext())
        {
          Qualifyer qualifyer = (Qualifyer)iterator.next();
          HashMap argument = new HashMap();
          argument.put(qualifyer.getName(), qualifyer.getValue());
          qualifyerList.add(argument);
        }
        arguments.put("arguments", qualifyerList);
           
        List contents = service.selectMatchingEntities(arguments);
           
        if(contents != null)
        {
          Iterator i = contents.iterator();
          while(i.hasNext())
View Full Code Here


    {
      ServiceDefinition serviceDefinition = serviceBinding.getServiceDefinition();
      if(serviceDefinition != null)
      {
        String serviceClassName = serviceDefinition.getClassName();
        BaseService service = (BaseService)Class.forName(serviceClassName).newInstance();
            
        HashMap arguments = new HashMap();
        arguments.put("method", "selectContentListOnIdList");
               
        List<Map> qualifyerList = new ArrayList<Map>();
       
        Collection qualifyers = serviceBinding.getBindingQualifyers();

        qualifyers = sortQualifyers(qualifyers);

        Iterator iterator = qualifyers.iterator();
        while(iterator.hasNext())
        {
          Qualifyer qualifyer = (Qualifyer)iterator.next();
          Map argument = new HashMap();
          argument.put(qualifyer.getName(), qualifyer.getValue());
          qualifyerList.add(argument);
        }
        arguments.put("arguments", qualifyerList);
           
        try
        {
          List contents = service.selectMatchingEntities(arguments, db);
             
          if(contents != null)
          {
            Iterator i = contents.iterator();
            while(i.hasNext())
View Full Code Here

          List qualifyerList = new ArrayList();
          ServiceDefinitionVO serviceDefinitionVO = getInheritedServiceDefinition(qualifyerList, siteNodeId, availableServiceBindingVO, db, inheritParentBindings);
        if(serviceDefinitionVO != null)
        {
          String serviceClassName = serviceDefinitionVO.getClassName();
          BaseService service = (BaseService)Class.forName(serviceClassName).newInstance();
          
          HashMap arguments = new HashMap();
          arguments.put("method", "selectContentListOnIdList");
              arguments.put("arguments", qualifyerList);
         
          List contents = service.selectMatchingEntities(arguments, db);
         
          if(logger.isInfoEnabled())
            logger.info("Found bound contents:" + contents.size());             
         
          if(contents != null)
View Full Code Here

        ServiceDefinitionVO serviceDefinitionVO = getInheritedServiceDefinition(qualifyerList, siteNodeId, availableServiceBindingVO, db, USE_INHERITANCE);
     
        if(serviceDefinitionVO != null)
      {
        String serviceClassName = serviceDefinitionVO.getClassName();
        BaseService service = (BaseService)Class.forName(serviceClassName).newInstance();
          
        HashMap arguments = new HashMap();
        arguments.put("method", "selectSiteNodeListOnIdList");
         
        arguments.put("arguments", qualifyerList);
       
        List siteNodes = service.selectMatchingEntities(arguments, db);
       
        logger.info("Found bound siteNodes:" + siteNodes.size());
        if(siteNodes != null)
        {
          Iterator i = siteNodes.iterator();
View Full Code Here

      {
        ServiceDefinitionVO serviceDefinitionVO = ServiceDefinitionController.getController().getServiceDefinitionVOWithId(serviceDefinitionId);
      String serviceDefinitionClassName = serviceDefinitionVO.getClassName();
      logger.info("serviceDefinitionClassName:" + serviceDefinitionClassName);
     
      BaseService service = (BaseService)Class.forName(serviceDefinitionClassName).newInstance();
        response = service.selectMatchingEntities(arguments);
      }
      catch(Exception e)
      {
        e.printStackTrace();
      }
View Full Code Here

TOP

Related Classes of org.infoglue.cms.services.BaseService

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.