Package org.infoglue.cms.entities.management

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


  public String getFormEntryAssetUrl(Database db, Integer formEntryAssetId, DeliveryContext deliveryContext) throws SystemException, Bug, Exception
  {
    String assetUrl = "";
    assetUrl = URLComposer.getURLComposer().composeDigitalAssetUrl("", null, "", deliveryContext);
   
    FormEntryAsset formEntryAsset = getFormEntryAssetWithId(formEntryAssetId, db);
   
    String fileName = formEntryAsset.getId() + "_" + formEntryAsset.getFileName();
    String filePath = CmsPropertyHandler.getDigitalAssetPath();
   
    dumpDigitalAsset(formEntryAsset, fileName, filePath);
   
    SiteNodeVO siteNodeVO = NodeDeliveryController.getNodeDeliveryController(deliveryContext.getSiteNodeId(), deliveryContext.getLanguageId(), deliveryContext.getContentId()).getSiteNodeVO(db, deliveryContext.getSiteNodeId());
View Full Code Here


    try
    {
      beginTransaction(db);

      FormEntryAsset formEntryAsset = getFormEntryAssetWithId(formEntryAssetId, db);
     
      String fileName = formEntryAsset.getId() + "_" + formEntryAsset.getFileName();
      String filePath = CmsPropertyHandler.getDigitalAssetPath();
     
      dumpDigitalAsset(formEntryAsset, fileName, filePath);
     
      SiteNodeVO siteNodeVO = NodeDeliveryController.getNodeDeliveryController(deliveryContext.getSiteNodeId(), deliveryContext.getLanguageId(), deliveryContext.getContentId()).getSiteNodeVO(db, deliveryContext.getSiteNodeId());
View Full Code Here

        return formEntry;
    }

  public void createAsset(FormEntryAssetVO newAsset, FormEntry formEntry, InputStream is, Integer id, InfoGluePrincipal principal, Database db) throws Exception
  {
      FormEntryAsset formEntryAsset = new FormEntryAssetImpl();
      formEntryAsset.setFormEntry(formEntry);
      formEntry.getFormEntryAssets().add(formEntryAsset);
      formEntryAsset.setValueObject(newAsset);
      formEntryAsset.setAssetBlob(is);

      formEntryAsset = (FormEntryAsset) createEntity(formEntryAsset, db);
  }
View Full Code Here

      
       Collection formEntryAssets = formEntry.getFormEntryAssets();
       Iterator formEntryAssetsIterator = formEntryAssets.iterator();
       while(formEntryAssetsIterator.hasNext())
       {
         FormEntryAsset asset = (FormEntryAsset)formEntryAssetsIterator.next();
         //asset.getFormEntry().getFormEntryAssets().remove(asset);
         formEntryAssetsIterator.remove();
         db.remove(asset);
       }
        
View Full Code Here

TOP

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

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.