public interface TempImageServiceLocal extends TempImageService, BaseImageServiceLocal<TempImage,NewTempImageParams>
TempImageService| Modifier and Type | Field and Description |
|---|---|
static int |
HOURS_FOR_EXPIRATION
Defines the number of hours before a temp image is considered expired
|
static java.lang.String |
TEMP_OWNER
In cases such as the receive payment, it might be that a user uploads the temp image (the payee) but some other
user needs to see it (the payer).
|
| Modifier and Type | Method and Description |
|---|---|
long |
deleteExpiredImages()
Deletes the expired temporary images from the database and the corresponding contents from the content storage.
|
void |
move(TempImage temp,
StoredFile image)
Move the content of the given temp image to a final destination
|
void |
preProcess(NewTempImageParams params)
Makes sure that the target in the given parameter is valid.
|
listfind, getImageNature, readContent, readContentByKeyremove, removeAll, save, saveNamestatic final java.lang.String TEMP_OWNER
InvocationContext attribute that
stores the other user.static final int HOURS_FOR_EXPIRATION
long deleteExpiredImages()
void move(TempImage temp, StoredFile image)
void preProcess(NewTempImageParams params)
TempImageTarget.USER_REGISTRATION when there's no custom field, or
TempImageTarget.CUSTOM_VALUE when there is one.
Also validate the user parameter, setting the default to the logged user when required.