Package org.infoglue.cms.entities.management

Examples of org.infoglue.cms.entities.management.AvailableServiceBindingVO


    }
    else
    {
      boundSiteNodeVOList = new ArrayList();

        AvailableServiceBindingVO availableServiceBindingVO = AvailableServiceBindingDeliveryController.getAvailableServiceBindingDeliveryController().getAvailableServiceBindingVO(availableServiceBindingName, db);

        List qualifyerList = new ArrayList();
        ServiceDefinitionVO serviceDefinitionVO = getInheritedServiceDefinition(qualifyerList, siteNodeId, availableServiceBindingVO, db, USE_INHERITANCE);
     
        if(serviceDefinitionVO != null)
View Full Code Here


          try
          {
              List siteNodes = SiteNodeController.getController().getSiteNodesWithoutMetaInfoContentId(db);
              Iterator siteNodesIterator = siteNodes.iterator();
             
              AvailableServiceBindingVO availableServiceBinding = AvailableServiceBindingController.getController().getAvailableServiceBindingVOWithName("Meta information", db);
          Integer metaInfoAvailableServiceBindingId = null;
          if(availableServiceBinding != null)
              metaInfoAvailableServiceBindingId = availableServiceBinding.getAvailableServiceBindingId();
             
              while(siteNodesIterator.hasNext())
              {
                  SiteNode siteNode = (SiteNode)siteNodesIterator.next();
View Full Code Here

 
  public AvailableServiceBindingVO getAvailableServiceBindingVO(String availableServiceBindingName, Database db) throws SystemException, Exception
  {
      String key = "" + availableServiceBindingName;
    logger.info("key:" + key);
    AvailableServiceBindingVO availableServiceBindingVO = (AvailableServiceBindingVO)CacheController.getCachedObject("availableServiceBindingCache", key);
    if(availableServiceBindingVO != null)
    {
        logger.info("There was an cached availableServiceBindingVO:" + availableServiceBindingVO);
    }
    else
    {
      logger.info("Going to look for availableServiceBindingName " + availableServiceBindingName);
     
      //OQLQuery oql = db.getOQLQuery( "SELECT asb FROM org.infoglue.cms.entities.management.impl.simple.AvailableServiceBindingImpl asb WHERE asb.name = $1");
        OQLQuery oql = db.getOQLQuery( "SELECT asb FROM org.infoglue.cms.entities.management.impl.simple.SmallAvailableServiceBindingImpl asb WHERE asb.name = $1");
        //OQLQuery oql = db.getOQLQuery( "CALL SQL SELECT availableServiceBindingId, name, description, visualizationAction, isMandatory, isUserEditable, isInheritable FROM cmAvailableServiceBinding WHERE (name = $1) AS org.infoglue.cms.entities.management.impl.simple.AvailableServiceBindingImpl");
          oql.bind(availableServiceBindingName);
     
      QueryResults results = oql.execute(Database.READONLY);
      if (results.hasMore())
          {
            AvailableServiceBinding availableServiceBinding = (AvailableServiceBinding)results.next();
        availableServiceBindingVO = availableServiceBinding.getValueObject();
        logger.info("Found availableServiceBinding:" + availableServiceBindingVO.getName());
          }
            else
            {
                logger.info("Found no AvailableServiceBindingVO with name " + availableServiceBindingName);
            }
View Full Code Here

  private List<ToolbarButton> getAvailableServiceBindingDetailsButtons(String toolbarKey, InfoGluePrincipal principal, Locale locale, HttpServletRequest request, boolean disableCloseButton) throws Exception
  {
    List<ToolbarButton> buttons = new ArrayList<ToolbarButton>();
   
    AvailableServiceBindingVO availableServiceBindingVO = AvailableServiceBindingController.getController().getAvailableServiceBindingVOWithId(new Integer(request.getParameter("availableServiceBindingId")));

    buttons.add(new ToolbarButton("",
        getLocalizedString(locale, "tool.managementtool.deleteAvailableServiceBinding.header"),
        getLocalizedString(locale, "tool.managementtool.deleteAvailableServiceBinding.header"),
        "DeleteAvailableServiceBinding.action?availableServiceBindingId=" + availableServiceBindingVO.getId() + "&igSecurityCode=" + request.getSession().getAttribute("securityCode"),
        "css/images/v3/deleteBackgroundWasteBasket.gif",
        "left",
        "delete",
        false,
        true,
        getLocalizedString(locale, "tool.managementtool.deleteAvailableServiceBinding.header"),
        getLocalizedString(locale, "tool.managementtool.deleteAvailableServiceBinding.text", new String[]{availableServiceBindingVO.getName()}),
        "workIframe"));

    return buttons;
  }
View Full Code Here

      if(this.siteNodeVO.getMetaInfoContentId() == null || this.siteNodeVO.getMetaInfoContentId().intValue() == -1)
      {
          boolean hadMetaInfo = false;
         
      AvailableServiceBindingVO availableServiceBindingVO = AvailableServiceBindingController.getController().getAvailableServiceBindingVOWithName("Meta information", db);
     
      Collection serviceBindings = SiteNodeVersionController.getServiceBindningList(this.siteNodeVersionVO.getId(), db, true);
      Iterator serviceBindingIterator = serviceBindings.iterator();
      while(serviceBindingIterator.hasNext())
      {
        ServiceBinding serviceBinding = (ServiceBinding)serviceBindingIterator.next();
        if(serviceBinding.getValueObject().getAvailableServiceBindingId().intValue() == availableServiceBindingVO.getAvailableServiceBindingId().intValue())
        {
          List boundContents = ContentController.getBoundContents(db, serviceBinding.getServiceBindingId());      
          if(boundContents.size() > 0)
          {
            ContentVO contentVO = (ContentVO)boundContents.get(0);
View Full Code Here

            {
                  boolean isMetaInfoInWorkingState = false;
            LanguageVO masterLanguageVO = LanguageController.getController().getMasterLanguage(this.repositoryId, db);
            Integer languageId = masterLanguageVO.getLanguageId();

            AvailableServiceBindingVO availableServiceBindingVO = AvailableServiceBindingController.getController().getAvailableServiceBindingVOWithName("Meta information");
            Integer metaInfoAvailableServiceBindingId = null;
            if(availableServiceBindingVO != null)
                metaInfoAvailableServiceBindingId = availableServiceBindingVO.getAvailableServiceBindingId();
           
            Integer metaInfoContentId = null;
            ContentVersionVO metaInfoContentVersionVO = null;
           
            if(this.siteNodeVersionVO != null)
View Full Code Here

            {
                  boolean isMetaInfoInWorkingState = false;
            LanguageVO masterLanguageVO = LanguageController.getController().getMasterLanguage(this.repositoryId, db);
            Integer languageId = masterLanguageVO.getLanguageId();

            AvailableServiceBindingVO availableServiceBindingVO = AvailableServiceBindingController.getController().getAvailableServiceBindingVOWithName("Meta information");
            Integer metaInfoAvailableServiceBindingId = null;
            if(availableServiceBindingVO != null)
                metaInfoAvailableServiceBindingId = availableServiceBindingVO.getAvailableServiceBindingId();
           
            Integer metaInfoContentId = null;
            ContentVersionVO metaInfoContentVersionVO = null;
           
            if(this.siteNodeVersionVO != null)
View Full Code Here

    List sortedAvailableServiceBindings = new ArrayList();
   
    Iterator iterator = this.availableServiceBindings.iterator();
    while(iterator.hasNext())
    {
      AvailableServiceBindingVO availableServiceBinding = (AvailableServiceBindingVO)iterator.next();
      int index = 0;
      Iterator sortedListIterator = sortedAvailableServiceBindings.iterator();
      while(sortedListIterator.hasNext())
      {
        AvailableServiceBindingVO sortedAvailableServiceBinding = (AvailableServiceBindingVO)sortedListIterator.next();
       
        String currentAttribute = availableServiceBinding.getName();
        String sortedAttribute  = sortedAvailableServiceBinding.getName();
       
        if(currentAttribute != null && sortedAttribute != null && currentAttribute.compareTo(sortedAttribute) < 0)
          {
            break;
          }
View Full Code Here

    List sortedAvailableContentServiceBindings = new ArrayList();
   
    Iterator sortedListIterator = getSortedAvailableServiceBindings().iterator();
    while(sortedListIterator.hasNext())
    {
      AvailableServiceBindingVO sortedAvailableServiceBinding = (AvailableServiceBindingVO)sortedListIterator.next();
      if(sortedAvailableServiceBinding.getVisualizationAction().indexOf("Structure") == -1)
        sortedAvailableContentServiceBindings.add(sortedAvailableServiceBinding);
    }
     
    return sortedAvailableContentServiceBindings;
  }
View Full Code Here

    List sortedAvailableStructureServiceBindings = new ArrayList();
   
    Iterator sortedListIterator = getSortedAvailableServiceBindings().iterator();
    while(sortedListIterator.hasNext())
    {
      AvailableServiceBindingVO sortedAvailableServiceBinding = (AvailableServiceBindingVO)sortedListIterator.next();
      if(sortedAvailableServiceBinding.getVisualizationAction().indexOf("Structure") > -1)
        sortedAvailableStructureServiceBindings.add(sortedAvailableServiceBinding);
    }
     
    return sortedAvailableStructureServiceBindings;
  }
View Full Code Here

TOP

Related Classes of org.infoglue.cms.entities.management.AvailableServiceBindingVO

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.