Enum ContentRelatedOperator
- java.lang.Object
-
- java.lang.Enum<ContentRelatedOperator>
-
- nl.gx.webmanager.cms.mediarepository.ContentRelatedOperator
-
- All Implemented Interfaces:
Serializable
,Comparable<ContentRelatedOperator>
public enum ContentRelatedOperator extends Enum<ContentRelatedOperator>
This enumeration covers the possible operators to use for the Content Related option in Dynamic Content Overviews (also known as MediaCollectionOverviewElement). In the UI this option is referred to as "Content related". This operator is only applicable if the "Context Dependent" option in the UI (isContentDependent in the API) is set to true. If isContentDependent is set to true, the media items displayed in the overview are those that match the tags of the media item currently displayed. The operator determines if the media items to display must match ALL tags of the current media item (operator: AND) or that it should match at least 1 tag of the current media item (operator: OR). For example: if the overview is displayed on a media item with tag "Car" and "BWM", the content dependent checkbox is checked and the operator is AND, this overview will display all media items with the tags "Car" and "BMW" assigned (and matches other options in the overview). Media items with only the tag "Car" assigned but without the tag "BWM" will not be displayed, and visa versa. If the operator OR is used, this overview will display all media items with either the tag "Car" assigned or the tag "BMW".
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ContentRelatedOperator
byId(String id)
Returns the Content Related Operator by its idString
getId()
Returns the identifier of the Content Related Operator.static ContentRelatedOperator
valueOf(String name)
Returns the enum constant of this type with the specified name.static ContentRelatedOperator[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OR
public static final ContentRelatedOperator OR
The OR operator
-
AND
public static final ContentRelatedOperator AND
The AND operator
-
-
Method Detail
-
values
public static ContentRelatedOperator[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ContentRelatedOperator c : ContentRelatedOperator.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ContentRelatedOperator valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getId
public String getId()
Returns the identifier of the Content Related Operator.- Returns:
- the identifier of the Content Related Operator
-
byId
public static ContentRelatedOperator byId(String id)
Returns the Content Related Operator by its id- Parameters:
id
- id of the Content Related Operator- Returns:
- the Content Related Operator
-
-