Package org.openmeetings.app.data.file

Examples of org.openmeetings.app.data.file.FileProcessor


          if (AuthLevelmanagement.getInstance().checkWebServiceLevel(User_level)){
           
        String current_dir = getServletContext().getRealPath("/");
       
        ApplicationContext context = WebApplicationContextUtils.getWebApplicationContext(getServletContext());
            FileProcessor fileProcessor = (FileProcessor) context.getBean("openmeetings.FileProcessor");
       
            URL url = new URL(path);
            URLConnection uc = url.openConnection();
            InputStream inputstream = new BufferedInputStream(uc.getInputStream());
           
            Users externalUser = Usermanagement.getInstance().getUserByExternalIdAndType(externalUserId, externalType);
           
            LinkedHashMap<String, Object> hs = new LinkedHashMap<String, Object>();
        hs.put("user", externalUser);
           
        HashMap<String, HashMap<String, Object>> returnError = fileProcessor.processFile(externalUser.getUser_id(), room_id, isOwner, inputstream, parentFolderId, fileSystemName, current_dir, hs, externalFileId, externalType);
   
        HashMap<String, Object> returnAttributes = returnError.get("returnAttributes");
           
            // Flash cannot read the response of an upload
            // httpServletResponse.getWriter().print(returnError);
View Full Code Here


          if (AuthLevelmanagement.getInstance().checkWebServiceLevel(User_level)){
           
        String current_dir = getServletContext().getRealPath("/");
       
        ApplicationContext context = WebApplicationContextUtils.getWebApplicationContext(getServletContext());
            FileProcessor fileProcessor = (FileProcessor) context.getBean("openmeetings.FileProcessor");
       
            URL url = new URL(path);
            URLConnection uc = url.openConnection();
            InputStream inputstream = new BufferedInputStream(uc.getInputStream());
           
            Users internalUser = Usermanagement.getInstance().getUserById(internalUserId);
           
            LinkedHashMap<String, Object> hs = new LinkedHashMap<String, Object>();
        hs.put("user", internalUser);
           
        HashMap<String, HashMap<String, Object>> returnError = fileProcessor.processFile(internalUser.getUser_id(), room_id, isOwner, inputstream, parentFolderId, fileSystemName, current_dir, hs, externalFileId, externalType);
   
        HashMap<String, Object> returnAttributes = returnError.get("returnAttributes");
           
            // Flash cannot read the response of an upload
            // httpServletResponse.getWriter().print(returnError);
View Full Code Here

        String fileSystemName = upload.getBaseFilename("Filedata");
        log.debug("fileSystemName: " + fileSystemName);

        ApplicationContext context = WebApplicationContextUtils.getWebApplicationContext(getServletContext());
       
        FileProcessor fileProcessor = (FileProcessor) context.getBean("openmeetings.FileProcessor");
       
        HashMap<String, HashMap<String, Object>> returnError = fileProcessor.processFile(userId, room_id_to_Store,
            isOwner, is, parentFolderId, fileSystemName, current_dir, hs,
            0L, ""); //externalFilesId, externalType
       
        HashMap<String, Object> returnAttributes = returnError.get("returnAttributes");
       
View Full Code Here

TOP

Related Classes of org.openmeetings.app.data.file.FileProcessor

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.