Examples of GroupProperties


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

    QueryResults results = oql.execute(Database.READONLY);

    while (results.hasMore())
    {
      GroupProperties groupProperties = (GroupProperties)results.next();
      groupPropertiesVOList.add(groupProperties.getValueObject());
    }
   
    results.close();
    oql.close();
View Full Code Here

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

        beginTransaction(db);

        try
        {
      GroupProperties groupProperties = GroupPropertiesController.getController().getGroupPropertiesWithId(groupPropertiesId, db);
      if(groupProperties != null)
      {
        Collection digitalAssets = groupProperties.getDigitalAssets();
        digitalAssetVOList = toVOList(digitalAssets);
      }
                 
            commitTransaction(db);
        }
View Full Code Here

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

  /**
   * This method deletes the relation to a digital asset - not the asset itself.
   */
  public void deleteDigitalAssetRelation(Integer groupPropertiesId, DigitalAsset digitalAsset, Database db) throws SystemException, Bug
    {
      GroupProperties groupProperties = getGroupPropertiesWithId(groupPropertiesId, db);
      groupProperties.getDigitalAssets().remove(digitalAsset);
      digitalAsset.getGroupProperties().remove(groupProperties);
    }
View Full Code Here

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

 
        String groupName = "";
        List groupPropertyValues = new ArrayList();
      while (results.hasMore())
      {
        GroupProperties groupProperties = (GroupProperties)results.next();
        if(!groupProperties.getGroupName().equals(groupName))
        {
          String cacheKey = "" + groupName + "_" + languageVO.getId();
         
          logger.info("Caching for " + cacheKey + ":" + groupPropertyValues.size());
          CacheController.cacheObject("groupPropertiesCache", cacheKey, groupPropertyValues);
         
          groupPropertyValues = new ArrayList();
          groupName = groupProperties.getGroupName();
        }
        groupPropertyValues.add(groupProperties.getValueObject());
      }
      if(groupName != null)
      {
        String cacheKey = "" + groupName + "_" + languageVO.getId();
        CacheController.cacheObject("groupPropertiesCache", cacheKey, groupPropertyValues);
View Full Code Here

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

         
        roleProperties.getDigitalAssets().add(digitalAsset);                       
        }
        else if(entity.equalsIgnoreCase(GroupProperties.class.getName()))
        {
            GroupProperties groupProperties = GroupPropertiesController.getController().getGroupPropertiesWithId(entityId, db);
        Collection groupPropertiesList = new ArrayList();
        groupPropertiesList.add(groupProperties);
        logger.info("Added groupProperties:" + groupProperties.getId());
        
        digitalAsset = new DigitalAssetImpl();
        digitalAsset.setValueObject(digitalAssetVO);
        if(CmsPropertyHandler.getEnableDiskAssets().equals("false"))
          digitalAsset.setAssetBlob(is);
        digitalAsset.setGroupProperties(groupPropertiesList);
       
        db.create(digitalAsset);
         
        groupProperties.getDigitalAssets().add(digitalAsset);                       
        }
   
      commitTransaction(db);
    }
    catch(Exception e)
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.