nl.vpro.domain.media.Encryption 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;
import lombok.Getter;
import org.apache.commons.lang3.StringUtils;
import nl.vpro.i18n.Displayable;
/**
* @author Michiel Meeuwissen
* @since 5.6.1
*/
public enum Encryption implements Displayable {
NONE("Geen"),
DRM("DRM");
@Getter
private final String displayName;
Encryption(String displayName) {
this.displayName = displayName;
}
public static Encryption valueOfOrNull(String id) {
if (StringUtils.isBlank(id)) {
return null;
}
return Encryption.valueOf(id);
}
}