Package org.cyclos.impl.users
Enum GroupList
- java.lang.Object
-
- java.lang.Enum<GroupList>
-
- org.cyclos.impl.users.GroupList
-
- All Implemented Interfaces:
Serializable,Comparable<GroupList>
public enum GroupList extends Enum<GroupList>
List of groups used to get aGroupListViewFactoryImplfrom theGroupsHandlerinterface
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCESSIBLEThe list with the accessible groups configured in the product For guests it returnsGuestSessionData.getAccessibleBasicGroups()(check its implementation for the included groups) Administrators only have this group list, i.e for such users, all other lists resolve to the this one.ADSThe list with the groups a user can search advertisements of other users on.DIRECTORYThe list with the groups a user can view other users on the directory map.MENUThe list with the groups a user can search other users when searching from the search users menu.USERSThe list with the groups a user can search other users on.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GroupListvalueOf(String name)Returns the enum constant of this type with the specified name.static GroupList[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACCESSIBLE
public static final GroupList ACCESSIBLE
The list with the accessible groups configured in the product For guests it returnsGuestSessionData.getAccessibleBasicGroups()(check its implementation for the included groups) Administrators only have this group list, i.e for such users, all other lists resolve to the this one.
-
ADS
public static final GroupList ADS
The list with the groups a user can search advertisements of other users on. For logged users it resolves to theACCESSIBLElist. Otherwise (guests) to theConfigurationAccessor.getVisibleAdGroups()list.
-
USERS
public static final GroupList USERS
The list with the groups a user can search other users on. Only used to search for other members.
For guests it resolves to theConfigurationAccessor.getGroupsForUserSearch()list.
-
DIRECTORY
public static final GroupList DIRECTORY
The list with the groups a user can view other users on the directory map. Only used to search for other members.
For guests it resolves to theConfigurationAccessor.getGroupsForUserDirectory()list.
-
MENU
public static final GroupList MENU
The list with the groups a user can search other users when searching from the search users menu. Only used to search for other members.
This setting is in the configuration not in the product as for the other cases.
-
-
Method Detail
-
values
public static GroupList[] 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 (GroupList c : GroupList.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GroupList 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
-
-