Package org.infoglue.cms.entities.structure

Examples of org.infoglue.cms.entities.structure.QualifyerVO


      while(i.hasNext())
      {
        Element child = (Element)i.next();
        String id = child.getStringValue();
       
        QualifyerVO qualifyerVO = new QualifyerVO();
        qualifyerVO.setName(currentEntityIdentifyer);
        qualifyerVO.setValue(id);   
        qualifyerVO.setPath(this.getQualifyerPath(entity, id));
        //qualifyerVO.setSortOrder(new Integer(i));
        qualifyers.add(qualifyerVO);      
      }             
    }
    catch(Exception e)
View Full Code Here


   
    Iterator iterator = qualifyers.iterator();
    while(iterator.hasNext())
    {
      SmallQualifyerImpl qualifyer = (SmallQualifyerImpl)iterator.next();
      QualifyerVO qualifyerVO = qualifyer.getValueObject();
      SmallQualifyerImpl newQualifyer = new SmallQualifyerImpl();
      newQualifyer.setValueObject(qualifyerVO);
      newQualifyer.setServiceBinding((SmallServiceBindingImpl)newServiceBinding);
      newBindingQualifyers.add(newQualifyer);
      //QualifyerController.create(newQualifyerVO, newServiceBinding.getServiceBindingId(), db);
View Full Code Here

      while(i.hasNext())
      {
        Element child = (Element)i.next();
        String id = child.getStringValue();
       
        QualifyerVO qualifyerVO = new QualifyerVO();
        qualifyerVO.setName(currentEntityIdentifyer);
        qualifyerVO.setValue(id);   
        qualifyerVO.setPath(this.getQualifyerPath(entity, id));
        //qualifyerVO.setSortOrder(new Integer(i));
        qualifyers.add(qualifyerVO);      
      }             
    }
    catch(Exception e)
View Full Code Here

      StringTokenizer st = new StringTokenizer(qualifyerString, ",");
      int i = 0;
      while (st.hasMoreTokens())
      {
          String next = st.nextToken();
          QualifyerVO qualifyerVO = new QualifyerVO();
          qualifyerVO.setName("siteNodeId");
      qualifyerVO.setValue(next);   
      qualifyerVO.setSortOrder(new Integer(i));
          qualifyers.add(qualifyerVO);
          i++;
       }
    return qualifyers;
    }
View Full Code Here

  {
    StringBuffer buf = new StringBuffer();
    Iterator i = qualifyers.iterator();
    while(i.hasNext())
    {
      QualifyerVO q = (QualifyerVO) i.next();
      buf.append(q.getValue() + ",");
    }
    return buf.toString();
  }
View Full Code Here

     
      Iterator iterator = qualifyers.iterator();
      int i = 0;
      while(iterator.hasNext())
      {
        QualifyerVO qualifyer = (QualifyerVO)iterator.next();
        logger.info("Found qualifyer " + qualifyer.getValue() + ":" + qualifyer.getSortOrder());
      if(qualifyer.getSortOrder().equals(oldSortOrder) && direction.intValue() == 0) //down
      {
        logger.info("About to move it down...");
        if(iterator.hasNext())
        {
          QualifyerVO nextQualifyer = (QualifyerVO)iterator.next();
            logger.info("nextQualifyer " + nextQualifyer.getValue() + ":" + nextQualifyer.getSortOrder());
          nextQualifyer.setSortOrder(qualifyer.getSortOrder())
          logger.info("Set the nextQualifyer sortOrder to " + qualifyer.getSortOrder());
          qualifyer.setSortOrder(new Integer(qualifyer.getSortOrder().intValue() + 1));
          logger.info("Set the qualifyer sortOrder to " + qualifyer.getSortOrder());
          newQualifyers.add(nextQualifyer);
          newQualifyers.add(qualifyer);
        }
        else
          newQualifyers.add(qualifyer);
           
      }
      else if(qualifyer.getSortOrder().equals(oldSortOrder) && direction.intValue() == 1) //up
      {
        logger.info("About to move it up...");
        if(i > 0)
        {
          QualifyerVO previousQualifyer = (QualifyerVO)newQualifyers.get(i-1);
            logger.info("Previous qualifyer " + previousQualifyer.getValue() + ":" + previousQualifyer.getSortOrder());
          previousQualifyer.setSortOrder(qualifyer.getSortOrder())
          logger.info("Set the previous qualifyer sortOrder to " + qualifyer.getSortOrder());
          qualifyer.setSortOrder(new Integer(qualifyer.getSortOrder().intValue() - 1));
          logger.info("Set the qualifyer sortOrder to " + qualifyer.getSortOrder());
          newQualifyers.remove(qualifyer);
          newQualifyers.add(i-1, qualifyer);
View Full Code Here

     
      Iterator iterator = qualifyers.iterator();
      int i = 0;
      while(iterator.hasNext())
      {
        QualifyerVO qualifyer = (QualifyerVO)iterator.next();
        logger.info("-------------------------------->Found qualifyer " + qualifyer.getValue() + ":" + qualifyer.getSortOrder());
      if(!qualifyer.getSortOrder().equals(oldSortOrder))
      {
        logger.info("qualifyer:" + qualifyer.getSortOrder());
        logger.info("qualifyer:" + qualifyer.getValue());
        logger.info("Adding this qualifyer again as it did not match the delete-one:" + oldSortOrder);
        qualifyer.setSortOrder(new Integer(i)); //Bugfix ss
        newQualifyers.add(qualifyer);       
        i++;
      }
      } 
     
View Full Code Here

   
    List qualifyers = ServiceBindingController.getQualifyerVOList(serviceBindingId);
    Iterator i = qualifyers.iterator();
    while(i.hasNext())
    {
      QualifyerVO qualifyerVO = (QualifyerVO)i.next();
      if(!qualifyerDescription.equalsIgnoreCase(""))
        qualifyerDescription += ",";
       
      qualifyerDescription += qualifyerVO.getName() + "=" + qualifyerVO.getValue();
    }
   
    return qualifyerDescription;
  }
View Full Code Here

  {
    List qualifyers = ServiceBindingController.getQualifyerVOList(serviceBindingId);
    Iterator i = qualifyers.iterator();
    while(i.hasNext())
    {
      QualifyerVO qualifyerVO = (QualifyerVO)i.next();
      if(qualifyerVO.getName().equalsIgnoreCase("contentid"))
      {
          try {
              ContentVO contentVO = ContentControllerProxy.getController().getACContentVOWithId(this.getInfoGluePrincipal(), new Integer(qualifyerVO.getValue()));
              qualifyerVO.setPath(contentVO.getName());
          }
          catch(Exception e)
          {
          }
      }
View Full Code Here

       List qualifyerVOList = parseQualifyerList(qualifyerXML);
      
       Iterator i = qualifyerVOList.iterator();
       while(i.hasNext())
       {
         QualifyerVO qualifyerVO = (QualifyerVO)i.next();
         Qualifyer qualifyer = new QualifyerImpl();
          qualifyer.setValueObject(qualifyerVO);
       qualifyer.setServiceBinding((ServiceBindingImpl)serviceBinding);
          qualifyers.add(qualifyer);
          logger.info("ADDED:" + qualifyerVO.getValue());
       //qualifyer = (Qualifyer) createEntity(qualifyer, db);     
       }
              
        return qualifyers;
     }
View Full Code Here

TOP

Related Classes of org.infoglue.cms.entities.structure.QualifyerVO

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.