Package org.infoglue.cms.entities.management

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


  {
    List relatedContentList = new ArrayList();

    List groupPropertiesVO = this.getGroupPropertiesVOList(groupName, languageId, db);
      Iterator iterator = groupPropertiesVO.iterator();
      GroupPropertiesVO groupPropertyVO = null;
      while(iterator.hasNext())
      {
          groupPropertyVO = (GroupPropertiesVO)iterator.next();
          break;
      }

    if(groupPropertyVO != null)
    {
      String xml = this.getAttributeValue(groupPropertyVO.getValue(), attributeName, false);
      relatedContentList = this.getRelatedContentsFromXML(db, xml);
    }
   
    return relatedContentList;
  }
View Full Code Here


  {
    List relatedSiteNodeList = new ArrayList();

    List groupProperties = this.getGroupPropertiesVOList(groupName, languageId, db);
      Iterator iterator = groupProperties.iterator();
      GroupPropertiesVO groupPropertyVO = null;
      while(iterator.hasNext())
      {
          groupPropertyVO = (GroupPropertiesVO)iterator.next();
          break;
      }
     
    if(groupPropertyVO != null)
    {
      String xml = this.getAttributeValue(groupPropertyVO.getValue(), attributeName, false);
      relatedSiteNodeList = this.getRelatedSiteNodesFromXML(db, xml);
    }

    return relatedSiteNodeList;
  }
View Full Code Here

  {
    List relatedSiteNodeList = new ArrayList();

    List groupProperties = this.getGroupPropertiesVOList(groupName, languageId, db);
      Iterator iterator = groupProperties.iterator();
      GroupPropertiesVO groupPropertyVO = null;
      while(iterator.hasNext())
      {
          groupPropertyVO = (GroupPropertiesVO)iterator.next();
          break;
      }
     
    if(groupPropertyVO != null)
    {
      String xml = this.getAttributeValue(groupPropertyVO.getValue(), attributeName, false);
      relatedSiteNodeList = this.getReadOnlyRelatedSiteNodesFromXML(db, xml);
    }

    return relatedSiteNodeList;
  }
View Full Code Here

      relatedSiteNodeList = new ArrayList<SiteNodeVO>();

      List<GroupPropertiesVO> groupProperties = this.getGroupPropertiesVOList(groupName, languageId, db);
      Iterator<GroupPropertiesVO> iterator = groupProperties.iterator();
        GroupPropertiesVO groupPropertyVO = null;
        while(iterator.hasNext())
        {
            groupPropertyVO = iterator.next();
            break;
        }
       
      if(groupPropertyVO != null)
      {
        String xml = this.getAttributeValue(groupPropertyVO.getValue(), attributeName, false);
        relatedSiteNodeList = this.getReadOnlyRelatedSiteNodeVOListFromXML(db, xml);
      }

      RequestAnalyser.getRequestAnalyser().registerComponentStatistics("getReadOnlyRelatedSiteNodeVOList", t.getElapsedTime());
     
