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,AdCategoryImageServiceLocal,AdImageService,AdImageServiceLocal,BaseCategorizedImageService<NP>,BaseCategorizedImageServiceLocal<I,C,NP>,BaseCustomImageService<NP>,BaseCustomImageServiceLocal<I,C,NP>,BaseImageServiceLocal<I,NP>,BaseOwnedImageService<NP>,BaseOwnedImageServiceLocal<O,I,NP>,ConfigurationImageService,ConfigurationImageServiceLocal,ContactInfoImageService,ContactInfoImageServiceLocal,CustomFieldValueImageService,CustomFieldValueImageServiceLocal,DefaultUserImageService,DefaultUserImageServiceLocal,IdentityProviderImageService,IdentityProviderImageServiceLocal,ImportedImageServiceLocal,OidcClientImageService,OidcClientImageServiceLocal,SystemCustomImageService,SystemCustomImageServiceLocal,TempImageService,TempImageServiceLocal,ThemeImageService,ThemeImageServiceLocal,UserCustomImageService,UserCustomImageServiceLocal,UserImageService,UserImageServiceLocal,VoucherCategoryImageService,VoucherCategoryImageServiceLocal,VoucherTemplateImageService,VoucherTemplateImageServiceLocal,VoucherTypeImageService,VoucherTypeImageServiceLocal
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
-
-