Class Mode
java.lang.Object
ch.tocco.nice2.optional.cms.api.publish.Mode
Deprecated.
Mode for getting the page content.
Can contain any key value pairs to pass to the single content providers. If some content providers should
be skipped at all, use
skipProviders(String, String...) to create an instance of this class.-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Optional<T> Deprecated.Get a value for a specific key.booleanDeprecated.Shortcut forget(Key)with boolean values.static <T> Mode.Key<T> Deprecated.Create a key instance.static ModeskipProviders(String first, String... others) Deprecated.Create a mode to skip the specified providers.<T> ModeDeprecated.Add a key value pair to this mode.
-
Constructor Details
-
Mode
public Mode()Deprecated.
-
-
Method Details
-
skipProviders
-
with
-
get
Deprecated.Get a value for a specific key.- Type Parameters:
T- The type of the value.- Parameters:
key- The key of the value.- Returns:
- the value or
Optional.empty()if not set or null.
-
is
-
key
-