public final class FileCore extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static File |
addFile(UserIdentity authenticatedUser,
java.io.InputStream file,
java.lang.String filename) |
static void |
deleteFiles(UserIdentity authenticatedUser,
long[] fileIds)
Delete the files given as a list of file ids, if array is empty or null, all user's files will be deleted
|
static FileList |
listFiles(UserIdentity authenticatedUser,
long[] fileIds,
Limits limits) |
public static File addFile(UserIdentity authenticatedUser, java.io.InputStream file, java.lang.String filename)
authenticatedUser
- file
- filename
- optional original filename. The real filename used to store the file on the system will be generated, thus giving filename as a parameter is optional.public static void deleteFiles(UserIdentity authenticatedUser, long[] fileIds)
authenticatedUser
- fileIds
- public static FileList listFiles(UserIdentity authenticatedUser, long[] fileIds, Limits limits)
authenticatedUser
- fileIds
- optional list of file ids, if missing all user's files will be returnedlimits
- Copyright © 2015 Tampere University of Technology, Pori Department.