Examples of AttachmentType


Examples of org.sete.domain.type.AttachmentType

                                                 HttpServletResponse response) throws Exception {

        //checkAuthorization(userHasPrivilege(request.getSession(), getPrivileges()));

        CreateProjectFileTypeForm fileTypeForm = (CreateProjectFileTypeForm) form;
        AttachmentType type = TypeUtil.forKey(AttachmentType.class, request.getParameter("key"));
        fileTypeForm.setKey(request.getParameter("key"));
        fileTypeForm.setDescription(type.getDescription());
        fileTypeForm.setType(type.getLabel());

        return mapping.findForward(WebConstants.FORWARD_VIEW);
    }
View Full Code Here

Examples of org.sete.domain.type.AttachmentType

    public ActionForward deleteProjectFileType(ActionMapping mapping, ActionForm form,
                                               HttpServletRequest request, HttpServletResponse response)
            throws Exception {

        //checkAuthorization(userHasPrivilege(request.getSession(), getPrivileges()));
        AttachmentType type = TypeUtil.forKey(AttachmentType.class, request.getParameter("key"));
        ScienceProjectService service = getService(ScienceProjectService.class);
        service.deleteScienceProjectFileType(type);
        TypeLoader.initializeSystemTypes(super.getServletContext());

        return mapping.findForward(WebConstants.FORWARD_VIEW);
View Full Code Here

Examples of org.sete.domain.type.AttachmentType

      HttpServletResponse response) throws Exception {

    //checkAuthorization(userHasPrivilege(request.getSession(), getPrivileges()));
   
    CreateProjectFileTypeForm fileTypeForm = (CreateProjectFileTypeForm) form;   
    AttachmentType type = TypeUtil.forKey(AttachmentType.class, request.getParameter("key"));
    fileTypeForm.setKey(request.getParameter("key"));
    fileTypeForm.setDescription(type.getDescription());
    fileTypeForm.setType(type.getLabel());
       
    return mapping.findForward("view");
  }
View Full Code Here

Examples of org.sete.domain.type.AttachmentType

  public ActionForward deleteProjectFileType(ActionMapping mapping, ActionForm form,
      HttpServletRequest request, HttpServletResponse response)
      throws Exception {

    //checkAuthorization(userHasPrivilege(request.getSession(), getPrivileges()));
    AttachmentType type = TypeUtil.forKey(AttachmentType.class, request.getParameter("key"));      
        ScienceProjectService service = getService(ScienceProjectService.class);
        service.deleteScienceProjectFileType(type);
        TypeLoader.initializeSystemTypes(super.getServletContext());
       
        return mapping.findForward("view");
View Full Code Here

Examples of org.sete.domain.type.AttachmentType

      HttpServletResponse response) throws Exception {

    //checkAuthorization(userHasPrivilege(request.getSession(), getPrivileges()));
   
    CreateProjectFileTypeForm fileTypeForm = (CreateProjectFileTypeForm) form;   
    AttachmentType type = TypeUtil.forKey(AttachmentType.class, request.getParameter("key"));
    fileTypeForm.setKey(request.getParameter("key"));
    fileTypeForm.setDescription(type.getDescription());
    fileTypeForm.setType(type.getLabel());
       
    return mapping.findForward("view");
  }
View Full Code Here

Examples of org.sete.domain.type.AttachmentType

  public ActionForward deleteProjectFileType(ActionMapping mapping, ActionForm form,
      HttpServletRequest request, HttpServletResponse response)
      throws Exception {

    //checkAuthorization(userHasPrivilege(request.getSession(), getPrivileges()));
    AttachmentType type = TypeUtil.forKey(AttachmentType.class, request.getParameter("key"));      
        ScienceProjectService service = getService(ScienceProjectService.class);
        service.deleteScienceProjectFileType(type);
        TypeLoader.initializeSystemTypes(super.getServletContext());
       
        return mapping.findForward("view");
View Full Code Here

Examples of org.sete.domain.type.AttachmentType

    }
    return usersList;
  }

  public void createNewScienceProjectFileType(CreateScienceProjectFileTypeVo cspftvo) {
    AttachmentType attachment = new AttachmentType();
    attachment.setDescription(cspftvo.getDescription());
    attachment.setLabel(cspftvo.getType());
    attachment.setKey(cspftvo.getKey());   
    projectDao.saveScienceProjectFileType(attachment);   
  }
View Full Code Here

Examples of org.sete.domain.type.AttachmentType

    attachment.setKey(cspftvo.getKey());   
    projectDao.saveScienceProjectFileType(attachment);   
  }
 
  public void updateScienceProjectFileType(CreateScienceProjectFileTypeVo cspftvo) {
    AttachmentType attachment = TypeUtil.forKey(AttachmentType.class, cspftvo.getKey());
      //AttachmentType attachment = projectDao.findByAttachmentTypeKey(cspftvo.getKey()) ;
      attachment.setDescription(cspftvo.getDescription()) ;
      attachment.setLabel(cspftvo.getType());
      projectDao.saveScienceProjectFileType(attachment)
  }
View Full Code Here

Examples of sample.mtom.service.MTOMSampleMTOMSampleSOAP11Port_httpStub.AttachmentType

     * Constants.Configuration.FILE_SIZE_THRESHOLD, "4000");
     */

    // Populating the code generated beans
    AttachmentRequest attachmentRequest = new AttachmentRequest();
    AttachmentType attachmentType = new AttachmentType();
    Base64Binary base64Binary = new Base64Binary();

    // Creating a javax.activation.FileDataSource from the input file.
    FileDataSource fileDataSource = new FileDataSource(file);

    // Create a dataHandler using the fileDataSource. Any implementation of
    // javax.activation.DataSource interface can fit here.
    DataHandler dataHandler = new DataHandler(fileDataSource);
    base64Binary.setBase64Binary(dataHandler);
    base64Binary.setContentType(dataHandler.getContentType());
    attachmentType.setBinaryData(base64Binary);
    attachmentType.setFileName(destination);
    attachmentRequest.setAttachmentRequest(attachmentType);

    AttachmentResponse response = serviceStub.attachment(attachmentRequest);
    System.out.println(response.getAttachmentResponse());
  }
View Full Code Here

Examples of sample.mtom.service.MTOMSampleStub.AttachmentType

     * Constants.Configuration.FILE_SIZE_THRESHOLD, "4000");
     */

    // Populating the code generated beans
    AttachmentRequest attachmentRequest = new AttachmentRequest();
    AttachmentType attachmentType = new AttachmentType();
    Base64Binary base64Binary = new Base64Binary();

    // Creating a javax.activation.FileDataSource from the input file.
    FileDataSource fileDataSource = new FileDataSource(file);

    // Create a dataHandler using the fileDataSource. Any implementation of
    // javax.activation.DataSource interface can fit here.
    DataHandler dataHandler = new DataHandler(fileDataSource);
    base64Binary.setBase64Binary(dataHandler);
    base64Binary.setContentType(dataHandler.getContentType());
    attachmentType.setBinaryData(base64Binary);
    attachmentType.setFileName(destination);
    attachmentRequest.setAttachmentRequest(attachmentType);

    AttachmentResponse response = serviceStub.attachment(attachmentRequest);
    System.out.println(response.getAttachmentResponse());
  }
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.