Package org.sete.domain.type

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


      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

  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

      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

  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

    }
    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

    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

TOP

Related Classes of org.sete.domain.type.AttachmentType

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.