View Full Code Here

     
    try
    {
        List groupPropertiesVOList = this.getGroupPropertiesVOList(groupName, languageId);
        Iterator iterator = groupPropertiesVOList.iterator();
        GroupPropertiesVO groupPropertyVO = null;
        while(iterator.hasNext())
        {
            groupPropertyVO = (GroupPropertiesVO)iterator.next();
            break;
        }

      if(groupPropertyVO != null && groupPropertyVO.getId() != null)
      {
          List propertiesCategoryVOList = PropertiesCategoryController.getController().findByPropertiesAttribute(attribute, GroupProperties.class.getName(), groupPropertyVO.getId());
          Iterator propertiesCategoryVOListIterator = propertiesCategoryVOList.iterator();
          while(propertiesCategoryVOListIterator.hasNext())
          {
              PropertiesCategoryVO propertiesCategoryVO = (PropertiesCategoryVO)propertiesCategoryVOListIterator.next();
              relatedCategories.add(propertiesCategoryVO.getCategory());
View Full Code Here

     
    try
    {
        List groupPropertiesVOList = this.getGroupPropertiesVOList(groupName, languageId, db);
        Iterator iterator = groupPropertiesVOList.iterator();
        GroupPropertiesVO groupPropertyVO = null;
        while(iterator.hasNext())
        {
            groupPropertyVO = (GroupPropertiesVO)iterator.next();
            break;
        }

      if(groupPropertyVO != null && groupPropertyVO.getId() != null)
      {
          List propertiesCategoryList = PropertiesCategoryController.getController().findByPropertiesAttribute(attribute, GroupProperties.class.getName(), groupPropertyVO.getId(), db);

          Iterator propertiesCategoryListIterator = propertiesCategoryList.iterator();
          while(propertiesCategoryListIterator.hasNext())
          {
              PropertiesCategory propertiesCategory = (PropertiesCategory)propertiesCategoryListIterator.next();
View Full Code Here

     
    try
    {
        List groupPropertiesVOList = this.getGroupPropertiesVOList(groupName, languageId, db);
        Iterator iterator = groupPropertiesVOList.iterator();
        GroupPropertiesVO groupPropertyVO = null;
        while(iterator.hasNext())
        {
            groupPropertyVO = (GroupPropertiesVO)iterator.next();
            break;
        }

      if(groupPropertyVO != null && groupPropertyVO.getId() != null)
      {
          List propertiesCategoryList = PropertiesCategoryController.getController().findByPropertiesAttributeReadOnly(attribute, GroupProperties.class.getName(), groupPropertyVO.getId(), db);

          Iterator propertiesCategoryListIterator = propertiesCategoryList.iterator();
          while(propertiesCategoryListIterator.hasNext())
          {
              PropertiesCategory propertiesCategory = (PropertiesCategory)propertiesCategoryListIterator.next();
View Full Code Here

     
    try
    {
        List groupPropertiesVOList = this.getGroupPropertiesVOList(groupName, languageId, db);
        Iterator iterator = groupPropertiesVOList.iterator();
        GroupPropertiesVO groupPropertyVO = null;
        while(iterator.hasNext())
        {
            groupPropertyVO = (GroupPropertiesVO)iterator.next();
            break;
        }
     
      if(groupPropertyVO != null && groupPropertyVO.getId() != null)
      {
        if(CacheController.getCacheSize("propertiesCategoryCache") == 0 && preCacheInProgress.compareAndSet(false, true))
        {
          try
          {
            PropertiesCategoryController.getController().preCacheAllPropertiesCategoryVOList();
          }
          finally
          {
            preCacheInProgress.set(false);
          }
          logger.warn("preCacheAllPropertiesCategoryVOList took: " + t.getElapsedTime());
        }

        String key = "categoryVOList_" + attribute + "_" + GroupProperties.class.getName() + "_" + groupPropertyVO.getId();
        List<CategoryVO> categoryVOList = (List<CategoryVO>)CacheController.getCachedObject("propertiesCategoryCache", key);
        if(categoryVOList != null)
        {
          //System.out.println("Returning cached result:" + categoryVOList.size());
          relatedCategories = categoryVOList;
        }
        else
        {
          if(CacheController.getCachedObject("propertiesCategoryCache", "allValuesCached") != null)
          {
            //System.out.println("Skipping as there is no such property in the full precache..");
          }
          else
          {
            logger.warn("Reading the hard way for:" + key);
 
              List propertiesCategoryList = PropertiesCategoryController.getController().findByPropertiesAttributeReadOnly(attribute, GroupProperties.class.getName(), groupPropertyVO.getId(), db);
         
              Iterator propertiesCategoryListIterator = propertiesCategoryList.iterator();
              while(propertiesCategoryListIterator.hasNext())
              {
                  PropertiesCategory propertiesCategory = (PropertiesCategory)propertiesCategoryListIterator.next();
View Full Code Here

        RolePropertiesVO rolePropertiesVO = RolePropertiesController.getController().getRolePropertiesVOWithId(this.entityId);
        this.contentTypeDefinitionVO = ContentTypeDefinitionController.getController().getContentTypeDefinitionVOWithId(rolePropertiesVO.getContentTypeDefinitionId());           
      }
      else if(this.entity.equalsIgnoreCase(GroupProperties.class.getName()))
      {
        GroupPropertiesVO groupPropertiesVO = GroupPropertiesController.getController().getGroupPropertiesVOWithId(this.entityId);
        this.contentTypeDefinitionVO = ContentTypeDefinitionController.getController().getContentTypeDefinitionVOWithId(groupPropertiesVO.getContentTypeDefinitionId());           
      }
    }

    return "success";
  }
View Full Code Here

        RolePropertiesVO rolePropertiesVO = RolePropertiesController.getController().getRolePropertiesVOWithId(this.entityId);
        this.contentTypeDefinitionVO = ContentTypeDefinitionController.getController().getContentTypeDefinitionVOWithId(rolePropertiesVO.getContentTypeDefinitionId());           
      }
      else if(this.entity.equalsIgnoreCase(GroupProperties.class.getName()))
      {
        GroupPropertiesVO groupPropertiesVO = GroupPropertiesController.getController().getGroupPropertiesVOWithId(this.entityId);
        this.contentTypeDefinitionVO = ContentTypeDefinitionController.getController().getContentTypeDefinitionVOWithId(groupPropertiesVO.getContentTypeDefinitionId());           
      }
    }

    return "update";
  }
View Full Code Here

TOP

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

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.