|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectatg.nucleus.logging.VariableArgumentApplicationLoggingImpl
atg.nucleus.GenericService
atg.userprofiling.ProfileTools
atg.svc.agent.customer.CustomerProfileTools
public class CustomerProfileTools
This class contains custom API for manipulating the active customer profile in agent applications. It extends ProfileTools in order that its methods could be extended for custom behavior without affecting the standard DPS ProfileTools, which customers may have already extended.
Since the Service framework cannot extend the DPS ProfileTools directly without possibly removing customer extensions, this class provides a place to put Service required extensions to ProfileTools behavior.
As a general practice, the DPS ProfileTools should always be used and this class component used only for custom api needed by the agent applications where we want to ensure that customer extensions in DPS ProfileTools are not included.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
protected EnvironmentTools |
mEnvironmentTools
|
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 | |
---|---|
CustomerProfileTools()
|
Method Summary | |
---|---|
EnvironmentTools |
getEnvironmentTools()
|
void |
populateActiveCustomerProfileFromAddress(atg.core.util.Address pAddress)
Populates the active customer profile from the information captured in the address. |
void |
populateCustomerProfileFromAddress(atg.repository.RepositoryItem pProfile,
atg.core.util.Address pAddress)
Populates the profile from the information captured in the address. |
boolean |
setActiveCustomerProfileName(java.lang.String pFirstName,
java.lang.String pMiddleName,
java.lang.String pLastName)
Sets the first, middle and last name on the active customer profile. |
boolean |
setCustomerProfileName(atg.repository.RepositoryItem pProfile,
java.lang.String pFirstName,
java.lang.String pMiddleName,
java.lang.String pLastName)
Sets the first, middle and last name on the given customer profile. |
void |
setEnvironmentTools(EnvironmentTools pEnvironmentTools)
Sets the EnvironmentTools |
Methods inherited from class atg.userprofiling.ProfileTools |
---|
addMultiPropertyValues, assumeSecurityIdentity, assumeSecurityIdentity, buildPropertyUpdatesForDictionary, buildPropertyUpdatesForRepositoryFormList, buildPropertyUpdatesForRepositoryFormMap, buildUpdateMessage, buildUpdateMessage, changePassword, changePassword, convertNewValueToString, convertOldValueToString, convertPropertyUpdateValueToString, createNewUser, createNewUser, createPropertyUpdate, doStartService, formatMultiValueUpdateString, generateEmailQuery, generateLoginQuery, generateNameQuery, generateNewPasswordForProfile, getAutoLogin, getCookieManager, getDefaultProfileType, getGroupContainer, getIllegalPasswordChecker, getItem, getItem, getItemFromEmail, getItemFromEmail, getItems, getItems, getItemsFromEmail, getItemsFromEmail, getLoggingIdentifier, getLogin, getLoginUserAuthority, getMutableItem, getPassword, getPasswordGenerationTriesLimit, getPasswordGenerator, getPasswordRuleChecker, getPreviousNPasswordManager, getProfileEventTrigger, getProfileItemFinder, getProfileRepository, getPropertyManager, getSecurityStatus, getUserLoginManager, isAutoLoginSecurityStatus, isEnableSecurityStatus, isValidCredentials, isValidCredentials, isValidCredentials, isValidCredentials, isValidCredentialsEncrypted, locateUserFromEmail, locateUserFromEmail, locateUserFromId, locateUserFromId, locateUserFromLogin, locateUserFromLogin, locateUserFromLogin, locateUserFromLogin, main, passwordSaltForLogin, prefixPropertyNames, propagateLocale, revokeSecurityIdentity, revokeSecurityIdentity, sendEmailToUser, setAutoLoginSecurityStatus, setCookieManager, setDefaultProfileType, setEnableSecurityStatus, setGroupContainer, setIllegalPasswordChecker, setLoginSecurityStatus, setLoginUserAuthority, setPasswordGenerationTriesLimit, setPasswordGenerator, setPasswordRuleChecker, setPreviousNPasswordManager, setProfileEventTrigger, setProfileItemFinder, setProfileRepository, setPropertyManager, setSecurityStatus, setUserLoginManager, shouldSendProfileCookies, toString, updateProperties, updateProperty |
Methods inherited from class atg.nucleus.GenericService |
---|
addLogListener, createAdminServlet, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService |
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, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
protected EnvironmentTools mEnvironmentTools
Constructor Detail |
---|
public CustomerProfileTools()
Method Detail |
---|
public void setEnvironmentTools(EnvironmentTools pEnvironmentTools)
pEnvironmentTools
- the EnvironmentTools in Servicepublic EnvironmentTools getEnvironmentTools()
public void populateActiveCustomerProfileFromAddress(atg.core.util.Address pAddress)
This implementation copies the first name, middle name and last name from the address to the profile. This copy happens only if the profile is transient and the values have not already been set in the profile.
pAddress
- the address from which to populate
atg.repository.RepositoryException
public void populateCustomerProfileFromAddress(atg.repository.RepositoryItem pProfile, atg.core.util.Address pAddress)
This implementation copies the first name, middle name and last name from the address to the profile. This copy happens only if the profile is transient and the values have not already been set in the profile.
pProfile
- the customer profile to updatepAddress
- the address from which to populate
atg.repository.RepositoryException
public boolean setActiveCustomerProfileName(java.lang.String pFirstName, java.lang.String pMiddleName, java.lang.String pLastName) throws atg.repository.RepositoryException
pFirstName
- the first name to set on the active customer profilepMiddleName
- the middle name to set on the active customer profilepLastName
- the last name to set on the active customer profile
atg.repository.RepositoryException
public boolean setCustomerProfileName(atg.repository.RepositoryItem pProfile, java.lang.String pFirstName, java.lang.String pMiddleName, java.lang.String pLastName) throws atg.repository.RepositoryException
pProfile
- the customer profile to updatepFirstName
- the first name to set on the customer profilepMiddleName
- the middle name to set on the customer profilepLastName
- the last name to set on the customer profile
atg.repository.RepositoryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |