public final class FileReferenceCore extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static File |
addFile(UserIdentity authenticatedUser,
java.io.InputStream file,
java.lang.String filename)
Simulates uploading a file.
|
static void |
deleteFile(UserIdentity authenticatedUser,
java.lang.Long fileId) |
static File |
generateFile() |
static FileList |
generateFileList(Limits limits) |
static FileList |
listFiles(UserIdentity authenticatedUser,
long[] fileIds,
Limits limits) |
public static void deleteFile(UserIdentity authenticatedUser, java.lang.Long fileId)
authenticatedUser
- fileId
- public static File addFile(UserIdentity authenticatedUser, java.io.InputStream file, java.lang.String filename) throws java.lang.IllegalArgumentException
authenticatedUser
- file
- filename
- java.lang.IllegalArgumentException
- on failurepublic static FileList listFiles(UserIdentity authenticatedUser, long[] fileIds, Limits limits)
authenticatedUser
- fileIds
- limits
- public static FileList generateFileList(Limits limits)
limits
- public static File generateFile()
Copyright © 2015 Tampere University of Technology, Pori Department.