nl.vpro.domain.media.search.ImageListItem Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of media-domain Show documentation
Show all versions of media-domain Show documentation
The basic domain classes for 'media', the core of POMS. Also, the 'update' XML bindings for it.
It also contains some closely related domain classes like the enum to contain NICAM kijkwijzer settings.
package nl.vpro.domain.media.search;
import lombok.*;
import nl.vpro.domain.media.support.Image;
import nl.vpro.domain.media.support.OwnerType;
import nl.vpro.domain.support.License;
/**
* @since 3.5
*/
@Data
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@lombok.Builder
public class ImageListItem extends PublishableListItem {
private String title;
private String description;
private String imageUri;
private License license;
private String sourceName;
private OwnerType owner;
public ImageListItem() {
}
public ImageListItem(Image image) {
super(image);
setUrn(image.getUrn());
this.title = image.getTitle();
this.description = image.getDescription();
this.imageUri = image.getImageUri();
this.license = image.getLicense();
this.sourceName = image.getSourceName();
this.owner = image.getOwner();
}
}