public class TempFileEntryUtil
extends Object
Modifier and Type | Field and Description |
---|---|
static String |
TEMP_RANDOM_SUFFIX |
Constructor and Description |
---|
TempFileEntryUtil() |
Modifier and Type | Method and Description |
---|---|
static FileEntry |
addTempFileEntry(long groupId,
long userId,
String folderName,
String fileName,
File file,
String mimeType) |
static FileEntry |
addTempFileEntry(long groupId,
long userId,
String folderName,
String fileName,
InputStream inputStream,
String mimeType) |
static void |
deleteTempFileEntry(long fileEntryId) |
static void |
deleteTempFileEntry(long groupId,
long userId,
String folderName,
String fileName) |
static String |
getOriginalTempFileName(String tempFileName) |
static FileEntry |
getTempFileEntry(long groupId,
long userId,
String folderName,
String fileName) |
static String |
getTempFileName(String originalFileName) |
static String[] |
getTempFileNames(long groupId,
long userId,
String folderName) |
public static final String TEMP_RANDOM_SUFFIX
public static FileEntry addTempFileEntry(long groupId, long userId, String folderName, String fileName, File file, String mimeType) throws PortalException
PortalException
public static FileEntry addTempFileEntry(long groupId, long userId, String folderName, String fileName, InputStream inputStream, String mimeType) throws PortalException
PortalException
public static void deleteTempFileEntry(long fileEntryId) throws PortalException
PortalException
public static void deleteTempFileEntry(long groupId, long userId, String folderName, String fileName) throws PortalException
PortalException
public static String getOriginalTempFileName(String tempFileName)
public static FileEntry getTempFileEntry(long groupId, long userId, String folderName, String fileName) throws PortalException
PortalException
public static String getTempFileName(String originalFileName)
public static String[] getTempFileNames(long groupId, long userId, String folderName) throws PortalException
PortalException