Package org.nxplanner.file

Examples of org.nxplanner.file.FileSystemImpl


                Integer projectId = (Integer)noteToProjectMap.get(new Integer(note.getId()));
                if (projectId == null) {
                    projectId = new Integer(0);
                }
                int filesize = rs.getInt("file_size");
                final FileSystem fileSystem = new FileSystemImpl();
                Directory directory = fileSystem.getDirectory("/attachments/project/"+projectId);
                File file = fileSystem.createFile(directory, rs.getString("filename"), rs.getString("content_type"),
                        filesize, rs.getBlob("file").getBinaryStream());
                note.setFile(file);
            }
            session.flush();
            session.connection().commit();
View Full Code Here

TOP

Related Classes of org.nxplanner.file.FileSystemImpl

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.