Package lumis.service.community
Enum CommunityPrivacy
- java.lang.Object
-
- java.lang.Enum<CommunityPrivacy>
-
- lumis.service.community.CommunityPrivacy
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CommunityPrivacy>
public enum CommunityPrivacy extends java.lang.Enum<CommunityPrivacy>
Types of privacy a community may be of.- Since:
- 8.0.0
- Version:
- $Revision$ $Date$
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PRIVATE
Private privacy indicates that the community cannot be found in global listings and a user can only become a member by being added by a community administrator.PUBLIC
Public privacy indicates that the community can be found in global listings and is available for anyone to become member of automatically.RESTRICTED
Restricted privacy indicates that the community can be found in global listings, but to become a member, the user must first request membership and await it to be approved by a community administrator.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CommunityPrivacy
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CommunityPrivacy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PUBLIC
public static final CommunityPrivacy PUBLIC
Public privacy indicates that the community can be found in global listings and is available for anyone to become member of automatically.- Since:
- 8.0.0
-
RESTRICTED
public static final CommunityPrivacy RESTRICTED
Restricted privacy indicates that the community can be found in global listings, but to become a member, the user must first request membership and await it to be approved by a community administrator.- Since:
- 8.0.0
-
PRIVATE
public static final CommunityPrivacy PRIVATE
Private privacy indicates that the community cannot be found in global listings and a user can only become a member by being added by a community administrator.- Since:
- 8.0.0
-
-
Method Detail
-
values
public static CommunityPrivacy[] 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 (CommunityPrivacy c : CommunityPrivacy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CommunityPrivacy valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-