Package org.marketcetera.trade
Enum TradePermissions
- java.lang.Object
-
- java.lang.Enum<TradePermissions>
-
- org.marketcetera.trade.TradePermissions
-
- All Implemented Interfaces:
Serializable,Comparable<TradePermissions>,org.springframework.security.core.GrantedAuthority
public enum TradePermissions extends Enum<TradePermissions> implements org.springframework.security.core.GrantedAuthority
Defines trading permission names.- Since:
- $Release$
- Version:
- $Id$
- Author:
- Colin DuPlantis
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AddReportActionDeleteReportActionSendOrderActionSendSuggestionActionViewOpenOrdersActionViewPositionActionViewReportActionViewSuggestionsActionViewUserDataActionWriteUserDataAction
-
Constructor Summary
Constructors Modifier Constructor Description privateTradePermissions()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAuthority()static TradePermissionsvalueOf(String name)Returns the enum constant of this type with the specified name.static TradePermissions[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SendOrderAction
public static final TradePermissions SendOrderAction
-
SendSuggestionAction
public static final TradePermissions SendSuggestionAction
-
ViewSuggestionsAction
public static final TradePermissions ViewSuggestionsAction
-
ViewOpenOrdersAction
public static final TradePermissions ViewOpenOrdersAction
-
ViewReportAction
public static final TradePermissions ViewReportAction
-
ViewPositionAction
public static final TradePermissions ViewPositionAction
-
ViewUserDataAction
public static final TradePermissions ViewUserDataAction
-
WriteUserDataAction
public static final TradePermissions WriteUserDataAction
-
AddReportAction
public static final TradePermissions AddReportAction
-
DeleteReportAction
public static final TradePermissions DeleteReportAction
-
-
Method Detail
-
values
public static TradePermissions[] 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 (TradePermissions c : TradePermissions.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TradePermissions 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
-
getAuthority
public String getAuthority()
- Specified by:
getAuthorityin interfaceorg.springframework.security.core.GrantedAuthority
-
-