Liferay 6.2.0-ce-m4

com.liferay.portal.kernel.util
Class TempFileUtil

java.lang.Object
  extended by com.liferay.portal.kernel.util.TempFileUtil

public class TempFileUtil
extends Object


Constructor Summary
TempFileUtil()
           
 
Method Summary
static FileEntry addTempFile(long groupId, long userId, String fileName, String tempFolderName, File file, String mimeType)
           
static FileEntry addTempFile(long groupId, long userId, String fileName, String tempFolderName, InputStream inputStream, String mimeType)
           
static void deleteTempFile(long fileEntryId)
           
static void deleteTempFile(long groupId, long userId, String fileName, String tempFolderName)
           
static FileEntry getTempFile(long groupId, long userId, String fileName, String tempFolderName)
           
static String[] getTempFileEntryNames(long groupId, long userId, String tempFolderName)
           
protected static long getTempFolderId(long groupId, long userId, String tempFolderName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TempFileUtil

public TempFileUtil()
Method Detail

addTempFile

public static FileEntry addTempFile(long groupId,
                                    long userId,
                                    String fileName,
                                    String tempFolderName,
                                    File file,
                                    String mimeType)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

addTempFile

public static FileEntry addTempFile(long groupId,
                                    long userId,
                                    String fileName,
                                    String tempFolderName,
                                    InputStream inputStream,
                                    String mimeType)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

deleteTempFile

public static void deleteTempFile(long fileEntryId)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

deleteTempFile

public static void deleteTempFile(long groupId,
                                  long userId,
                                  String fileName,
                                  String tempFolderName)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

getTempFile

public static FileEntry getTempFile(long groupId,
                                    long userId,
                                    String fileName,
                                    String tempFolderName)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

getTempFileEntryNames

public static String[] getTempFileEntryNames(long groupId,
                                             long userId,
                                             String tempFolderName)
                                      throws PortalException,
                                             SystemException
Throws:
PortalException
SystemException

getTempFolderId

protected static long getTempFolderId(long groupId,
                                      long userId,
                                      String tempFolderName)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

Liferay 6.2.0-ce-m4