public class MarketingMetadata extends ComponentMetadata
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACTIVITY_EXPERIMENT_FORMAT_ENUMERATION
Constant for the activity experiment format value mapping
|
static java.lang.String |
ACTIVITY_FORMAT_ENUMERATION
Constant for the activity format value mapping
|
static java.lang.String |
ACTIVITY_TEMPLATE_FORMAT_ENUMERATION
Constant for the activity template format value mapping
|
static java.lang.String |
CAMPAIGN_ELEMENT_ENUMERATION
Constant for the campaign element format value mapping
|
static java.lang.String |
CATALOG_STORE_RELATIONSHIP
Catalog component store relationship path
|
static java.lang.String |
COMPONENT_NAME
Marketing component name
|
static java.lang.String |
MARKETING_CONFIG_SECTION
Constant for the configuration section in the marketing administration configuration file
|
static java.lang.String |
MARKETING_CONTENT_FORMAT_ENUMERATION
Constant for the marketing content format value mapping
|
static java.lang.String |
MARKETING_EMAIL_TEMPLATE_BODY_FORMAT_ENUMERATION
Constant for the marketing email template status body type mapping
|
static java.lang.String |
MARKETING_EMAIL_TEMPLATE_STATUS_ENUMERATION
Constant for the marketing email template status value mapping
|
static java.lang.String |
MARKETING_SPOT_SUPPORTED_TYPE_ENUMERATION
Constant for the marketing spot supported type mapping
|
static java.lang.String |
MARKETING_STATE_FORMAT_ENUMERATION
Constant for the marketing state value mapping
|
static java.lang.String |
MARKETING_STORE_RELATIONSHIP
Marketing component store relationship path
|
static java.lang.String |
PERSONALIZATION_ID_NOT_ENABLED
Constant for the personalization ID when the personalization ID feature is not enabled
|
static int |
STRING_LENGTH_1024
Constant representing the string length 1024
|
static int |
STRING_LENGTH_254
Constant representing the string length 254
|
static int |
STRING_LENGTH_256
Constant representing the string length 256
|
static int |
STRING_LENGTH_30
Constant representing the string length 30
|
static int |
STRING_LENGTH_4000
Constant representing the string length 4000
|
static int |
STRING_LENGTH_64
Constant representing the string length 64
|
Constructor and Description |
---|
MarketingMetadata() |
Modifier and Type | Method and Description |
---|---|
static java.sql.Timestamp |
adjustServerTime(java.sql.Timestamp time)
This method is called by the marketing services when it needs to check the current
time against the start and end times of an activity to determine if the activity
is currently applicable.
|
static java.sql.Timestamp |
adjustServerTime(java.sql.Timestamp time,
Activity activity)
This method is called by the marketing services when it needs to check the current
time against the start and end times of an activity to determine if the activity
is currently applicable.
|
static java.lang.String |
getContentContextWriteSchemaName()
This method gets the workspace write schema name if the service is
running under a content (workspace) context.
|
static java.lang.StringBuffer |
getContextParameters()
This method gets the parameters from the business context.
|
static java.sql.Timestamp |
getCurrentTime()
This method gets the current date and time of the executing system as a timestamp value.
|
static java.sql.Timestamp |
getCurrentTime(Activity activity)
This method gets the current date and time of the executing system as a timestamp value.
|
static DataServiceFacade |
getDataServiceFacade()
This method returns the data service facade to use for interaction with the persistence layer.
|
java.lang.String |
getEPackageName()
This method gets the marketing physical SDO EPackage name.
|
static java.lang.String |
getExpressionParameters(ActionExpression actionExpression)
This method gets the trigger parameter string from the service call expression.
|
static java.lang.Integer |
getLanguageId()
This method gets the language ID from the globalization context.
|
static java.util.Locale |
getLocale()
This method gets the locale from the globalization context.
|
static java.lang.StringBuffer |
getMemberAndStoreContextParameters()
This method gets the member ID and store ID parameters from the business context.
|
static java.lang.StringBuffer |
getPersonalizationContextParameter(java.lang.StringBuffer triggerParameters)
This method gets the personalization ID parameter from the business context.
|
static java.lang.String |
getPersonalizationId()
This method gets the personalization ID from the audit context.
|
static java.lang.Integer |
getPreviewContextInventory()
This method gets the setting of the inventory behavior in the preview context.
|
org.eclipse.emf.ecore.EClass |
getRootEClass()
This method gets the root class.
|
static java.lang.Integer |
getStoreId()
This method gets the store ID from the base context.
|
static java.sql.Timestamp |
getTimestamp()
This method gets the current date and time as a timestamp value.
|
static java.lang.Long |
getUserId()
This method gets the user ID from the base context.
|
static boolean |
invalidStringLength(java.lang.String str,
int maxLength)
This method checks if the specified string exceed the maximum length that can be stored
in the database.
|
static boolean |
isContentContext()
This method gets if the service is running under a content (workspace) context.
|
static boolean |
isPreviewContext()
This method gets if the service is running under a preview context.
|
getMetadata, getMetadataFileDirectory, getMetadataFileName, getObjectRelationMetadata
public static final int STRING_LENGTH_64
public static final int STRING_LENGTH_254
public static final int STRING_LENGTH_256
public static final int STRING_LENGTH_1024
public static final int STRING_LENGTH_30
public static final int STRING_LENGTH_4000
public static final java.lang.String COMPONENT_NAME
public static final java.lang.String MARKETING_STORE_RELATIONSHIP
public static final java.lang.String CATALOG_STORE_RELATIONSHIP
public static final java.lang.String MARKETING_CONFIG_SECTION
public static final java.lang.String PERSONALIZATION_ID_NOT_ENABLED
public static final java.lang.String ACTIVITY_FORMAT_ENUMERATION
public static final java.lang.String ACTIVITY_TEMPLATE_FORMAT_ENUMERATION
public static final java.lang.String ACTIVITY_EXPERIMENT_FORMAT_ENUMERATION
public static final java.lang.String CAMPAIGN_ELEMENT_ENUMERATION
public static final java.lang.String MARKETING_STATE_FORMAT_ENUMERATION
public static final java.lang.String MARKETING_CONTENT_FORMAT_ENUMERATION
public static final java.lang.String MARKETING_EMAIL_TEMPLATE_STATUS_ENUMERATION
public static final java.lang.String MARKETING_EMAIL_TEMPLATE_BODY_FORMAT_ENUMERATION
public static final java.lang.String MARKETING_SPOT_SUPPORTED_TYPE_ENUMERATION
public java.lang.String getEPackageName()
getEPackageName
in class ComponentMetadata
public org.eclipse.emf.ecore.EClass getRootEClass()
getRootEClass
in class ComponentMetadata
public static java.lang.StringBuffer getMemberAndStoreContextParameters()
public static java.lang.StringBuffer getPersonalizationContextParameter(java.lang.StringBuffer triggerParameters)
getPersonalizationId
in the class MarketingServicesTaskCmd
is called to allow a customization to set the appropriate personalization ID. If that
method returns null, then the personalization ID is retrieved from the business context.triggerParameters
- The trigger parameters passed in the service call. Custom
information added to the trigger parameters can be used to determine the appropriate
personalization ID.public static java.lang.StringBuffer getContextParameters()
public static java.lang.String getExpressionParameters(ActionExpression actionExpression)
actionExpression
- The action expression passed in the service call.public static java.lang.Integer getStoreId()
public static java.lang.Long getUserId()
public static java.lang.String getPersonalizationId()
public static java.util.Locale getLocale()
public static java.lang.Integer getLanguageId()
public static boolean isPreviewContext()
public static java.lang.String getContentContextWriteSchemaName()
public static boolean isContentContext()
public static java.lang.Integer getPreviewContextInventory()
public static java.sql.Timestamp getCurrentTime()
MarketingServicesTaskCmd.adjustServerTime
to
return a different time based on the store.public static java.sql.Timestamp getCurrentTime(Activity activity)
MarketingServicesTaskCmd.adjustServerTime
to
return a different time based on the store and implement
MarketingServicesTaskCmd.getTime
to
return a different time based on the activity.activity
- The marketing activity.public static java.sql.Timestamp adjustServerTime(java.sql.Timestamp time)
adjustServerTime
on the class MarketingServicesTaskCmd
.time
- The current server or preview time.public static java.sql.Timestamp adjustServerTime(java.sql.Timestamp time, Activity activity)
getTime
on the class MarketingServicesTaskCmd
if an activity is passed
into this method.
Then this method calls the method adjustServerTime
on the class MarketingServicesTaskCmd
.time
- The current server or preview time.activity
- The marketing activity.public static java.sql.Timestamp getTimestamp()
public static DataServiceFacade getDataServiceFacade()
public static boolean invalidStringLength(java.lang.String str, int maxLength)
str
- The string to check.maxLength
- The maximum length of the string specified in the number of bytes.