Package org.infoglue.cms.entities.structure.impl.simple

Examples of org.infoglue.cms.entities.structure.impl.simple.SmallServiceBindingImpl


        List<SmallServiceBindingImpl> serviceBindings = ServiceBindingController.getController().getSmallServiceBindingsListForSiteNodeVersion(siteNodeVersionVO.getSiteNodeVersionId(), db);
        Iterator<SmallServiceBindingImpl> serviceBindingIterator = serviceBindings.iterator();
        while(serviceBindingIterator.hasNext())
        {
          SmallServiceBindingImpl serviceBinding = serviceBindingIterator.next();
          if(serviceBinding.getAvailableServiceBinding().getId().intValue() == metaInfoAvailableServiceBindingId.intValue())
          {
            serviceBindingId = serviceBinding.getId();
            break;
          }
        }

        if(serviceBindingId != null)
View Full Code Here


   
    Collection serviceBindnings = siteNodeVersion.getServiceBindings();
    Iterator serviceBindningsIterator = serviceBindnings.iterator();
    while(serviceBindningsIterator.hasNext())
    {
      SmallServiceBindingImpl serviceBinding = (SmallServiceBindingImpl)serviceBindningsIterator.next();
      //logger.info("serviceBinding:" + serviceBinding.getServiceBindingId());
      Collection qualifyers = serviceBinding.getBindingQualifyers();
      Iterator qualifyersIterator = qualifyers.iterator();
      while(qualifyersIterator.hasNext())
      { 
        SmallQualifyerImpl qualifyer = (SmallQualifyerImpl)qualifyersIterator.next();
        qualifyersIterator.remove();
        serviceBinding.getBindingQualifyers().remove(qualifyer);
      }
      db.remove(serviceBinding);
    }
   
    //ServiceBindingController.deleteServiceBindingsReferencingSiteNodeVersion(siteNodeVersion, db);
View Full Code Here

    QueryResults results = oql.execute();
    //logger.info("Fetching entity in read/write mode");

    while(results.hasMore())
    {
      SmallServiceBindingImpl serviceBinding = (SmallServiceBindingImpl)results.next();

      serviceBindings.add(serviceBinding);
    }

    if (logger.isDebugEnabled())
View Full Code Here

      logger.info("siteNodeVersionId:" + siteNodeVersionId);
      logger.info("serviceDefinitionId:" + serviceDefinitionId);

      SiteNodeVersionVO siteNodeVersionVO = SiteNodeVersionController.getController().getSiteNodeVersionVOWithId(siteNodeVersionId, db);
     
      SmallServiceBindingImpl serviceBinding = new SmallServiceBindingImpl();
        serviceBinding.setValueObject(serviceBindingVO);
        serviceBinding.setAvailableServiceBinding((AvailableServiceBindingImpl)AvailableServiceBindingController.getController().getAvailableServiceBindingWithId(availableServiceBindingId, db));
        serviceBinding.setServiceDefinition((ServiceDefinitionImpl)ServiceDefinitionController.getController().getServiceDefinitionWithId(serviceDefinitionId, db));
        //serviceBinding.setSiteNodeVersion((SiteNodeVersionImpl)siteNodeVersion);
        serviceBinding.setSiteNodeVersionId(siteNodeVersionId);

        db.create(serviceBinding);
           
        RegistryController.getController().updateSiteNodeVersionThreaded(siteNodeVersionVO);
View Full Code Here

    //Collection serviceBindings = siteNodeVersion.getServiceBindings();
      List<SmallServiceBindingImpl> serviceBindings = ServiceBindingController.getController().getSmallServiceBindingsListForSiteNodeVersion(siteNodeVersionVO.getId(), db);
    Iterator<SmallServiceBindingImpl> serviceBindingIterator = serviceBindings.iterator();
    while(serviceBindingIterator.hasNext())
    {
      SmallServiceBindingImpl serviceBinding = serviceBindingIterator.next();
        if(serviceBinding.getBindingQualifyers() != null)
        {
          @SuppressWarnings("unchecked")
        Iterator<SmallQualifyerImpl> qualifyersIterator = serviceBinding.getBindingQualifyers().iterator();
          while(qualifyersIterator.hasNext())
          {
            SmallQualifyerImpl qualifyer = (SmallQualifyerImpl)qualifyersIterator.next();
              String name = qualifyer.getName();
              String value = qualifyer.getValue();
View Full Code Here

//    Collection serviceBindings = siteNodeVersion.getServiceBindings();
    List<SmallServiceBindingImpl> serviceBindings = ServiceBindingController.getController().getSmallServiceBindingsListForSiteNodeVersion(siteNodeVersion.getSiteNodeVersionId(), db);
    Iterator<SmallServiceBindingImpl> serviceBindingIterator = serviceBindings.iterator();
    while(serviceBindingIterator.hasNext())
    {
      SmallServiceBindingImpl serviceBinding = serviceBindingIterator.next();
        if(serviceBinding.getBindingQualifyers() != null)
        {
          @SuppressWarnings("rawtypes")
          Iterator qualifyersIterator = serviceBinding.getBindingQualifyers().iterator();
          while(qualifyersIterator.hasNext())
          {
            String name = null;
            String value = null;
           
View Full Code Here

TOP

Related Classes of org.infoglue.cms.entities.structure.impl.simple.SmallServiceBindingImpl

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.