Examples of Qualifyer


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

      * specifies which stuff to fetch from the serviceDefinition.
      */

     public static QualifyerVO screate(QualifyerVO qualifyerVO, Integer serviceBindingId, Database db) throws ConstraintException, SystemException, Exception
     {
    Qualifyer qualifyer = null;
   
     ServiceBinding serviceBinding = ServiceBindingController.getServiceBindingWithId(serviceBindingId, db);
      
       qualifyer = new QualifyerImpl();
      qualifyer.setValueObject(qualifyerVO);
     qualifyer.setServiceBinding((ServiceBindingImpl)serviceBinding);
      db.create(qualifyer);
             
        return qualifyer.getValueObject();
     }
View Full Code Here

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

       
        Collection qualifyers = serviceBinding.getBindingQualifyers();
        Iterator qualifyersIterator = qualifyers.iterator();
        while(qualifyersIterator.hasNext())
        {
          Qualifyer qualifyer = (Qualifyer)qualifyersIterator.next();
          qualifyer.setServiceBinding((ServiceBindingImpl)serviceBinding);
         
          String entityName   = qualifyer.getName();
          String entityId    = qualifyer.getValue();
         
          if(entityName.equalsIgnoreCase("contentId"))
          {
            String mappedContentId = (String)contentIdMap.get(entityId);
            qualifyer.setValue((mappedContentId == null) ? entityId : mappedContentId);
          }
          else if(entityName.equalsIgnoreCase("siteNodeId"))
          {
            String mappedSiteNodeId = (String)siteNodeIdMap.get(entityId);
            qualifyer.setValue((mappedSiteNodeId == null) ? entityId : mappedSiteNodeId);           
          }
        }

        serviceBinding.setSiteNodeVersion((SiteNodeVersionImpl)siteNodeVersion);       
View Full Code Here

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

            String value = null;
           
            Object o = qualifyersIterator.next();
            if(o instanceof QualifyerImpl)
            {
              Qualifyer qualifyer = (Qualifyer)o;
                name = qualifyer.getName();
                value = qualifyer.getValue();
            }
            else if(o instanceof SmallQualifyerImpl)
            {
              SmallQualifyerImpl qualifyer = (SmallQualifyerImpl)o;
                name = qualifyer.getName();
                value = qualifyer.getValue();
            }
           
            if(name != null && value != null)
            {
                    try
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.