public class MemberFacadeClient extends AbstractMemberFacadeClient
Modifier and Type | Field and Description |
---|---|
static java.lang.String | AUTHENTICATE_LTPA_ACTION_CODE
The authenticate action code used when authenticating a Person using a LTPA token value.
|
static java.lang.String | AUTHENTICATE_PASSWORD_ACTION_CODE
The authenticate action code used when authenticating a Person using a password.
|
static int | CONTACT_ADDRESS_BOOK
Indicate the address parameters are for an address book contact
|
static int | CONTACT_CHECKOUT_PROFILE
Indicate the address parameters are for check out profile
|
static int | CONTACT_INFO
Indicate the address parameters are for the contact information;
|
static int | CONTEXT_ATTRIBUTE_DELETE
Indicate the address parameters are for check out profile
|
static java.lang.String | COPYRIGHT
IBM Copyright notice field.
|
static java.lang.String | CREATE_ACTION_CODE
The create action code used when changing a Person or Organization
|
static java.lang.String | CREATE_GUEST_ACTION_CODE
The create guest action code used when create a guest session.
|
static java.lang.String | DELETE_ACTION_CODE
The delete action code used when changing a Person or Organization
|
protected static java.lang.String | EXPRESSION_LANGUAGE
The expression language
|
static java.lang.String | LOGOUT_ACTION_CODE
The logout action code used when ending a Person's session.
|
protected static java.lang.String | ORGANIZATION_ACTION_EXPRESSION
Action expression for Organization
|
protected static java.lang.String | ORGANIZATION_ADDRESS_ACTION_EXPRESSION
Action expression for an Organization's address book contact
|
protected static java.lang.String | ORGANIZATION_CONTEXT_ATTRIBUTE_ACTION_EXPRESSION
Action expression for an Organization's context attribute
|
protected static java.lang.String | PERSON_ACTION_EXPRESSION
Action expression for Person
|
protected static java.lang.String | PERSON_ADDRESS_ACTION_EXPRESSION
Action expression for a Person's address book contact
|
protected static java.lang.String | PERSON_CONTEXT_ATTRIBUTE_ACTION_EXPRESSION
Action expression for a Person's context attribute
|
static java.lang.String | PREVIEW_TOKEN_ACTION_CODE
The preview token action code used to request a preview token based on preview and content properties
|
static java.lang.String | REGISTER_ACTION_CODE
The register action code used when creating a new Person or Organization
|
static java.lang.String | REGISTER_WITH_CHECKOUT_PROFILE_ACTION_CODE
The register action code used when creating a new Person along with a checkout profile.
|
static java.lang.String | RESEND_EMAIL_ACTIVATION_ACTION_CODE
The resend email activation action code used when resending the activation email to a user.
|
static java.lang.String | RESET_PASSWORD_ACTION_CODE
The reset password action code used to reset a person's password
|
static java.lang.String | UPDATE_ACTION_CODE
The update action code used when changing a Person or Organization
|
static java.lang.String | UPDATE_WITH_CHECKOUT_PROFILE_ACTION_CODE
The update action code used when changing a person's profile and checkout profile
|
Constructor and Description |
---|
MemberFacadeClient()
Creates an instance of the client to communicate with the Member facade.
|
MemberFacadeClient(BusinessContextType businessContext, javax.security.auth.callback.CallbackHandler callbackHandler)
Creates an instance of the client to communicate with the Member facade.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map | addAddressForOrganization(java.util.Map parameters)
Adds an address for an existing organization.
|
java.util.Map | addAddressForPerson(java.util.Map parameters)
Adds an address for an existing person.
|
java.util.Map | authenticateLTPA(java.util.Map parameters)
This method authenticates a person using an LTPA token value.
|
java.util.Map | authenticatePassword(java.util.Map parameters)
Authenticates a person based on the following criteria: logon ID and password.
|
protected AddressType | buildAddress(java.util.Map parameters)
Builds the address portion of the contact information.
|
protected AddressBookType | buildAddressBookContact(java.util.Map parameters)
Builds an address book contact
|
protected AttributeValueType | buildAttributeValue(java.lang.String strStoreEntityId, java.util.ArrayList arrlistValues)
Builds AttributeValueType based on the input parameters
|
protected BusinessProfileType | buildBusinessProfile(java.util.Map parameters)
Builds BusinessProfileType based on the input Map
|
protected ContactInfoType | buildContactInfo(java.util.Map parameters)
Builds the ContactInfoType based on the input Map
|
protected ContactInfoExternalIdentifierType | buildContactInfoExternalIdentifier(java.util.Map parameters) |
protected ContactInfoIdentifierType | buildContactInfoIdentifier(java.util.Map parameters)
Builds ContactInfoIdentifierType
|
protected AttributeType | buildContextAttribute(java.lang.String astrAttributeName, java.util.HashMap ahshStoreIds)
Builds Context Attribute based on attribute name and a hash map with key of store Id and an array list of values
|
protected CredentialType | buildCredential(java.util.Map parameters)
Builds CredentialType based on the input Map
|
protected DescriptionType | buildDescription(java.util.Map parameters)
Builds DescriptionType based on the input Map
|
protected EmailAddressType | buildEmailAddress(java.lang.String strEmailAddress)
Builds EmailAddressType
|
protected FaxType | buildFax(java.lang.String value)
Builds the fax number
|
protected IncomeAmountType | buildIncomeAmount(java.util.Map parameters)
Builds IncomeAmountType based on the input Map
|
protected com.ibm.commerce.foundation.common.datatypes.MobilePhoneType | buildMobilePhone(java.lang.String strValue, java.lang.String strCountry)
Builds MobilePhoneType
|
protected OrganizationType | buildOrganization(java.util.Map parameters, boolean bSelfAddress)
Builds the Organization object based on the information found in the specified parameters.
|
protected OrganizationType | buildOrganization(java.util.Map amapParameters, int anType)
Builds the Organization object based on the information found in the specified parameters.
|
protected OrganizationIdentifierType | buildOrganizationIdentifier(java.util.Map parameters)
Builds the organization identifier based on the input Map
|
protected OrganizationType | buildOrganizationWithContextAttribute(java.util.Map parameters, int anType)
Builds OrganizationType which contains AttributeType based on the input Map.
|
protected OrganizationIdentifierType | buildParentOrganizationIdentifierForOrganization(java.util.Map parameters)
Builds the parent organization identifier for an organization based on the input Map
|
protected OrganizationIdentifierType | buildParentOrganizationIdentifierForPerson(java.util.Map parameters)
Builds the parent organization identifier for a person based on the input Map
|
protected PersonType | buildPerson(java.util.Map parameters, boolean bSelfAddress)
Builds the Person object based on the information found in the specified parameters.
|
protected PersonType | buildPerson(java.util.Map amapParameters, int anType)
Builds the Person object based on the information found in the specified parameters.
|
protected PersonalProfileType | buildPersonalProfile(java.util.Map parameters)
Builds PersonalProfileType based on the input Map
|
protected PersonIdentifierType | buildPersonIdentifier(java.util.Map parameters)
Builds the person identifier based on the input Map
|
protected PersonNameType | buildPersonName(java.util.Map parameters)
Builds PersonNameType
|
protected PersonType | buildPersonWithCheckoutProfile(java.util.Map parameters)
Builds the Person object and populates the checking out profile element based on found in the specified parameters.
|
protected PersonType | buildPersonWithContextAttribute(java.util.Map parameters, int anType)
Builds PersonType which contains AttributeType based on the input Map.
|
protected ReceiveEmailPreferenceType | buildReceiveEmailPreference(java.lang.String value)
Builds ReceiveEmailPreferenceType
|
protected com.ibm.commerce.member.facade.datatypes.ReceiveSMSPreferenceType | buildReceiveSMSPreference(java.lang.String value)
Builds ReceiveSMSPreferenceType
|
protected SecurityHintType | buildSecurityHint(java.util.Map parameters)
Builds SecurityHintType based on the input Map
|
protected TelephoneType | buildTelephone(java.lang.String strValue, java.lang.String strType, java.lang.String strPublish, java.lang.String strPropertyName)
Builds TelephoneType
|
protected OrganizationType | changeOrganization(java.lang.String actionCode, java.lang.String actionExpression, OrganizationType organization)
Changes an organization.
|
protected PersonType | changePerson(java.lang.String actionCode, java.lang.String actionExpression, PersonType person)
Changes a person.
|
java.util.Map | createGuest(java.util.Map parameters)
Creates an guest person session that can be used for subsequent services that required some user identity.
|
java.util.Map | createPreviewToken(java.util.Map parameters)
Generate a preview token based on the following criteria: start time, time zone ID, status (rolling/static), inventory status (0/1/-1), the list of customer segments to be included, the workspace ID, the task group ID, task ID and token life.
|
java.util.Map | deleteAddressForOrganization(java.util.Map parameters)
Deletes an address of an existing organization.
|
java.util.Map | deleteAddressForPerson(java.util.Map parameters)
Deletes an address of an existing person.
|
java.util.Map | deleteContextAttributeForOrganization(java.util.Map parameters)
Deletes one or more context attributes of an existing organization.
|
java.util.Map | deleteContextAttributeForPerson(java.util.Map parameters)
Deletes one or more context attributes of an existing person.
|
protected java.lang.String | getValue(java.lang.String strParameterName, java.util.Map parameters)
Gets the value of the specified parameter from the parameter map.
|
boolean | isPersonInMemberGroup(java.lang.String astrPersonUniqueID, java.lang.String astrMemberGroupUniqueID)
Returns true if a person belongs to a member group; false otherwise.
|
java.util.Map | logout(java.util.Map parameters)
Ends the session of the person based on the current identity token that is in the header.
|
protected void | populateContextAttributes(java.util.List alstContextAttributes, java.util.Map amapParameters)
Populates the list of context attributes based on the input parameter Map.
|
protected void | populateContextAttributes(java.util.List alstContextAttributes, java.util.Map amapParameters, int actionType)
Populates the list of context attributes based on the action type and the input parameter Map If the actionType is CONTEXT_ATTRIBUTE_DELETE, only the parameters which have the 'd' (delete) action as part of the attribute name will be populated.
|
protected void | populateOrganizationResponse(java.util.Map response, OrganizationType organization)
Puts the Organization and ContactInfo identifiers in the response Map.
|
protected void | populatePersonResponse(java.util.Map response, PersonType person)
Puts the following information in the response Map if they are available in the input PersonType: userId: /Person/PersonIdentifier/UniqueID distinguishedName: /Person/PersonIdentifier/distinguishedName addressId: /Person/ContactInfo/ContactInfoIdentifier/UniqueID nickName: /Person/ContactInfo/ContactInfoIdentifier/ExternalIdentifier/ContactInfoNickName logonId: /Person/Credential/LogonID identityTokenID, identityTokenSignature and updatedUserId: /Person/Credential/UserData/UserDataField previewToken: /Person/Credential/UserData/UserDataField
|
protected OrganizationType | processOrganization(java.lang.String actionCode, OrganizationType organization)
Processes an organization.
|
protected PersonType | processPerson(java.lang.String actionCode, PersonType person)
Processes a person.
|
java.util.Map | registerOrganization(java.util.Map parameters)
Registers a new organization.
|
java.util.Map | registerPerson(java.util.Map parameters)
Registers a new person.
|
java.util.Map | registerPersonWithCheckoutProfile(java.util.Map parameters)
Registers a new person and creates a checkout profile for that person.
|
java.util.Map | resendEmailActivation(java.util.Map parameters)
Re-sends the account activation e-mail to the user.
|
java.util.Map | resetPassword(java.util.Map parameters)
Resets a person's password.
|
java.util.Map | updateAddressForOrganization(java.util.Map parameters)
Updates an address of an existing organization.
|
java.util.Map | updateAddressForPerson(java.util.Map parameters)
Updates an address of an existing person.
|
java.util.Map | updateCheckoutProfile(java.util.Map parameters)
Updates the check out profile of the person executing this method.
|
java.util.Map | updateOrganization(java.util.Map parameters)
Updates an existing organization.
|
java.util.Map | updatePerson(java.util.Map parameters)
Updates the profile of the person executing this method.
|
java.util.Map | updatePersonWithCheckoutProfile(java.util.Map parameters)
Updates the profile and checkout profile of the person executing this method.
|
public static final java.lang.String COPYRIGHT
protected static final java.lang.String PERSON_ACTION_EXPRESSION
protected static final java.lang.String ORGANIZATION_ACTION_EXPRESSION
protected static final java.lang.String PERSON_CONTEXT_ATTRIBUTE_ACTION_EXPRESSION
protected static final java.lang.String ORGANIZATION_CONTEXT_ATTRIBUTE_ACTION_EXPRESSION
protected static final java.lang.String PERSON_ADDRESS_ACTION_EXPRESSION
protected static final java.lang.String ORGANIZATION_ADDRESS_ACTION_EXPRESSION
protected static final java.lang.String EXPRESSION_LANGUAGE
public static final java.lang.String REGISTER_ACTION_CODE
public static final java.lang.String REGISTER_WITH_CHECKOUT_PROFILE_ACTION_CODE
public static final java.lang.String RESEND_EMAIL_ACTIVATION_ACTION_CODE
public static final java.lang.String CREATE_GUEST_ACTION_CODE
public static final java.lang.String AUTHENTICATE_PASSWORD_ACTION_CODE
public static final java.lang.String LOGOUT_ACTION_CODE
public static final java.lang.String AUTHENTICATE_LTPA_ACTION_CODE
public static final java.lang.String UPDATE_ACTION_CODE
public static final java.lang.String UPDATE_WITH_CHECKOUT_PROFILE_ACTION_CODE
public static final java.lang.String CREATE_ACTION_CODE
public static final java.lang.String DELETE_ACTION_CODE
public static final java.lang.String RESET_PASSWORD_ACTION_CODE
public static final java.lang.String PREVIEW_TOKEN_ACTION_CODE
public static final int CONTACT_INFO
public static final int CONTACT_ADDRESS_BOOK
public static final int CONTACT_CHECKOUT_PROFILE
public static final int CONTEXT_ATTRIBUTE_DELETE
public MemberFacadeClient()
public MemberFacadeClient(BusinessContextType businessContext, javax.security.auth.callback.CallbackHandler callbackHandler)
public java.util.Map updatePerson(java.util.Map parameters) throws PersonException
Map parameters = new HashMap(); parameters.put("gender", new String[]{"Female"}); parameters.put("maritalStatus", new String[]{"Single"}); parameters.put("city", new String[]{"Toronto"}); parameters.put("JobFunction_" + 10001 + "_r_1", new String[]{"ProductManager"}); parameters.put("JobFunction_" + 10001 + "_r_2", new String[]{"SalesManager"}); parameters.put("JobFunction_" + "null" + "_r", new String[]{"TeamLead"}); //all stores
public java.util.Map updatePersonWithCheckoutProfile(java.util.Map parameters) throws PersonException
Map parameters = new HashMap(); parameters.put("gender", new String[]{"Female"}); parameters.put("maritalStatus", new String[]{"Single"}); parameters.put("city", new String[]{"Toronto"}); parameters.put("JobFunction_" + 10001 + "_r_1", new String[]{"ProductManager"}); parameters.put("JobFunction_" + 10001 + "_r_2", new String[]{"SalesManager"}); parameters.put("JobFunction_" + "null" + "_r", new String[]{"TeamLead"}); //all stores parameters.put("pay_cardBrand",new String[]{"ABC"}); //Checkout profile data
public boolean isPersonInMemberGroup(java.lang.String astrPersonUniqueID, java.lang.String astrMemberGroupUniqueID) throws MemberGroupException
public java.util.Map updateOrganization(java.util.Map parameters) throws OrganizationException
Map parameters = new HashMap(); parameters.put("legalId", new String[]{"TSX-01789B"}); parameters.put("city", new String[]{"Vancouver"}); parameters.put("addressType", new String[]{"ShippingAndBilling"}); parameters.put("OrgEntityOwners_" + 10001 + "_r_1", new String[]{"Lee"}); parameters.put("OrgEntityOwners_" + 10001 + "_r_2", new String[]{"Brown"}); parameters.put("OrgEntityOwners_" + "null" + "_r", new String[]{"Martin"}); //all stores
public java.util.Map addAddressForPerson(java.util.Map parameters) throws PersonException
Map parameters = new HashMap(); parameters.put("nickName", new String[]{"John"}); parameters.put("userId", new String[]{"501"}); parameters.put("city", new String[]{"Vancouver"}); parameters.put("addressType", new String[]{"ShippingAndBilling"});
public java.util.Map addAddressForOrganization(java.util.Map parameters) throws OrganizationException
Map parameters = new HashMap(); parameters.put("nickName", new String[]{"John"}); parameters.put("distinguishedName", new String[]{"o=org B,o=root organization"}); parameters.put("city", new String[]{"Vancouver"}); parameters.put("addressType", new String[]{"ShippingAndBilling"});
public java.util.Map deleteAddressForPerson(java.util.Map parameters) throws PersonException
Map parameters = new HashMap(); parameters.put("nickName", new String[]{"Uncle"}); parameters.put("distinguishedName", new String[]{"uid=jsmith,o=org a,o=root organization"});
public java.util.Map deleteAddressForOrganization(java.util.Map parameters) throws OrganizationException
Map parameters = new HashMap(); parameters.put("addressId", new String[]{"10002"});
public java.util.Map deleteContextAttributeForPerson(java.util.Map parameters) throws PersonException
Map parameters = new HashMap(); parameters.put("JobFunction_10101_d_1", new String[]{"Manager"}); Where: 10101 is the store ID. JobFunction is the name of the context attribute.
public java.util.Map deleteContextAttributeForOrganization(java.util.Map parameters) throws OrganizationException
Map parameters = new HashMap(); parameters.put("OrgEntityOwners_10101_d_1", new String[]{"John"}); Where: 10101 is the store ID. OrgEntityOwners is the name of the context attribute.
public java.util.Map updateAddressForPerson(java.util.Map parameters) throws PersonException
Map parameters = new HashMap(); parameters.put("nickName", new String[]{"Uncle"}); parameters.put("distinguishedName", new String[]{"uid=jsmith,o=org a,o=root organization"}); parameters.put("city", new String[]{"London"});
public java.util.Map updateAddressForOrganization(java.util.Map parameters) throws OrganizationException
Map parameters = new HashMap(); parameters.put("addressId", new String[]{"10002"}); parameters.put("addressType", new String[]{"ShippingAndBilling"});
protected void populatePersonResponse(java.util.Map response, PersonType person)
protected void populateOrganizationResponse(java.util.Map response, OrganizationType organization)
public java.util.Map registerPerson(java.util.Map parameters) throws PersonException
The following are mandatory parameters: logonId and logonPassword. logonPasswordVerify is not used.
The optional parameters can be found by looking at the online documentation for UserRegistrationAdd URL.
The allowed values should be specified in the expanded format rather than the abbreviated format. For example, addressType accepts the following expanded values: Shipping, Billing and ShippingAndBilling rather than S, B and SB. The mapping of abbreviated to expanded values is stored in the following file: WC_eardir/xml/config/com.ibm.commerce.member/wc-component.xml.
Code sample:
Map parameters = new HashMap(); parameters.put("logonId", new String[]{"newLogonId"}); parameters.put("logonPassword", new String[]{"myNewPass1Word"}); parameters.put("addressType", new String[]{"ShippingAndBilling"}); parameters.put("JobFunction_" + 10001 + "_r_1", new String[]{"ProductManager"}); parameters.put("JobFunction_" + 10001 + "_r_2", new String[]{"SalesManager"}); parameters.put("JobFunction_" + "null" + "_r", new String[]{"TeamLead"}); //all stores
public java.util.Map registerPersonWithCheckoutProfile(java.util.Map parameters) throws PersonException
The following are mandatory parameters: logonId and logonPassword. logonPasswordVerify is not used.
The optional parameters can be found by looking at the online documentation for "UserRegistrationAdd URL" or "OrderProfileUpdate URL".
The allowed values should be specified in the expanded format rather than the abbreviated format. For example, addressType accepts the following expanded values: Shipping, Billing and ShippingAndBilling rather than S, B and SB. The mapping of abbreviated to expanded values is stored in the following file: WC_eardir/xml/config/com.ibm.commerce.member/wc-component.xml.
Code sample:
Map parameters = new HashMap(); parameters.put("logonId", new String[]{"newLogonId"}); parameters.put("logonPassword", new String[]{"myNewPass1Word"}); parameters.put("addressType", new String[]{"ShippingAndBilling"}); parameters.put("JobFunction_" + 10001 + "_r_1", new String[]{"ProductManager"}); parameters.put("JobFunction_" + 10001 + "_r_2", new String[]{"SalesManager"}); parameters.put("JobFunction_" + "null" + "_r", new String[]{"TeamLead"}); //all stores parameters.put("pay_cardBrand",new String[]{"ABC"}); //Checkout profile data
public java.util.Map createGuest(java.util.Map parameters) throws PersonException
Performs ProcessPerson with an action of CreateGuest.
BusinessContextType businessContext = CommerceFoundationFactory.eINSTANCE.createBusinessContextType(); ContextDataType storeId = CommerceFoundationFactory.eINSTANCE.createContextDataType(); storeId.setName("storeId"); storeId.setValue("10101); businessContext.getContextData().add(storeId); MemberFacadeClient client = new MemberFacadeClient(businessContext, null); Map request = new HashMap(); Map response = client.createGuest(request); String[] userId = (String[]) response.get("userId"); String[] identityTokenId = (String[]) response.get("identityTokenID"); String[] identityTokenSignature = (String[]) response.get("identityTokenSignature"); com.ibm.commerce.foundation.common.security.auth.callback.handler.IdentityTokenCallbackHandlerImpl sessionHandler = new com.ibm.commerce.foundation.common.security.auth.callback.handler.IdentityTokenCallbackHandlerImpl( identityTokenId[0],identityTokenSignature[0]); client = new MemberFacadeClient(businessContext, sessionHandler); request = new HashMap(); request.put("userId", userId); request.put("nickName", new String[]{ "jsmith" }); request.put("city", new String[]{ "Toronto" } ); request.put("email1", new String[]{ "jsmith@email.com" }); response = client.addAddressForPerson(request);
public java.util.Map authenticatePassword(java.util.Map parameters) throws PersonException
Map parameters = new HashMap(); parameters.put("logonId", new String[]{"newLogonId"}); parameters.put("logonPassword", new String[]{"myNewPass1Word"});
public java.util.Map logout(java.util.Map parameters) throws PersonException
Performs ProcessPerson with an action of Logout. By default this service calls the following command: LogoffCmd
public java.util.Map authenticateLTPA(java.util.Map parameters) throws PersonException
Map parameters = new HashMap(); parameters.put("LTPAToken", new String[]{"abc123defg456hij"});
public java.util.Map resetPassword(java.util.Map parameters) throws PersonException
1) While unauthenticated: A registered person has forgotten his/her password, so the person cannot logon. In this scenario, they would need to provide the logonId and challengeAnswer, and then:
a) A temporary password is generated and emailed to the person.
OR
b) Two-step process: Beginning in 7.0.0.9, the CMDREG.PROPERTIES of ResetPasswordGuestCmd can be updated to include inSessionValidationCode=true to enable the following flow:
This method peforms ProcessPerson BOD with an action of ResetPassword. By default this service calls the following command: ResetPasswordCmd
public java.util.Map createPreviewToken(java.util.Map parameters) throws PersonException
Map parameters = new HashMap(); parameters.put("start", new String[]{"myStart"}); parameters.put("timeZoneId", new String[]{"myTimeZoneId"}); parameters.put("status", new String[]{"myStatus"}); parameters.put("invstatus", new String[]{"myInvstatus"}); parameters.put("includedMemberGroupIds", new String[]{"myIncludedMemberGroupIds"}); parameters.put("workspaceId", new String[]{"myWorkspaceId"}); parameters.put("taskGroupId", new String[]{"myTaskGroupId"}); parameters.put("taskId", new String[]{"myTaskId"}); parameters.put("tokenLife", new String[]{"myTokenLife"});
public java.util.Map registerOrganization(java.util.Map parameters) throws OrganizationException
Map parameters = new HashMap(); parameters.put("orgEntityName", new String[]{"newOrgName"}); parameters.put("orgEntityType", new String[]{"OrganizationUnit"}); parameters.put("addressType", new String[]{"ShippingAndBilling"}); parameters.put("OrgEntityOwners_" + 10001 + "_r_1", new String[]{"Lee"}); parameters.put("OrgEntityOwners_" + 10001 + "_r_2", new String[]{"Brown"}); parameters.put("OrgEntityOwners_" + "null" + "_r", new String[]{"Martin"}); //all stores
protected PersonType buildPerson(java.util.Map parameters, boolean bSelfAddress) throws PersonException
protected OrganizationType buildOrganization(java.util.Map parameters, boolean bSelfAddress) throws OrganizationException
protected DescriptionType buildDescription(java.util.Map parameters)
protected CredentialType buildCredential(java.util.Map parameters)
protected AttributeValueType buildAttributeValue(java.lang.String strStoreEntityId, java.util.ArrayList arrlistValues)
protected AttributeType buildContextAttribute(java.lang.String astrAttributeName, java.util.HashMap ahshStoreIds)
protected void populateContextAttributes(java.util.List alstContextAttributes, java.util.Map amapParameters)
<_mbr:ContextAttribute> <_mbr:Name>JobFunction</_mbr:Name> <_mbr:AttributeValue StoreID="10101"> <_mbr:Value>manager</_mbr:Value> <_mbr:Value>administrator</_mbr:Value> </_mbr:AttributeValue> <_mbr:AttributeValue StoreID="2"> <_mbr:Value>custodian</_mbr:Value> </_mbr:AttributeValue> </_mbr:ContextAttribute> <_mbr:ContextAttribute> <_mbr:Name>BusinessEntity</_mbr:Name> <_mbr:AttributeValue StoreID="0"> <_mbr:Value>0</_mbr:Value> </_mbr:AttributeValue> </_mbr:ContextAttribute>
protected void populateContextAttributes(java.util.List alstContextAttributes, java.util.Map amapParameters, int actionType)
<_mbr:ContextAttribute> <_mbr:Name>JobFunction</_mbr:Name> <_mbr:AttributeValue StoreID="10101"> <_mbr:Value>manager</_mbr:Value> <_mbr:Value>administrator</_mbr:Value> </_mbr:AttributeValue> <_mbr:AttributeValue StoreID="2"> <_mbr:Value>custodian</_mbr:Value> </_mbr:AttributeValue> </_mbr:ContextAttribute> <_mbr:ContextAttribute> <_mbr:Name>BusinessEntity</_mbr:Name> <_mbr:AttributeValue StoreID="0"> <_mbr:Value>0</_mbr:Value> </_mbr:AttributeValue> </_mbr:ContextAttribute>
protected IncomeAmountType buildIncomeAmount(java.util.Map parameters)
protected SecurityHintType buildSecurityHint(java.util.Map parameters)
protected PersonalProfileType buildPersonalProfile(java.util.Map parameters) throws PersonException
protected BusinessProfileType buildBusinessProfile(java.util.Map parameters)
protected OrganizationIdentifierType buildParentOrganizationIdentifierForOrganization(java.util.Map parameters)
protected PersonIdentifierType buildPersonIdentifier(java.util.Map parameters)
protected OrganizationIdentifierType buildOrganizationIdentifier(java.util.Map parameters)
protected OrganizationIdentifierType buildParentOrganizationIdentifierForPerson(java.util.Map parameters)
protected ContactInfoType buildContactInfo(java.util.Map parameters) throws AbstractBusinessObjectDocumentException
protected AddressBookType buildAddressBookContact(java.util.Map parameters) throws AbstractBusinessObjectDocumentException
protected FaxType buildFax(java.lang.String value)
protected com.ibm.commerce.foundation.common.datatypes.MobilePhoneType buildMobilePhone(java.lang.String strValue, java.lang.String strCountry)
protected ReceiveEmailPreferenceType buildReceiveEmailPreference(java.lang.String value) throws PersonException
protected com.ibm.commerce.member.facade.datatypes.ReceiveSMSPreferenceType buildReceiveSMSPreference(java.lang.String value) throws PersonException
protected EmailAddressType buildEmailAddress(java.lang.String strEmailAddress)
protected TelephoneType buildTelephone(java.lang.String strValue, java.lang.String strType, java.lang.String strPublish, java.lang.String strPropertyName) throws AbstractBusinessObjectDocumentException
protected PersonNameType buildPersonName(java.util.Map parameters)
protected ContactInfoIdentifierType buildContactInfoIdentifier(java.util.Map parameters)
protected ContactInfoExternalIdentifierType buildContactInfoExternalIdentifier(java.util.Map parameters)
protected AddressType buildAddress(java.util.Map parameters) throws AbstractBusinessObjectDocumentException
protected java.lang.String getValue(java.lang.String strParameterName, java.util.Map parameters)
protected PersonType changePerson(java.lang.String actionCode, java.lang.String actionExpression, PersonType person) throws PersonException
protected OrganizationType changeOrganization(java.lang.String actionCode, java.lang.String actionExpression, OrganizationType organization) throws OrganizationException
protected PersonType processPerson(java.lang.String actionCode, PersonType person) throws PersonException
protected OrganizationType processOrganization(java.lang.String actionCode, OrganizationType organization) throws OrganizationException
public java.util.Map updateCheckoutProfile(java.util.Map parameters) throws PersonException
Map checkoutProfileInfo = new HashMap(); checkoutProfileInfo.put("shipModeId", new String[] { "10104" }); checkoutProfileInfo.put("billing_nickName", new String[] { "Default_Billing_10101" }); checkoutProfileInfo.put("billing_address1", new String[] { "7 Elm St." }); checkoutProfileInfo.put("billing_city", new String[] { "North York" }); checkoutProfileInfo.put("billing_state", new String[] { "Ontario" }); checkoutProfileInfo.put("billing_country", new String[] { "Canada" }); checkoutProfileInfo.put("billing_zipCode", new String[] { "M6A3E1" }); checkoutProfileInfo.put("billing_lastName", new String[] { "Lee" }); checkoutProfileInfo.put("shipping_nickName", new String[] { "Default_Shipping_10101" }); checkoutProfileInfo.put("shipping_address1", new String[] { "7 Elm St." }); checkoutProfileInfo.put("shipping_city", new String[] { "Toronto" }); checkoutProfileInfo.put("shipping_state", new String[] { "Ontario" }); checkoutProfileInfo.put("shipping_country", new String[] { "Canada" }); checkoutProfileInfo.put("shipping_zipCode", new String[] { "M4M2T1" }); checkoutProfileInfo.put("shipping_lastName", new String[] { "Lee" }); checkoutProfileInfo.put("pay_cardBrand", new String[] { "Visa" }); checkoutProfileInfo.put("pay_cardNumber", new String[] { "12312345937438" }); checkoutProfileInfo.put("pay_cardExpiryMonth", new String[] { "12" }); checkoutProfileInfo.put("pay_cardExpiryYear", new String[] { "2008" }); checkoutProfileInfo.put("pay_account", new String[] { "12312345937438" }); checkoutProfileInfo.put("pay_cc_cvc", new String[] { "1234" });
protected PersonType buildPersonWithContextAttribute(java.util.Map parameters, int anType)
protected OrganizationType buildOrganizationWithContextAttribute(java.util.Map parameters, int anType)
protected PersonType buildPersonWithCheckoutProfile(java.util.Map parameters) throws PersonException
protected PersonType buildPerson(java.util.Map amapParameters, int anType) throws PersonException
protected OrganizationType buildOrganization(java.util.Map amapParameters, int anType)
public java.util.Map resendEmailActivation(java.util.Map parameters) throws PersonException
The following are mandatory parameters: logonId and logonPassword The email1 parameter is optional. Code sample:
Map parameters = new HashMap();
parameters.put("logonId", new String[]{"xxxxx"}); parameters.put("logonPassword", new String[]{"xxxxx"});