Package org.cyclos.model.users.users
Enum OperatorGroupAccountAccess
- java.lang.Object
-
- java.lang.Enum<OperatorGroupAccountAccess>
-
- org.cyclos.model.users.users.OperatorGroupAccountAccess
-
- All Implemented Interfaces:
Serializable,Comparable<OperatorGroupAccountAccess>,HasMessageKey
public enum OperatorGroupAccountAccess extends Enum<OperatorGroupAccountAccess> implements HasMessageKey
Determines how operators view payments in user accounts
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALL_PAYMENTSFull account visibilityINCOMING_PAYMENTSAll incoming and own payments are visibleNONEThe account is not visibleOUTGOING_PAYMENTSAll outgoing and own payments are visibleOWN_PAYMENTSThe operator can only see payments he/she have received or performed
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallowsIncoming()booleanallowsOutgoing()MessageKeygetMessageKey()static OperatorGroupAccountAccessvalueOf(String name)Returns the enum constant of this type with the specified name.static OperatorGroupAccountAccess[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final OperatorGroupAccountAccess NONE
The account is not visible
-
OWN_PAYMENTS
public static final OperatorGroupAccountAccess OWN_PAYMENTS
The operator can only see payments he/she have received or performed
-
INCOMING_PAYMENTS
public static final OperatorGroupAccountAccess INCOMING_PAYMENTS
All incoming and own payments are visible
-
OUTGOING_PAYMENTS
public static final OperatorGroupAccountAccess OUTGOING_PAYMENTS
All outgoing and own payments are visible
-
ALL_PAYMENTS
public static final OperatorGroupAccountAccess ALL_PAYMENTS
Full account visibility
-
-
Method Detail
-
values
public static OperatorGroupAccountAccess[] 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 (OperatorGroupAccountAccess c : OperatorGroupAccountAccess.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OperatorGroupAccountAccess 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
-
allowsIncoming
public boolean allowsIncoming()
-
allowsOutgoing
public boolean allowsOutgoing()
-
getMessageKey
public MessageKey getMessageKey()
- Specified by:
getMessageKeyin interfaceHasMessageKey
-
-