Examples of preferredUrlForContent()


Examples of org.jboss.seam.document.DocumentStore.preferredUrlForContent()

      if (sendRedirect)
      {
         DocumentStore store = DocumentStore.instance();
         String id = store.newId();

         String url = store.preferredUrlForContent(baseName, type.getExtension(), id);
         url = Manager.instance().encodeConversationId(url, viewId);

         store.saveData(id, documentData);

         context.getExternalContext().redirect(url);
View Full Code Here

Examples of org.jboss.seam.document.DocumentStore.preferredUrlForContent()

         Contexts.getEventContext().set(getExportKey(), documentData);
         return;
      }

      String id = store.newId();
      String url = store.preferredUrlForContent(baseName, documentType.getExtension(), id);
      url = Manager.instance().encodeConversationId(url, viewId);
      store.saveData(id, documentData);
      log.debug("Redirecting to #0 for PDF view", url);
      facesContext.getExternalContext().redirect(url);
   }
View Full Code Here

Examples of org.jboss.seam.document.DocumentStore.preferredUrlForContent()

      if (sendRedirect)
      {
         DocumentStore store = DocumentStore.instance();
         String id = store.newId();

         String url = store.preferredUrlForContent(baseName, documentType.getExtension(), id);
         url = Manager.instance().encodeConversationId(url, viewId);

         store.saveData(id, documentData);

         removeITextObject();
View Full Code Here

Examples of org.jboss.seam.document.DocumentStore.preferredUrlForContent()

      if (sendRedirect)
      {
         DocumentStore store = DocumentStore.instance();
         String id = store.newId();

         String url = store.preferredUrlForContent(baseName, type.getExtension(), id);
         url = Manager.instance().encodeConversationId(url, viewId);

         store.saveData(id, documentData);

         context.getExternalContext().redirect(url);
View Full Code Here

Examples of org.jboss.seam.document.DocumentStore.preferredUrlForContent()

      if (sendRedirect)
      {
         DocumentStore store = DocumentStore.instance();
         String id = store.newId();

         String url = store.preferredUrlForContent(baseName, documentType.getExtension(), id);
         url = Manager.instance().encodeConversationId(url, viewId);

         store.saveData(id, documentData);

         removeITextObject();
View Full Code Here

Examples of org.jboss.seam.document.DocumentStore.preferredUrlForContent()

            Contexts.getEventContext().set(getExportKey(), documentData);
            return;
        }

        String id = store.newId();
        String url = store.preferredUrlForContent(baseName, documentType
                .getExtension(), id);
        url = Manager.instance().encodeConversationId(url, viewId);
        store.saveData(id, documentData);
        log.debug("Redirecting to #0 for PDF view", url);
        facesContext.getExternalContext().redirect(url);
View Full Code Here

Examples of org.jboss.seam.document.DocumentStore.preferredUrlForContent()

        DocumentData documentData = new DownloadableDocumentData(baseName, type, resource.getData());
        documentData.setFilename(resource.getFileName());
        documentData.setDisposition(resource.getDisposition());

        String url = store.preferredUrlForContent(resource.getFileName(), type.getExtension(), id);
        url = Manager.instance().encodeConversationId(url, viewId);
        store.saveData(id, documentData);
        return url;
    }
View Full Code Here

Examples of org.jboss.seam.pdf.DocumentStore.preferredUrlForContent()

            response.startElement("meta", this);
            response.writeAttribute("http-equiv", "Refresh", null);

            String viewId = Pages.getViewId(context);
            baseName = baseNameForViewId(viewId);
            String url = store.preferredUrlForContent(baseName, docType, id);

            url = Manager.instance().encodeConversationId(url, viewId);

            response.writeAttribute("content", "0; URL=" + url, null);
View Full Code Here

Examples of org.jboss.seam.pdf.DocumentStore.preferredUrlForContent()

            response.startElement("meta", this);
            response.writeAttribute("http-equiv", "Refresh", null);

            String viewId = Pages.getViewId(context);
            baseName = baseNameForViewId(viewId);
            String url = store.preferredUrlForContent(baseName, docType, id);

            url = Manager.instance().encodeConversationId(url, viewId);

            response.writeAttribute("content", "0; URL=" + url, null);
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.