public class User extends GeneratedUser
If you like to login a user you have to different ways. The first one is to transfer the session, the second one is to create a new session for the user. The example assumes you are working in a jsp.
<code>
String login = request.getParameter( "login" );
String passwd = request.getParameter( "password" ); //you may encrypt the password by using ssl. However the password will be delivered in plain text. Properties props = new Properties(); //a HashMap is fine as well prop.put( JaloSession.LoginProperties.LOGIN, login ); prop.put( JaloSession.LoginProperties.PASSWORD, passwd ); prop.put( JaloSession.LoginProperties.SESSION_TYPE, JaloSession.LoginProperties.SessionTypes.CUSTOMER ); getJaloSession().getConnection().transferSession( getJaloSession(), prop ); // transfer the current session to the given user. getJaloSession().getConnection().createSession(prop); //creates a new session for the given user.
</code>
GenericItem.GenericItemImplLocalizableItem.LocalizableItemImplExtensibleItem.ExtensibleItemImplItem.AttributeFilter, Item.AttributeMode, Item.CachedGetter, Item.CachedSetter, Item.ItemAttributeMap, Item.ItemConstraint, Item.ItemImpl, Item.JaloCachedComputationException| Modifier and Type | Field and Description |
|---|---|
static String |
CURRENT_DATE
Deprecated.
it is a dynamic attribute now
|
static String |
CURRENT_TIME
Deprecated.
it is a dynamic attribute now
|
static String |
DEFAULT_PAYMENT_ADDRESS
Deprecated.
Use
GeneratedUser.DEFAULTPAYMENTADDRESS instead |
static String |
DEFAULT_SHIPPING_ADDRESS
Deprecated.
Use
GeneratedUser.DEFAULTSHIPMENTADDRESS instead |
static String |
LAST_LOGIN
Deprecated.
Use
GeneratedUser.LASTLOGIN instead |
static String |
LOGIN_DISABLED
Deprecated.
Use
GeneratedUser.LOGINDISABLED instead |
static String |
PASSWORD
Deprecated.
it is a dynamic attribute now
|
static String |
PASSWORD_ANSWER
Deprecated.
Use
GeneratedUser.PASSWORDANSWER instead |
static String |
PASSWORD_QUESTION
Deprecated.
Use
GeneratedUser.PASSWORDQUESTION instead |
static String |
PAYMENT_MODES
Constant identifier for
paymentModes attribute of User type. |
static String |
SESSION_CURRENCY
Deprecated.
Use
SESSION_CURRENCY instead |
static String |
SESSION_LANGUAGE
Deprecated.
Use
GeneratedUser.SESSIONLANGUAGE instead |
static String |
USER_AUDIT_ENABLED |
ADDRESSES, ADDRESSESHANDLER, CARTS, CARTSHANDLER, CONTACTINFOS, CONTACTINFOSHANDLER, DEFAULT_INITIAL_ATTRIBUTES, DEFAULTPAYMENTADDRESS, DEFAULTSHIPMENTADDRESS, ENCODEDPASSWORD, HMCLOGINDISABLED, LASTLOGIN, LOGINDISABLED, ORDERS, ORDERSHANDLER, PASSWORDANSWER, PASSWORDENCODING, PASSWORDQUESTION, PAYMENTINFOS, PAYMENTINFOSHANDLER, QUOTES, QUOTESHANDLER, SESSIONCURRENCY, SESSIONLANGUAGE, USERPROFILEALLGROUPS, ALLSEARCHRESTRICTIONS, DISPLAYNAME, PRINCIPAL_GROUP_RELATION_NAMEDESCRIPTION, GROUPS, NAME, PRINCIPALGROUPRELATION_MARKMODIFIED, PRINCIPALGROUPRELATION_SRC_ORDERED, PRINCIPALGROUPRELATION_TGT_ORDERED, SEARCHRESTRICTIONS, SEARCHRESTRICTIONSHANDLER, UIDLANGUAGE_FALLBACK_ENABLED_CREATION_TIME_INTERNAL, _MODIFIED_TIME_INTERNAL, accessorLog, CREATION_TIME, DISABLE_ATTRIBUTE_CHECK, DISABLE_ITEMCHECK_BEFORE_REMOVABLE, EVEN, FEATURE_ACCESSMAP_QUALIFIER, INITIAL_CREATION_FLAG, isJaloOnly, MODIFIED_TIME, NEGATIVE, NOT_FOUND, OWNER, PK, POSITIVE, SAVE_FROM_SERVICE_LAYER, staticTransientObjects, TYPEimpl, tenant| Constructor and Description |
|---|
User() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
auditUserPasswordChange(String oldEncodedPassword,
String oldPasswordEncoding) |
boolean |
checkPassword(LoginToken token)
Deprecated.
|
boolean |
checkPassword(SessionContext ctx,
String plainPassword)
Deprecated.
|
boolean |
checkPassword(String plainPassword)
Deprecated.
|
protected List<PasswordPolicyViolation> |
checkPasswordPolicies(String password,
String encoding) |
protected void |
checkRemovable(SessionContext ctx)
Deprecated.
|
void |
checkSystemPrincipal()
Deprecated.
|
Address |
createAddress()
Deprecated.
|
Address |
createAddress(Map fields)
Deprecated.
|
Address |
createAddress(PK pk)
Deprecated.
|
Address |
createAddress(PK pk,
Map fields)
Deprecated.
|
Address |
createAddress(PK pk,
SessionContext ctx)
Deprecated.
|
Address |
createAddress(PK pk,
SessionContext ctx,
Map fields)
Deprecated.
|
Address |
createAddress(SessionContext ctx)
Deprecated.
|
Address |
createAddress(SessionContext ctx,
Map fields)
Deprecated.
|
protected Item |
createItem(SessionContext ctx,
ComposedType type,
Item.ItemAttributeMap allAttributes)
Has to be implemented for each concrete subtype of item.
|
PaymentInfo |
createPaymentInfo(SessionContext ctx,
String code)
Deprecated.
use
de.hybris.platform.order.PaymentInfoService#createPaymentInfoForUser(UserModel, String) |
PaymentInfo |
createPaymentInfo(String code)
Deprecated.
use
de.hybris.platform.order.PaymentInfoService#createPaymentInfoForUser(UserModel, String) |
Collection |
getAllAddresses()
Deprecated.
use
GeneratedUser.getAddresses() instead |
Map<Language,String> |
getAllDisplayName(SessionContext ctx)
Deprecated.
|
Cart |
getCart(String code)
The
Cart with code. |
Date |
getCurrentDate()
Deprecated.
|
Date |
getCurrentDate(SessionContext ctx)
Deprecated.
|
protected Date |
getCurrentDateOldStyle() |
Date |
getCurrentTime()
Deprecated.
|
Date |
getCurrentTime(SessionContext ctx)
Deprecated.
|
Address |
getDefaultDeliveryAddress()
Gets the default shipment address of this user.
|
Address |
getDefaultDeliveryAddress(SessionContext ctx)
Gets the default shipment address of this user.
|
Address |
getDefaultShippingAddress()
Deprecated.
please use
getDefaultDeliveryAddress() instead |
Address |
getDefaultShippingAddress(SessionContext ctx)
Deprecated.
please use
getDefaultDeliveryAddress(SessionContext) instead |
String |
getDisplayName(SessionContext ctx)
Deprecated.
|
protected PasswordEncoder |
getEncoder(String encoding) |
String |
getLogin()
Deprecated.
|
String |
getLogin(SessionContext ctx)
Deprecated.
|
String |
getPassword()
Deprecated.
it is recommended to use
GeneratedUser.getEncodedPassword() instead, cause it can lead to problems in case
of hashed passwords (e.g md5). This is now a dynamic attribute with read set to false. |
String |
getPassword(SessionContext ctx)
Deprecated.
it is recommended to use
GeneratedUser.getEncodedPassword(SessionContext) instead, cause it can lead to
problems in case of hashed passwords (e.g md5). This is now a dynamic attribute with read set to
false. |
protected String |
getRealEncoding(String optionalEncoding) |
boolean |
isAdmin()
Deprecated.
|
boolean |
isAdminEmployee()
Deprecated.
|
boolean |
isAnonymousCustomer()
Deprecated.
|
Cart |
saveCurrentCart(SessionContext ctx,
String code)
Deprecated.
use
de.hybris.platform.order.CartService#clone(ComposedTypeModel, ComposedTypeModel, AbstractOrderModel, String) |
Cart |
saveCurrentCart(String code)
Deprecated.
use
de.hybris.platform.order.CartService#clone(ComposedTypeModel, ComposedTypeModel, AbstractOrderModel, String) |
void |
setDefaultDeliveryAddress(Address adr)
Sets an address as default shipment address for this user.
|
void |
setDefaultDeliveryAddress(SessionContext ctx,
Address adr)
Sets an address as default shipment address for this user.
|
void |
setDefaultShippingAddress(Address adr)
Deprecated.
please use
setDefaultDeliveryAddress(Address) instead |
void |
setDefaultShippingAddress(SessionContext ctx,
Address adr)
Deprecated.
please use
setDefaultDeliveryAddress(SessionContext, Address) instead |
void |
setEncodedPassword(SessionContext ctx,
String password)
Changes decoded form of the password of this user.
|
void |
setEncodedPassword(SessionContext ctx,
String password,
String encoding)
Deprecated.
|
void |
setEncodedPassword(String password)
Changes decoded form of the password of this user.
|
void |
setEncodedPassword(String password,
String encoding)
Deprecated.
|
void |
setLogin(SessionContext ctx,
String login)
Deprecated.
|
void |
setLogin(String login)
Deprecated.
|
void |
setLoginDisabled(SessionContext ctx,
Boolean disabled)
Changes login-disabled status for this user.
|
void |
setPassword(SessionContext ctx,
String password)
Deprecated.
|
void |
setPassword(SessionContext ctx,
String newPassword,
String encoding)
Deprecated.
|
void |
setPassword(String password)
Deprecated.
|
void |
setPassword(String password,
String encoding)
Deprecated.
|
void |
setUid(SessionContext ctx,
String value)
Generated method - Setter of the
Principal.uid attribute. |
addToAddresses, addToAddresses, addToCarts, addToCarts, addToContactInfos, addToContactInfos, addToOrders, addToOrders, addToPaymentInfos, addToPaymentInfos, addToQuotes, addToQuotes, getAddresses, getAddresses, getCarts, getCarts, getContactInfos, getContactInfos, getDefaultAttributeModes, getDefaultPaymentAddress, getDefaultPaymentAddress, getDefaultShipmentAddress, getDefaultShipmentAddress, getEncodedPassword, getEncodedPassword, getLastLogin, getLastLogin, getOrders, getOrders, getPasswordAnswer, getPasswordAnswer, getPasswordEncoding, getPasswordEncoding, getPasswordQuestion, getPasswordQuestion, getPaymentInfos, getPaymentInfos, getQuotes, getQuotes, getSessionCurrency, getSessionCurrency, getSessionLanguage, getSessionLanguage, getUserprofile, getUserprofile, isHmcLoginDisabled, isHmcLoginDisabled, isHmcLoginDisabledAsPrimitive, isHmcLoginDisabledAsPrimitive, isLoginDisabled, isLoginDisabled, isLoginDisabledAsPrimitive, isLoginDisabledAsPrimitive, removeFromAddresses, removeFromAddresses, removeFromCarts, removeFromCarts, removeFromContactInfos, removeFromContactInfos, removeFromOrders, removeFromOrders, removeFromPaymentInfos, removeFromPaymentInfos, removeFromQuotes, removeFromQuotes, setAddresses, setAddresses, setCarts, setCarts, setContactInfos, setContactInfos, setDefaultPaymentAddress, setDefaultPaymentAddress, setDefaultShipmentAddress, setDefaultShipmentAddress, setHmcLoginDisabled, setHmcLoginDisabled, setHmcLoginDisabled, setHmcLoginDisabled, setLastLogin, setLastLogin, setLoginDisabled, setLoginDisabled, setLoginDisabled, setOrders, setOrders, setPasswordAnswer, setPasswordAnswer, setPasswordEncoding, setPasswordEncoding, setPasswordQuestion, setPasswordQuestion, setPaymentInfos, setPaymentInfos, setQuotes, setQuotes, setSessionCurrency, setSessionCurrency, setSessionLanguage, setSessionLanguage, setUserprofile, setUserprofileaddGlobalNegativePermission, addGlobalPermission, addGlobalPermissions, addGlobalPositivePermission, addToGroup, checkConsistencyUid, checkGlobalPermission, checkOwnGlobalPermission, clearGlobalPermission, clearGlobalPermissions, getAllDisplayName, getAllGlobalNegativePermissions, getAllGlobalPositivePermissions, getAllGroups, getAllGroups, getAllSearchRestrictions, getAllSearchRestrictions, getDisplayName, getGlobalNegativePermissions, getGlobalPermissions, getGlobalPositivePermissions, getGroups, getItemPermissionsMap, getUID, getUid, isMemberOf, isMemberOf, remove, removeFromGroup, setGroups, setItemPermissionsByMap, setUID, toStringaddToGroups, addToGroups, getDescription, getDescription, getGroups, getGroupsCount, getGroupsCount, getName, getName, getSearchRestrictions, getSearchRestrictions, getUid, removeFromGroups, removeFromGroups, setDescription, setDescription, setGroups, setName, setName, setUidgetInitialProperties, getNonInitialAttributesgetAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllValuesSessionContext, getLocalizedProperty, getLocalizedProperty, getLocalizedPropertyInternal, getLocalizedPropertyNames, getLocalizedPropertyNames, hasLanguage, isEmptyValue, isFallbackEnabled, removeLocalizedProperty, removeLocalizedProperty, setAllLocalizedProperties, setAllLocalizedProperties, setLocalizedProperty, setLocalizedPropertycreateNonClassAccessor, getAllProperties, getAllProperties, getProperty, getProperty, getPropertyNames, getPropertyNames, removeProperty, removeProperty, setAllProperties, setAllProperties, setProperty, setPropertyaddLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addNegativePermission, addPermission, addPositivePermission, assureExtensionsLoaded, changeTypeAfterCreation, checkConstraint, checkItemPermission, checkMandatoryAttribute, checkMandatoryAttribute, checkPermission, checkPermission, clearPermission, compareTo, ctx, doAfterRemove, doBeforeRemove, equals, getAccessorFor, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributesInternal, getAllLinkedItems, getAndCheckCacheBoundItem, getAttribute, getAttribute, getCacheBoundItem, getComposedType, getComposedTypePK, getCreationTime, getCurrentlyRemovingCount, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItemsCount, getLinkedItemsCount, getLinkedItemsCount, getModificationTime, getNegativePermissions, getOwner, getPermissionMap, getPermissions, getPersistenceVersion, getPK, getPositivePermissions, getRestrictedPrincipals, getSession, getSyncObject, getTenant, getTransientObject, getTransientObjectMap, hashCode, hasRegisteredClassAccessorFor, internal_registerClassAccessorFor, internal_registerNonClassAccessorFor, invalidateLocalCaches, isAlive, isCacheBound, isCurrentlyRemoving, isCurrentlyRemoving, isEmptyRelationValue, isInCreate, isInstanceOf, isItemCheckBeforeRemoveableDisabled, isRelationLocalizationFallbackEnabled, newInstance, notifyExtensionsAfterItemCreation, notifyExtensionsBeforeItemCreation, notifyItemRemoval, readResolve, refreshRemote, registerAccessFor, registerAccessFor, registerJaloInvalidationListeners, remove, removeItemCollection, removeItemCollection, removeLinkedItems, removeLinkedItems, removeLinkedItems, removeLinkedItems, removeLinks, removePartOfItems, removePartOfItems, setAllAttributes, setAllAttributes, setAllAttributesInternal, setAllLinkedItems, setAllLinkedItems, setAllLinkedItems, setAllLinkedItems, setAttribute, setAttribute, setAttributeFromString, setAttributeFromString, setCacheBound, setComposedType, setCreationTime, setImplementation, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setModificationTime, setNonInitialAttributes, setOwner, setPermissionsByMap, setTransientObject, setUseTA, useTA, writeReplacegetImplementation, setTenantpublic static final String USER_AUDIT_ENABLED
@Deprecated public static final String DEFAULT_PAYMENT_ADDRESS
GeneratedUser.DEFAULTPAYMENTADDRESS insteaddefaultPaymentAddress attribute of User type.@Deprecated public static final String DEFAULT_SHIPPING_ADDRESS
GeneratedUser.DEFAULTSHIPMENTADDRESS insteaddefaultShipmentAddress attribute of User type.@Deprecated public static final String PASSWORD_QUESTION
GeneratedUser.PASSWORDQUESTION insteadpasswordQuestion attribute of User type.@Deprecated public static final String PASSWORD_ANSWER
GeneratedUser.PASSWORDANSWER insteadpasswordAnswer attribute of User type.public static final String PAYMENT_MODES
paymentModes attribute of User type.@Deprecated public static final String SESSION_LANGUAGE
GeneratedUser.SESSIONLANGUAGE insteadsessionLanguage attribute of User type.@Deprecated public static final String SESSION_CURRENCY
SESSION_CURRENCY insteadsessionCurrency attribute of User type.@Deprecated public static final String LOGIN_DISABLED
GeneratedUser.LOGINDISABLED insteadloginDisabled attribute of User type.@Deprecated public static final String LAST_LOGIN
GeneratedUser.LASTLOGIN insteadlastLogin attribute of User type.@Deprecated public static final String CURRENT_TIME
currentTime attribute of User type.@Deprecated public static final String CURRENT_DATE
currentDate attribute of User type.@Deprecated public static final String PASSWORD
password attribute of User type.protected Item createItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes) throws JaloBusinessException
ItemComposedType.newInstance(Map).
In case this method uses any of the attribute values during creation it is required to override
Item.getNonInitialAttributes(SessionContext, ItemAttributeMap) too.
Sn example:
public static final String MY_ATTRIBUTE = "someAttribute"; ... protected Item createItem(SessionContext
ctx, ComposedType type, Map allAttributes ) throws JaloBusinessException { MyManager man = ... return
man.createMyItem( (String)allAttributes.get(MY_ATTRIBUTE) );
// here MY_ATTRIBUTE is used for creation, so it must not be set again } protected Map getNonInitialAttributes(
SessionContext ctx, Map allAttributes ) { // let superclass remove its own initial attributes Map ret =
super.getNonInitialAttributes( ctx, allAttributes );
// remove MY_ATTRIBUTE from all attributes since if has already been set ret.remove(MY_ATTRIBUTE); return ret; }
createItem in class GenericItemctx - the current session context which this item is created withintype - the actual item type ( since subtypes may not provide a own jalo class this may be different from the
type which this method was implemented for )JaloBusinessException - indicates an error during creation - any changes will be rollbacked@Deprecated public void checkSystemPrincipal() throws ConsistencyCheckException
UserService.isAdminEmployee(UserModel) and UserService.isAnonymousUser(UserModel)checkSystemPrincipal in class PrincipalConsistencyCheckExceptionpublic void setUid(SessionContext ctx, String value) throws ConsistencyCheckException
GeneratedPrincipalPrincipal.uid attribute.setUid in class GeneratedPrincipalvalue - the uidConsistencyCheckExceptionprotected PasswordEncoder getEncoder(String encoding) throws PasswordEncoderNotFoundException
PasswordEncoderNotFoundException@Deprecated public Date getCurrentTime(SessionContext ctx)
TimeService.getCurrentTime()TimeService, which means that it may be
adjusted by some delta.@Deprecated public Date getCurrentTime()
TimeService.getCurrentTime()User.currentTime attribute.@Deprecated public Date getCurrentDate(SessionContext ctx)
TimeService.getCurrentDateWithTimeNormalized() new Date() with hour, minutes
and seconds set to 0, but may be overridden to implement user timezone dependent time.@Deprecated public Date getCurrentDate()
TimeService.getCurrentTime()User.currentDate attribute.protected Date getCurrentDateOldStyle()
@Deprecated public String getLogin()
GeneratedPrincipal.getUid()GeneratedPrincipal.getName().@Deprecated public String getLogin(SessionContext ctx)
Principal.getUid(SessionContext)GeneratedPrincipal.getName().@Deprecated public void setLogin(String login) throws ConsistencyCheckException
GeneratedPrincipal.setUid(String)login - the login name of this user. should not be nullConsistencyCheckException - if there is already a user with this login name@Deprecated public void setLogin(SessionContext ctx, String login) throws ConsistencyCheckException
setUid(SessionContext, String)login - the login name of this user. should not be nullConsistencyCheckException - if there is already a user with this login name@Deprecated public String getPassword() throws CannotDecodePasswordException, PasswordEncoderNotFoundException
GeneratedUser.getEncodedPassword() instead, cause it can lead to problems in case
of hashed passwords (e.g md5). This is now a dynamic attribute with read set to false.@Deprecated public String getPassword(SessionContext ctx) throws CannotDecodePasswordException, PasswordEncoderNotFoundException
GeneratedUser.getEncodedPassword(SessionContext) instead, cause it can lead to
problems in case of hashed passwords (e.g md5). This is now a dynamic attribute with read set to
false.@Deprecated public void setPassword(String password) throws PasswordEncoderNotFoundException
UserService.setPassword(UserModel, String)password - PasswordEncoderNotFoundException@Deprecated public void setPassword(String password, String encoding) throws PasswordEncoderNotFoundException
UserService.setPassword(UserModel, String, String)password - PasswordEncoderNotFoundException@Deprecated public void setPassword(SessionContext ctx, String password)
UserService.setPassword(UserModel, String)password - @Deprecated public void setPassword(SessionContext ctx, String newPassword, String encoding) throws PasswordEncoderNotFoundException
UserService.setPassword(UserModel, String, String)newPassword - PasswordEncoderNotFoundExceptionprotected void auditUserPasswordChange(String oldEncodedPassword, String oldPasswordEncoding)
protected List<PasswordPolicyViolation> checkPasswordPolicies(String password, String encoding)
public void setEncodedPassword(String password)
setEncodedPassword in class GeneratedUserpassword - @Deprecated public void setEncodedPassword(String password, String encoding)
UserService.setEncodedPassword(UserModel, String)password - public void setEncodedPassword(SessionContext ctx, String password)
setEncodedPassword in class GeneratedUserpassword - @Deprecated public void setEncodedPassword(SessionContext ctx, String password, String encoding)
UserService.setEncodedPassword(UserModel, String, String)password - @Deprecated public boolean checkPassword(String plainPassword)
AuthenticationService.checkCredentials(String, String)plainPassword - @Deprecated public boolean checkPassword(LoginToken token)
AuthenticationService.checkCredentials(String, String)@Deprecated public boolean checkPassword(SessionContext ctx, String plainPassword)
AuthenticationService.checkCredentials(String, String)plainPassword - public void setLoginDisabled(SessionContext ctx, Boolean disabled)
setLoginDisabled in class GeneratedUserdisabled - the loginDisabled - Determines whether user is allowed to login to system.@Deprecated public Collection getAllAddresses()
GeneratedUser.getAddresses() instead@Deprecated public Address createAddress()
AddressService.createAddressForUser(UserModel)remove method ! @Deprecated public Address createAddress(PK pk)
AddressService.createAddressForUser(UserModel)remove method ! @Deprecated public Address createAddress(SessionContext ctx)
AddressService.createAddressForUser(UserModel)remove method ! @Deprecated public Address createAddress(PK pk, SessionContext ctx)
AddressService.createAddressForUser(UserModel)remove method ! @Deprecated public Address createAddress(Map fields)
AddressService.createAddressForUser(UserModel)remove method ! @Deprecated public Address createAddress(PK pk, Map fields)
remove method ! @Deprecated public Address createAddress(SessionContext ctx, Map fields)
AddressService.createAddressForUser(UserModel)remove method ! @Deprecated public Address createAddress(PK pk, SessionContext ctx, Map fields)
remove method ! @Deprecated public Address getDefaultShippingAddress()
getDefaultDeliveryAddress() instead null if no such address was set.@Deprecated public Address getDefaultShippingAddress(SessionContext ctx)
getDefaultDeliveryAddress(SessionContext) instead null if no such address was set.public Address getDefaultDeliveryAddress()
null if no such address was set.public Address getDefaultDeliveryAddress(SessionContext ctx)
null if no such address was set.@Deprecated public void setDefaultShippingAddress(Address adr)
setDefaultDeliveryAddress(Address) insteadadr - @Deprecated public void setDefaultShippingAddress(SessionContext ctx, Address adr)
setDefaultDeliveryAddress(SessionContext, Address) insteadadr - public void setDefaultDeliveryAddress(Address adr)
adr - public void setDefaultDeliveryAddress(SessionContext ctx, Address adr)
adr - @Deprecated public PaymentInfo createPaymentInfo(String code)
de.hybris.platform.order.PaymentInfoService#createPaymentInfoForUser(UserModel, String)code - a user defined code for this PaymentInfo@Deprecated public PaymentInfo createPaymentInfo(SessionContext ctx, String code)
de.hybris.platform.order.PaymentInfoService#createPaymentInfoForUser(UserModel, String)ctx - code - a user defined code for this PaymentInfo@Deprecated public Cart saveCurrentCart(String code) throws ConsistencyCheckException
de.hybris.platform.order.CartService#clone(ComposedTypeModel, ComposedTypeModel, AbstractOrderModel, String)cart belonging to this user as copy of the
current session cart.ConsistencyCheckException@Deprecated public Cart saveCurrentCart(SessionContext ctx, String code) throws ConsistencyCheckException
de.hybris.platform.order.CartService#clone(ComposedTypeModel, ComposedTypeModel, AbstractOrderModel, String)cart belonging to this user as copy of the
current session cart.ConsistencyCheckException@Deprecated public boolean isAdmin()
UserService.isAdmin(UserModel)@Deprecated public boolean isAdminEmployee()
UserService.isAdminEmployee(UserModel)@Deprecated public boolean isAnonymousCustomer()
UserService.isAnonymousUser(UserModel)true, if this Customer is the default anonymous Customer instance
of this system. The anonymous Customer is used for unauthorized
JaloSessions.true if this Customer is the default anonymous Customer instance of
this system@Deprecated public String getDisplayName(SessionContext ctx)
PrincipalModel.getDisplayName()getDisplayName in class Principal@Deprecated public Map<Language,String> getAllDisplayName(SessionContext ctx)
PrincipalModel.getDisplayName(java.util.Locale)PrincipalPrincipal.displayName jalo
localized attribute.getAllDisplayName in class Principal@Deprecated protected void checkRemovable(SessionContext ctx) throws ConsistencyCheckException
ItemcheckRemovable in class ItemConsistencyCheckException - to indicate that the item cannot be removedCopyright © 2017 SAP SE. All Rights Reserved.