Enum Class SuggestionBoxWebController.ViewContext
java.lang.Object
java.lang.Enum<SuggestionBoxWebController.ViewContext>
org.silverpeas.components.suggestionbox.control.SuggestionBoxWebController.ViewContext
- All Implemented Interfaces:
Serializable,Comparable<SuggestionBoxWebController.ViewContext>,Constable
- Enclosing class:
- SuggestionBoxWebController
public static enum SuggestionBoxWebController.ViewContext
extends Enum<SuggestionBoxWebController.ViewContext>
A context on the viewing of suggestions. It is used to parametrize the rendering of the
suggestions in a JSP.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe suggestions to render are all the suggestions in a suggestion box the user can see.The suggestions to render are the suggestions of the current user.The suggestions to render are the suggestions published in a suggestion box.The suggestions to render are the suggestion awaiting a validation. -
Method Summary
Modifier and TypeMethodDescriptionfromIdentifier(String identifier) Returns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AllSuggestions
The suggestions to render are all the suggestions in a suggestion box the user can see. -
PublishedSuggestions
The suggestions to render are the suggestions published in a suggestion box. -
SuggestionsInValidation
The suggestions to render are the suggestion awaiting a validation. It can comprise also the suggestions that were refused by a moderator (a publisher). -
MySuggestions
The suggestions to render are the suggestions of the current user.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
fromIdentifier
-