Package org.cyclos.services.system
Interface BaseImageService<NP>
-
- Type Parameters:
NP- The parameter used to identify saving new images
- All Superinterfaces:
Service
- All Known Subinterfaces:
AdCategoryImageService,AdImageService,BaseCategorizedImageService<NP>,BaseCustomImageService<NP>,BaseOwnedImageService<NP>,ConfigurationImageService,ContactInfoImageService,CustomFieldValueImageService,IdentityProviderImageService,OidcClientImageService,SystemCustomImageService,TempImageService,ThemeImageService,UserCustomImageService,UserImageService,VoucherTypeImageService
public interface BaseImageService<NP> extends Service
Base interface for image services
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidremove(@NotNull Long id)Removes the given imagevoidremoveAll(@NotNull Collection<Long> ids)Removes all the given imageImageVOsave(NP param, String name, SerializableInputStream contents, String contentType)Saves the given image for the given parameter (which depends on each image type), returning the descriptorvoidsaveName(@NotNull Long id, String name)Saves the name of the given image
-
-
-
Method Detail
-
remove
void remove(@NotNull @NotNull Long id) throws FrameworkExceptionRemoves the given image- Throws:
FrameworkException
-
removeAll
void removeAll(@NotNull @NotNull Collection<Long> ids) throws FrameworkExceptionRemoves all the given image- Throws:
FrameworkException
-
save
ImageVO save(NP param, String name, SerializableInputStream contents, String contentType) throws FrameworkException
Saves the given image for the given parameter (which depends on each image type), returning the descriptor- Throws:
FrameworkException
-
saveName
void saveName(@NotNull @NotNull Long id, String name) throws FrameworkExceptionSaves the name of the given image- Throws:
FrameworkException
-
-