Enum TrackableBehavior
- java.lang.Object
-
- java.lang.Enum<TrackableBehavior>
-
- com.broadleafcommerce.data.tracking.core.TrackableBehavior
-
- All Implemented Interfaces:
Serializable
,Comparable<TrackableBehavior>
public enum TrackableBehavior extends Enum<TrackableBehavior>
Describes the persistence behavior for an entity annotated withTrackableExtension
.- SANDBOX - Will persist user changes to a sandbox and participate in promotion and deploy workflows
- CATALOG - Will persist user changes to a catalog and discriminate reads based on the context of the request. CATALOG discriminated entities also participate in propagation where field-level changes trickle down to subordinate catalogs.
- APPLICATION - Will persist user changes to an application and discriminate reads based on the context of the request.
- TENANT - Will persist user changes to a tenant and discriminate reads based on the context of the request.
- CUSTOMER_CONTEXT - Discriminate reads based on the customer context ID of the request.
- Author:
- Jeff Fischer
-
-
Enum Constant Summary
Enum Constants Enum Constant Description APPLICATION
CATALOG
CUSTOMER_CONTEXT
SANDBOX
TENANT
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TrackableBehavior
valueOf(String name)
Returns the enum constant of this type with the specified name.static TrackableBehavior[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SANDBOX
public static final TrackableBehavior SANDBOX
-
CATALOG
public static final TrackableBehavior CATALOG
-
APPLICATION
public static final TrackableBehavior APPLICATION
-
TENANT
public static final TrackableBehavior TENANT
-
CUSTOMER_CONTEXT
public static final TrackableBehavior CUSTOMER_CONTEXT
-
-
Method Detail
-
values
public static TrackableBehavior[] 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 (TrackableBehavior c : TrackableBehavior.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TrackableBehavior 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
-
-