Package org.silverpeas.core.calendar
Enum VisibilityLevel
- java.lang.Object
-
- java.lang.Enum<VisibilityLevel>
-
- org.silverpeas.core.calendar.VisibilityLevel
-
- All Implemented Interfaces:
Serializable
,Comparable<VisibilityLevel>
public enum VisibilityLevel extends Enum<VisibilityLevel>
Predefined visibility level of a plannable object.- Author:
- mmoquillon
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONFIDENTIAL
The plannable object can be only visible by the stakeholders and it is confidential, meaning it shouldn't be visible by no one other than the stakeholders.PRIVATE
The plannable object can be only visible by the stakeholders.PUBLIC
The plannable object can be visible by all.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static VisibilityLevel
valueOf(String name)
Returns the enum constant of this type with the specified name.static VisibilityLevel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PUBLIC
public static final VisibilityLevel PUBLIC
The plannable object can be visible by all.
-
PRIVATE
public static final VisibilityLevel PRIVATE
The plannable object can be only visible by the stakeholders. Nevertheless it can be shared to some other persons when done explicitly by one of the stakeholder.
-
CONFIDENTIAL
public static final VisibilityLevel CONFIDENTIAL
The plannable object can be only visible by the stakeholders and it is confidential, meaning it shouldn't be visible by no one other than the stakeholders.
-
-
Method Detail
-
values
public static VisibilityLevel[] 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 (VisibilityLevel c : VisibilityLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VisibilityLevel 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
-
-