Package ru.portnyagin.helpdeskru.model

Examples of ru.portnyagin.helpdeskru.model.FileHD


   
    public void handleFileUpload(FileUploadEvent event) {
       
        UploadedFile file = event.getFile();

        FileHD fileHD = new FileHD();
       
        fileHD.setName(file.getFileName());
        fileHD.setContent(file.getContents());
        fileHD.setUploadedDate(new Date());
        fileHD.setRequest(current);
        fileHD.setUploadedBy(curUser);
        listFiles.add(fileHD);
       
        JsfUtil.addSuccessMessage(ResourceBundle.getBundle("property",
                FacesContext.getCurrentInstance().getViewRoot().getLocale()).
                getString("fileUploaded") + " " + file.getFileName());
View Full Code Here

TOP

Related Classes of ru.portnyagin.helpdeskru.model.FileHD

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.