Liferay 6.1.20-ee-ga2

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 String addTempFile(long userId, String tempPathName, File file)
           
static String addTempFile(long userId, String fileName, String tempPathName, File file)
           
static String addTempFile(long userId, String fileName, String tempPathName, InputStream inputStream)
           
static String addTempFile(String tempPathName, File file)
           
static String addTempFile(String fileName, String tempPathName, File file)
           
static void deleteTempFile(long userId, String fileName, String tempPathName)
           
static void deleteTempFile(String tempFileName)
           
static void deleteTempFile(String fileName, String tempPathName)
           
static InputStream getTempFileAsStream(String tempFileName)
           
static String[] getTempFileEntryNames(long userId, String tempPathName)
           
static String[] getTempFileEntryNames(String tempPathName)
           
static String getTempFileName(long userId, String fileName, String tempPathName)
           
static long getTempFileSize(String tempFileName)
           
protected static String getTempFolderName(long userId, String tempPathName)
           
protected static void validateFileName(String name)
           
protected static void validatePathName(String pathName)
           
 
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 String addTempFile(long userId,
                                 String tempPathName,
                                 File file)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

addTempFile

public static String addTempFile(long userId,
                                 String fileName,
                                 String tempPathName,
                                 File file)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

addTempFile

public static String addTempFile(long userId,
                                 String fileName,
                                 String tempPathName,
                                 InputStream inputStream)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

addTempFile

public static String addTempFile(String tempPathName,
                                 File file)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

addTempFile

public static String addTempFile(String fileName,
                                 String tempPathName,
                                 File file)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

deleteTempFile

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

deleteTempFile

public static void deleteTempFile(String tempFileName)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

deleteTempFile

public static void deleteTempFile(String fileName,
                                  String tempPathName)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

getTempFileAsStream

public static InputStream getTempFileAsStream(String tempFileName)
                                       throws PortalException,
                                              SystemException
Throws:
PortalException
SystemException

getTempFileEntryNames

public static String[] getTempFileEntryNames(long userId,
                                             String tempPathName)

getTempFileEntryNames

public static String[] getTempFileEntryNames(String tempPathName)

getTempFileName

public static String getTempFileName(long userId,
                                     String fileName,
                                     String tempPathName)
                              throws PortalException
Throws:
PortalException

getTempFileSize

public static long getTempFileSize(String tempFileName)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

getTempFolderName

protected static String getTempFolderName(long userId,
                                          String tempPathName)
                                   throws PortalException
Throws:
PortalException

validateFileName

protected static void validateFileName(String name)
                                throws PortalException
Throws:
PortalException

validatePathName

protected static void validatePathName(String pathName)
                                throws PortalException
Throws:
PortalException

Liferay 6.1.20-ee-ga2