|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.VariableArgumentApplicationLoggingImpl atg.nucleus.GenericService atg.userprofiling.ProfileServices atg.scenario.userprofiling.ScenarioProfileServices atg.commerce.profile.CommerceProfileServices
public class CommerceProfileServices
Commerce specific extensions to the ProfileServices.
Field Summary | |
---|---|
static java.lang.String |
BILLING_ADDRESS_PROPERTY_NAME
This is the name of the BasicCreditCardInfoImpl billing address property |
static java.lang.String |
CLASS_VERSION
Class version string |
static java.lang.String |
DEFAULT_CONTACT_INFO_CLASS
|
static java.lang.String |
DEFAULT_PRICINGMODELS_PATH
|
static java.lang.String |
DEFAULT_SHOPPINGCART_PATH
|
Fields inherited from class atg.nucleus.GenericService |
---|
SERVICE_INFO_KEY |
Fields inherited from interface atg.scenario.ScenarioConstants |
---|
ATTR_SCENARIO_REDIRECT, PROPERTY_REFERENCE_TARGET, PROPERTY_REFERENCE_TYPE, PROPERTY_SCENARIO_INSTANCES, PROPERTY_SLOT_INSTANCES |
Fields inherited from interface atg.process.ProcessConstants |
---|
COLLECTIVE_CLONE_PROPERTIES, DEFAULT_INITIAL_TIME_DELAY, DEFAULT_MAX_BATCH_SIZE, DEFAULT_PROCESS_FILE_EXTENSION, DEFAULT_TEMPLATE_FILE_EXTENSION, INDIVIDUAL_CLONE_PROPERTIES, INPUT_PORT_BATCH_TIMER, INPUT_PORT_COLLECTIVE_TIMER, INPUT_PORT_DISABLE_PROCESS, INPUT_PORT_GLOBAL_EVENT, INPUT_PORT_INDIVIDUAL_EVENT, INPUT_PORT_INDIVIDUAL_TIMER, INPUT_PORT_MIGRATION_UPDATE, INPUT_PORT_PROCESS_UPDATE, INPUT_PORT_SEGMENT_START_TIMER, JMS_TYPE_BATCH_TIMER, JMS_TYPE_COLLECTIVE_TIMER, JMS_TYPE_DISABLE_PROCESS, JMS_TYPE_INDIVIDUAL_TIMER, JMS_TYPE_MIGRATION_DELETE, JMS_TYPE_MIGRATION_UPDATE, JMS_TYPE_PROCESS_UPDATE, MIGRATION_STATUS_DONE, MIGRATION_STATUS_IN_PROGRESS, OUTPUT_PORT_BATCH_TIMER, OUTPUT_PORT_COLLECTIVE_TIMER, OUTPUT_PORT_INDIVIDUAL_TIMER, OUTPUT_PORT_MIGRATION_UPDATE, OUTPUT_PORT_PROCESS_UPDATE, OUTPUT_PORT_SEGMENT_START_TIMER, PROPERTY_AUTHOR, PROPERTY_COLLECTIVE_INSTANCE, PROPERTY_CONTEXT_BOOLEANS, PROPERTY_CONTEXT_DATES, PROPERTY_CONTEXT_DOUBLES, PROPERTY_CONTEXT_LONGS, PROPERTY_CONTEXT_STRINGS, PROPERTY_COUNT, PROPERTY_CREATED_BY_RECURRING_EVENT, PROPERTY_CREATION_TIME, PROPERTY_CREATOR_ID, PROPERTY_EVENT_TYPE, PROPERTY_ID, PROPERTY_LAST_MODIFIED_BY, PROPERTY_LAST_QUERY_ID, PROPERTY_MESSAGE_BEAN, PROPERTY_MIGRATION_INFO, PROPERTY_MIGRATION_INFOS, PROPERTY_MIGRATION_STATUS, PROPERTY_MODIFICATION_TIME, PROPERTY_NEW_MODIFICATION_TIME, PROPERTY_NUM_TRANSITION_RETRIES, PROPERTY_OLD_MODIFICATION_TIME, PROPERTY_PDL, PROPERTY_PROCESS_INFO, PROPERTY_PROCESS_NAME, PROPERTY_PROCESS_STATUS, PROPERTY_SEGMENT_NAME, PROPERTY_SEGMENT_NAMES, PROPERTY_SERVER_ID, PROPERTY_SERVER_TYPE, PROPERTY_STATE, PROPERTY_STATE_MACHINE_VERSION, PROPERTY_STEP, PROPERTY_SUBJECT, PROPERTY_TEMPLATE_NAME, STEP_ACTIONS_1, STEP_ACTIONS_2, STEP_NEXT_STATE_1, STEP_NEXT_STATE_2, UNDEFINED_TIMESTAMP_VALUE, WILDCARD_MATCH_ALL |
Fields inherited from interface atg.scenario.targeting.SlotConstants |
---|
PROFILE_SLOT_TYPE, PROPERTY_ID, PROPERTY_SLOT_ITEMS, PROPERTY_SLOT_NAME, PROPERTY_SLOT_OFFSET, PROPERTY_SLOT_PRIORITIES, PROPERTY_SLOT_PROFILE, TRANS_MGR |
Fields inherited from interface atg.userprofiling.ProfileServiceConstants |
---|
ADMIN_UPDATE_NULL_ELEMENT, AUTHENTICATE_HASHKEY_ATTRIBUTE, AUTHENTICATE_TIMER_ATTRIBUTE, CHANGE_PASSWORD_MISMATCH, COPY_NULL_ITEM, CREATE_EXISTING_ITEM_ID, CREATE_EXISTING_ITEM_LOGIN, CREATE_ID_PARAM, CREATE_ID_PARAM_NAME, CREATE_NULL_ITEM, DEFAULT_LOGIN_PROFILE_TYPE, DEFAULT_PROFILE_PATH, DEFAULT_PROFILE_TOOLS_PATH, DEFAULT_REQUEST_LOCALE_PATH, DEFAULT_USER_PATH, DYNAMIC_ALGORITHM_INDICATOR, DYNAMIC_ALGORITHM_METHOD, ENCRYPT_INVALID_PASS_CONVERSATION, ENCRYPT_INVALID_SESSION_ATTRS, ENCRYPT_NULL_HASHKEY, HASHKEY_PARAM, HASHKEY_PARAM_NAME, LOGIN_BAD_ARGS, LOGIN_PARAM, LOGIN_PARAM_NAME, LOGIN_PASSWORD_MISMATCH, LOGOUT_ID_PARAM, LOGOUT_ID_PARAM_NAME, MATCH_PROP_PARAM, MATCH_PROP_PARAM_NAME, NEW_PASSWORD_PARAM, NEW_PASSWORD_PARAM_NAME, NO_ALGORITHM_FOUND, NULL_CURRENT_PROFILE, NULL_PROFILE_BY_ID, NULL_PROFILE_REPOSITORY, NULL_REQUEST, NULL_REQUEST_LOCALE, NULL_REQUEST_PARAMETER, NULL_SENTINEL, OPERATION_END_PARAM, OPERATION_END_PARAM_NAME, PASSWORD_PARAM, PASSWORD_PARAM_NAME, REGISTER_BAD_ARGS, SERVICE_NO_TOOLS, UPDATE_EVENT_PARAM, UPDATE_EVENT_PARAM_NAME, UPDATE_ID_PARAM, UPDATE_ID_PARAM_NAME, UPDATE_INVALID_REP, UPDATE_NO_ARGS, UPDATE_NO_ITEM, XML_ITEM_PARAM, XML_ITEM_PARAM_NAME |
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
---|
DEFAULT_LOG_TRACE_STATUS |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
---|---|
CommerceProfileServices()
|
Method Summary | |
---|---|
void |
addProperty(java.lang.String pPropertyName,
RepositoryItem pGuestUser,
RepositoryItem pAuthenticatedUser)
If the property being added is "activePromotions", then use promotionTools to add it, otherwise call the super class. |
java.lang.String |
getBillingAddressItemType()
The item descriptor type for the billing address property |
java.lang.String |
getBillingAddressPropertyName()
The name of the profile property that setDefaultBillingAddress modifies. |
java.lang.String |
getContantInfoClass()
The class type for creating new ContactInfos This is used when creating a new BasicCreditCardInfoImpl.billingAddress for example |
java.lang.String |
getCreditCardItemType()
The item descriptor type for the credit card property |
java.lang.String |
getCreditCardPropertyName()
The name of the profile property that setDefaultCreditCard modifies. |
OrderHolder |
getCurrentShoppingCart()
Gets the shopping cart of the current thread's user |
ContactInfo |
getDefaultBillingAddress(java.lang.String pProfileId)
Get the billingAddressPropertyName from the profile |
atg.payment.creditcard.BasicCreditCardInfoImpl |
getDefaultCreditCard(java.lang.String pProfileId)
Get the creditCardPropertyName from the profile |
ContactInfo |
getDefaultShippingAddress(java.lang.String pProfileId)
Get the shippingAddressPropertyName from the profile |
java.lang.String |
getShippingAddressItemType()
The item descriptor type for the shipping address property |
java.lang.String |
getShippingAddressPropertyName()
The name of the profile property that setDefaultShippingAddress modifies |
java.lang.String |
getShoppingCartPath()
The nucleus path to the session scoped shopping cart (of type OrderHolder) |
PricingModelHolder |
getUserPricingModels()
Gets the PricingModelHolder of the current thread's user |
java.lang.String |
getUserPricingModelsPath()
The nucleus path to the session scoped user pricing models (of type PricingModelHolder) |
void |
postCreateUser(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
After registration, any transient orders are made persistent through the persistShoppingCarts method of the CommerceProfileTools component |
void |
postLoginUser(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
After logging in the user's session cached promotions are reloaded into the PricingModelHolder. |
void |
setBillingAddressItemType(java.lang.String pBillingAddressItemType)
|
void |
setBillingAddressPropertyName(java.lang.String pBillingAddressPropertyName)
|
void |
setContantInfoClass(java.lang.String pContantInfoClass)
|
void |
setCreditCardItemType(java.lang.String pCreditCardItemType)
|
void |
setCreditCardPropertyName(java.lang.String pCreditCardPropertyName)
|
java.lang.String |
setDefaultBillingAddress(java.lang.String pProfileId,
ContactInfo pAddress)
Sets the user's billingAddressPropertyName to the given address |
java.lang.String |
setDefaultCreditCard(java.lang.String pProfileId,
atg.payment.creditcard.BasicCreditCardInfoImpl pCreditCard)
Sets the user's creditCardPropertyName to the given address |
java.lang.String |
setDefaultShippingAddress(java.lang.String pProfileId,
ContactInfo pAddress)
Sets the user's shippingAddressPropertyName to the given address |
void |
setShippingAddressItemType(java.lang.String pShippingAddressItemType)
|
void |
setShippingAddressPropertyName(java.lang.String pShippingAddressPropertyName)
|
void |
setShoppingCartPath(java.lang.String pShoppingCartPath)
|
void |
setUserPricingModelsPath(java.lang.String pUserPricingModelsPath)
|
Methods inherited from class atg.scenario.userprofiling.ScenarioProfileServices |
---|
addScenarioInstances, addSlotInstances, getScenarioManager, setScenarioManager |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
public static java.lang.String DEFAULT_CONTACT_INFO_CLASS
public static java.lang.String BILLING_ADDRESS_PROPERTY_NAME
public static java.lang.String DEFAULT_SHOPPINGCART_PATH
public static java.lang.String DEFAULT_PRICINGMODELS_PATH
Constructor Detail |
---|
public CommerceProfileServices()
Method Detail |
---|
public void setShoppingCartPath(java.lang.String pShoppingCartPath)
public java.lang.String getShoppingCartPath()
public void setUserPricingModelsPath(java.lang.String pUserPricingModelsPath)
public java.lang.String getUserPricingModelsPath()
public void setShippingAddressPropertyName(java.lang.String pShippingAddressPropertyName)
public java.lang.String getShippingAddressPropertyName()
setDefaultShippingAddress
modifies
public void setShippingAddressItemType(java.lang.String pShippingAddressItemType)
public java.lang.String getShippingAddressItemType()
public void setBillingAddressPropertyName(java.lang.String pBillingAddressPropertyName)
public java.lang.String getBillingAddressPropertyName()
setDefaultBillingAddress
modifies.
public void setBillingAddressItemType(java.lang.String pBillingAddressItemType)
public java.lang.String getBillingAddressItemType()
public void setCreditCardPropertyName(java.lang.String pCreditCardPropertyName)
public java.lang.String getCreditCardPropertyName()
setDefaultCreditCard
modifies.
public void setCreditCardItemType(java.lang.String pCreditCardItemType)
public java.lang.String getCreditCardItemType()
public void setContantInfoClass(java.lang.String pContantInfoClass)
public java.lang.String getContantInfoClass()
public java.lang.String setDefaultShippingAddress(java.lang.String pProfileId, ContactInfo pAddress) throws RepositoryException
shippingAddressPropertyName
to the given address
pProfileId
- The id of the profile being changedpAddress
- The new shipping address
RepositoryException
public java.lang.String setDefaultBillingAddress(java.lang.String pProfileId, ContactInfo pAddress) throws RepositoryException
billingAddressPropertyName
to the given address
pProfileId
- The id of the profile being changedpAddress
- The new shipping address
RepositoryException
public java.lang.String setDefaultCreditCard(java.lang.String pProfileId, atg.payment.creditcard.BasicCreditCardInfoImpl pCreditCard) throws RepositoryException
creditCardPropertyName
to the given address
pProfileId
- The id of the profile being changedpCreditCard
- The new credit card
RepositoryException
public ContactInfo getDefaultShippingAddress(java.lang.String pProfileId) throws RepositoryException
shippingAddressPropertyName
from the profile
pProfileId
- The user whose address is returned
RepositoryException
public ContactInfo getDefaultBillingAddress(java.lang.String pProfileId) throws RepositoryException
billingAddressPropertyName
from the profile
pProfileId
- The user whose address is returned
RepositoryException
public atg.payment.creditcard.BasicCreditCardInfoImpl getDefaultCreditCard(java.lang.String pProfileId) throws RepositoryException
creditCardPropertyName
from the profile
pProfileId
- The user whose credit card is returned
RepositoryException
public void addProperty(java.lang.String pPropertyName, RepositoryItem pGuestUser, RepositoryItem pAuthenticatedUser) throws RepositoryException
addProperty
in class atg.scenario.userprofiling.ScenarioProfileServices
pGuestUser
- the user to copy values frompAuthenticatedUser
- the user to copy values topPropertyName
- the name of a multi-valued property whose values
will be copied from the guest user and added to the authenticated user
RepositoryException
public void postCreateUser(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException
persistShoppingCarts
method of the CommerceProfileTools component
postCreateUser
in class ProfileServices
pRequest
- the servlet's requestpResponse
- the servlet's response
javax.servlet.ServletException
- if there was an error while executing the codepublic void postLoginUser(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException
postLoginUser
in class ProfileServices
pRequest
- the servlet's requestpResponse
- the servlet's response
javax.servlet.ServletException
- if there was an error while executing the codepublic OrderHolder getCurrentShoppingCart()
public PricingModelHolder getUserPricingModels()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |