Package org.cyclos.services.system
Interface RawFileService
-
- All Superinterfaces:
Service
- All Known Subinterfaces:
RawFileServiceLocal
public interface RawFileService extends Service
Service used to upload temp files and download the content of raw files
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<RawFileVO>listTemp(String guestKey, CustomFieldVO customField)Lists the temporary files owned by the current user or guest.RawFileVOload(@NotNull Long id)Loads a vo by idSerializableInputStreamreadContent(@NotNull Long id)Reads the contents of the given filevoidremove(@NotNull Long id)Removes the given filevoidremoveAll(@NotNull List<Long> ids)Removes the files with the given idsvoidsaveName(@NotNull Long id, String name)Saves the name of the given fileRawFileVOsaveTemp(String guestKey, CustomFieldVO customFieldVO, String name, String contentType, SerializableInputStream content)Saves the given file content.
-
-
-
Method Detail
-
listTemp
List<RawFileVO> listTemp(String guestKey, CustomFieldVO customField) throws FrameworkException
Lists the temporary files owned by the current user or guest. Guests are matched by guest key or remote address if none is given- Throws:
FrameworkException
-
load
RawFileVO load(@NotNull @NotNull Long id) throws FrameworkException
Loads a vo by id- Throws:
FrameworkException
-
readContent
SerializableInputStream readContent(@NotNull @NotNull Long id) throws FrameworkException
Reads the contents of the given file- Throws:
FrameworkException
-
remove
void remove(@NotNull @NotNull Long id) throws FrameworkExceptionRemoves the given file- Throws:
FrameworkException
-
removeAll
void removeAll(@NotNull @NotNull List<Long> ids) throws FrameworkExceptionRemoves the files with the given ids- Throws:
FrameworkException
-
saveName
void saveName(@NotNull @NotNull Long id, String name) throws FrameworkExceptionSaves the name of the given file- Throws:
FrameworkException
-
saveTemp
RawFileVO saveTemp(String guestKey, CustomFieldVO customFieldVO, String name, String contentType, SerializableInputStream content) throws FrameworkException
Saves the given file content. Temporary files are used forCustomFieldType.FILEcustom field then it must be specified through thecustomFieldVOparameter and it must contains also the nature to allow load the correct custom field sub-class.- Throws:
FrameworkException
-
-