|
|||||||||
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.ProfileTools atg.commerce.profile.CommerceProfileTools atg.b2bcommerce.profile.B2BCommerceProfileTools
public class B2BCommerceProfileTools
This set of utilities provide additional profile functionality as required by Dynamo Commerce Server (DCS). The functions include creating and editing primary and secondary addresses as well as credit card information for a customer.
ProfileTools
,
CommercePropertyManager
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Fields inherited from class atg.commerce.profile.CommerceProfileTools |
---|
CREDIT_CARD_PROPERTIES, LOCK_NAME_ATTRIBUTE_NAME, mProfilePath, mShoppingCartPath, mUserPricingModelsPath, NO_CREDIT_CARD, ONE, TWO, ZERO |
Fields inherited from class atg.userprofiling.ProfileTools |
---|
DPS_VERSION, DPS_VERSION_NUM, mPasswordGenerator, mPasswordRuleChecker, mPreviousNPasswordManager |
Fields inherited from class atg.nucleus.GenericService |
---|
SERVICE_INFO_KEY |
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 | |
---|---|
B2BCommerceProfileTools()
Constructs an B2BCommerceProfileTools object. |
Method Summary | |
---|---|
void |
addCostCenterToUsersList(RepositoryItem pProfile,
RepositoryItem pCostCenter)
Adds the new cost center to the users profile. |
java.lang.String |
createCostCenter(RepositoryItem pProfile,
java.lang.String pCostCenterIdentifier,
java.lang.String pDescription,
boolean isDefault)
Creates a new cost center in the user's Profile under the costCenter attribute. |
java.lang.String |
editCostCenter(RepositoryItem pProfile,
java.lang.String pCostCenterIdentifier,
java.lang.String pNewDescription,
boolean isDefault)
Changes the properties of a cost center in the user's Profile under the costCenter attribute. |
RepositoryItem |
getCostCenterByIdentifier(java.lang.String pCostCenterIdentifier,
RepositoryItem pProfile)
Retrieves cost center by identifier and profile. |
java.util.List |
getUsersCostCenterList(RepositoryItem pProfile)
Retrieves list of cost centers for a given profile. |
void |
removeAllCostCenters(RepositoryItem pProfile)
Removes all cost center entries from the users Profile. |
void |
removeCostCenter(RepositoryItem pProfile,
RepositoryItem pCostCenter)
Removes the cost center entry from the users Profile. |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, 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, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public B2BCommerceProfileTools()
Method Detail |
---|
public java.util.List getUsersCostCenterList(RepositoryItem pProfile)
pProfile
- the customer profile.
public java.lang.String createCostCenter(RepositoryItem pProfile, java.lang.String pCostCenterIdentifier, java.lang.String pDescription, boolean isDefault) throws RepositoryException
pProfile
- the customer profile.pCostCenterIdentifier
- The name of the new cost center.pDescription
- A description of the cost center.
RepositoryException
- if there was an error when creating the new repository item.public void addCostCenterToUsersList(RepositoryItem pProfile, RepositoryItem pCostCenter)
pProfile
- the customer profile.pCostCenter
- the cost center.public java.lang.String editCostCenter(RepositoryItem pProfile, java.lang.String pCostCenterIdentifier, java.lang.String pNewDescription, boolean isDefault) throws RepositoryException
pProfile
- the customer profile.pCostCenterOldIdentifier
- The old name of the cost center.pCostCenterNewIdentifier
- The new name of the cost center.pNewDescription
- A new description of the cost center.
RepositoryException
- if there was an error when creating the new repository item.public void removeCostCenter(RepositoryItem pProfile, RepositoryItem pCostCenter) throws RepositoryException
pProfile
- profile from which the cost center will be removedpCostCenter
- the cost center that will be removed
RepositoryException
- if there was an error when removing the repository item.public void removeAllCostCenters(RepositoryItem pProfile) throws RepositoryException
pProfile
- profile from which the cost center will be removed
RepositoryException
- if there was an error when removing the repository item.public RepositoryItem getCostCenterByIdentifier(java.lang.String pCostCenterIdentifier, RepositoryItem pProfile)
pCostCenterIdentifier
- the cost center identifier.pProfile
- the customer profile.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |