Package org.cyclos.entities.system
Interface ImageOwner<O extends BaseEntity,I extends OwnedImage<O>>
-
- Type Parameters:
O- The owner typeI- The image type
- All Known Implementing Classes:
AdCategory,AdImportedFile,Advertisement,AdWebShop,BasicAd,ContactInfo,GeneralReferenceImportedFile,IdentityProvider,ImportedFile,OAuthIdentityProvider,OidcClient,OidcIdentityProvider,PaymentImportedFile,RecordImportedFile,TokenImportedFile,TransferImportedFile,User,UserImportedFile,UserPaymentImportedFile,UserSendVouchersImportedFile,UserSpecificImportedFile,VoucherCategory,VoucherType
public interface ImageOwner<O extends BaseEntity,I extends OwnedImage<O>>Represents entities that own images. Might own a single image or multiple images.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description IgetImage()Either the single image or a de-normalized reference to the first imagedefault List<I>getImages()Either all images or a collection with the single imagevoidsetImage(I image)Either the single image or a de-normalized reference to the first imagedefault voidsetImages(List<I> images)Assigns either all images or the first image if the owner has a single one
-