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 java.lang.String |
CURRENT_DATE
Deprecated.
since ages - it is a dynamic attribute now
|
static java.lang.String |
CURRENT_TIME
Deprecated.
since ages - it is a dynamic attribute now
|
static java.lang.String |
DEFAULT_PAYMENT_ADDRESS
Deprecated.
since ages - Use
GeneratedUser.DEFAULTPAYMENTADDRESS instead |
static java.lang.String |
DEFAULT_SHIPPING_ADDRESS
Deprecated.
since ages - Use
GeneratedUser.DEFAULTSHIPMENTADDRESS instead |
static java.lang.String |
LAST_LOGIN
Deprecated.
since ages - Use
GeneratedUser.LASTLOGIN instead |
static java.lang.String |
LOGIN_DISABLED
Deprecated.
since ages - Use
GeneratedUser.LOGINDISABLED instead |
static java.lang.String |
PASSWORD
Deprecated.
since ages - it is a dynamic attribute now
|
static java.lang.String |
PASSWORD_ANSWER
Deprecated.
since ages - Use
GeneratedUser.PASSWORDANSWER instead |
static java.lang.String |
PASSWORD_QUESTION
Deprecated.
since ages - Use
GeneratedUser.PASSWORDQUESTION instead |
static java.lang.String |
PAYMENT_MODES
Constant identifier for
paymentModes attribute of User type. |
static java.lang.String |
SESSION_CURRENCY
Deprecated.
since ages - Use
SESSION_CURRENCY instead |
static java.lang.String |
SESSION_LANGUAGE
Deprecated.
since ages - Use
GeneratedUser.SESSIONLANGUAGE instead |
static java.lang.String |
USER_AUDIT_ENABLED |
ADDRESSES, ADDRESSESHANDLER, CARTS, CARTSHANDLER, CONTACTINFOS, CONTACTINFOSHANDLER, DEACTIVATIONDATE, DEFAULT_INITIAL_ATTRIBUTES, DEFAULTPAYMENTADDRESS, DEFAULTSHIPMENTADDRESS, ENCODEDPASSWORD, HMCLOGINDISABLED, LASTLOGIN, LOGINDISABLED, ORDERS, ORDERSHANDLER, PASSWORDANSWER, PASSWORDENCODING, PASSWORDQUESTION, PAYMENTINFOS, PAYMENTINFOSHANDLER, QUOTES, QUOTESHANDLER, RETENTIONSTATE, 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(java.lang.String oldEncodedPassword,
java.lang.String oldPasswordEncoding) |
boolean |
checkPassword(LoginToken token)
Deprecated.
since ages - use
AuthenticationService.checkCredentials(String, String) |
boolean |
checkPassword(SessionContext ctx,
java.lang.String plainPassword)
Deprecated.
since ages - use
AuthenticationService.checkCredentials(String, String) |
boolean |
checkPassword(java.lang.String plainPassword)
Deprecated.
since ages - use
AuthenticationService.checkCredentials(String, String) |
protected java.util.List<PasswordPolicyViolation> |
checkPasswordPolicies(java.lang.String password,
java.lang.String encoding) |
protected void |
checkRemovable(SessionContext ctx)
Deprecated.
since ages
|
void |
checkSystemPrincipal()
Deprecated.
since ages - use
UserService.isAdminEmployee(UserModel) and UserService.isAnonymousUser(UserModel) |
Address |
createAddress()
Deprecated.
since ages - use
AddressService.createAddressForUser(UserModel) |
Address |
createAddress(java.util.Map fields)
Deprecated.
since ages - use
AddressService.createAddressForUser(UserModel) |
Address |
createAddress(PK pk)
Deprecated.
since ages - use
AddressService.createAddressForUser(UserModel) |
Address |
createAddress(PK pk,
java.util.Map fields)
Deprecated.
since ages
|
Address |
createAddress(PK pk,
SessionContext ctx)
Deprecated.
since ages - use
AddressService.createAddressForUser(UserModel) |
Address |
createAddress(PK pk,
SessionContext ctx,
java.util.Map fields)
Deprecated.
since ages
|
Address |
createAddress(SessionContext ctx)
Deprecated.
since ages - use
AddressService.createAddressForUser(UserModel) |
Address |
createAddress(SessionContext ctx,
java.util.Map fields)
Deprecated.
since ages - use
AddressService.createAddressForUser(UserModel) |
protected Item |
createItem(SessionContext ctx,
ComposedType type,
Item.ItemAttributeMap allAttributes)
Has to be implemented for each concrete subtype of item.
|
PaymentInfo |
createPaymentInfo(SessionContext ctx,
java.lang.String code)
Deprecated.
since ages - use
PaymentInfoService.createPaymentInfoForUser(UserModel, String) |
PaymentInfo |
createPaymentInfo(java.lang.String code)
Deprecated.
since ages - use
PaymentInfoService.createPaymentInfoForUser(UserModel, String) |
java.util.Collection |
getAllAddresses()
Deprecated.
since ages - use
GeneratedUser.getAddresses() instead |
java.util.Map<Language,java.lang.String> |
getAllDisplayName(SessionContext ctx)
Deprecated.
since ages - use
PrincipalModel.getDisplayName(java.util.Locale) |
Cart |
getCart(java.lang.String code)
The
Cart with code. |
java.util.Date |
getCurrentDate()
Deprecated.
since ages - use
TimeService.getCurrentTime() |
java.util.Date |
getCurrentDate(SessionContext ctx)
Deprecated.
since ages - use
TimeService.getCurrentDateWithTimeNormalized() |
protected java.util.Date |
getCurrentDateOldStyle() |
java.util.Date |
getCurrentTime()
Deprecated.
since ages - use
TimeService.getCurrentTime() |
java.util.Date |
getCurrentTime(SessionContext ctx)
Deprecated.
since ages - use
TimeService.getCurrentTime() |
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.
since ages - please use
getDefaultDeliveryAddress() instead |
Address |
getDefaultShippingAddress(SessionContext ctx)
Deprecated.
since ages - please use
getDefaultDeliveryAddress(SessionContext) instead |
java.lang.String |
getDisplayName(SessionContext ctx)
Deprecated.
since ages - use
PrincipalModel.getDisplayName() |
protected PasswordEncoder |
getEncoder(java.lang.String encoding) |
java.lang.String |
getLogin()
Deprecated.
since ages - use
GeneratedPrincipal.getUid() |
java.lang.String |
getLogin(SessionContext ctx)
Deprecated.
since ages - use
Principal.getUid(SessionContext) |
java.lang.String |
getPassword()
Deprecated.
since ages - 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. |
java.lang.String |
getPassword(SessionContext ctx)
Deprecated.
since ages - 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 java.lang.String |
getRealEncoding(java.lang.String optionalEncoding) |
boolean |
isAdmin()
Deprecated.
since ages - use
UserService.isAdmin(UserModel) |
boolean |
isAdminEmployee()
Deprecated.
since ages - use
UserService.isAdminEmployee(UserModel) |
boolean |
isAnonymousCustomer()
Deprecated.
since ages - use
UserService.isAnonymousUser(UserModel) |
Cart |
saveCurrentCart(SessionContext ctx,
java.lang.String code)
Deprecated.
|
Cart |
saveCurrentCart(java.lang.String code)
Deprecated.
|
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.
since ages - please use
setDefaultDeliveryAddress(Address) instead |
void |
setDefaultShippingAddress(SessionContext ctx,
Address adr)
Deprecated.
since ages - please use
setDefaultDeliveryAddress(SessionContext, Address) instead |
void |
setEncodedPassword(SessionContext ctx,
java.lang.String password)
Changes decoded form of the password of this user.
|
void |
setEncodedPassword(SessionContext ctx,
java.lang.String password,
java.lang.String encoding)
Deprecated.
since ages - use
UserService.setEncodedPassword(UserModel, String, String) |
void |
setEncodedPassword(java.lang.String password)
Changes decoded form of the password of this user.
|
void |
setEncodedPassword(java.lang.String password,
java.lang.String encoding)
Deprecated.
since ages - use
UserService.setEncodedPassword(UserModel, String) |
void |
setLogin(SessionContext ctx,
java.lang.String login)
Deprecated.
since ages - use
setUid(SessionContext, String) |
void |
setLogin(java.lang.String login)
Deprecated.
since ages - use
GeneratedPrincipal.setUid(String) |
void |
setLoginDisabled(SessionContext ctx,
java.lang.Boolean disabled)
Changes login-disabled status for this user.
|
void |
setPassword(SessionContext ctx,
java.lang.String password)
Deprecated.
since ages - Use
UserService.setPassword(UserModel, String) |
void |
setPassword(SessionContext ctx,
java.lang.String newPassword,
java.lang.String encoding)
Deprecated.
since ages - Use
UserService.setPassword(UserModel, String, String) |
void |
setPassword(java.lang.String password)
Deprecated.
since ages - Use
UserService.setPassword(UserModel, String) |
void |
setPassword(java.lang.String password,
java.lang.String encoding)
Deprecated.
since ages - Use
UserService.setPassword(UserModel, String, String) |
void |
setUid(SessionContext ctx,
java.lang.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, getDeactivationDate, getDeactivationDate, getDefaultAttributeModes, getDefaultPaymentAddress, getDefaultPaymentAddress, getDefaultShipmentAddress, getDefaultShipmentAddress, getEncodedPassword, getEncodedPassword, getLastLogin, getLastLogin, getOrders, getOrders, getPasswordAnswer, getPasswordAnswer, getPasswordEncoding, getPasswordEncoding, getPasswordQuestion, getPasswordQuestion, getPaymentInfos, getPaymentInfos, getQuotes, getQuotes, getRetentionState, getRetentionState, 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, setDeactivationDate, setDeactivationDate, 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, setRetentionState, setRetentionState, 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, isMarkModifiedDisabled, 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, getImplementation, 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, notifyManagerAboutItemRemoval, readResolve, 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, writeReplacesetTenantpublic static final java.lang.String USER_AUDIT_ENABLED
@Deprecated public static final java.lang.String DEFAULT_PAYMENT_ADDRESS
GeneratedUser.DEFAULTPAYMENTADDRESS insteaddefaultPaymentAddress attribute of User type.@Deprecated public static final java.lang.String DEFAULT_SHIPPING_ADDRESS
GeneratedUser.DEFAULTSHIPMENTADDRESS insteaddefaultShipmentAddress attribute of User type.@Deprecated public static final java.lang.String PASSWORD_QUESTION
GeneratedUser.PASSWORDQUESTION insteadpasswordQuestion attribute of User type.@Deprecated public static final java.lang.String PASSWORD_ANSWER
GeneratedUser.PASSWORDANSWER insteadpasswordAnswer attribute of User type.public static final java.lang.String PAYMENT_MODES
paymentModes attribute of User type.@Deprecated public static final java.lang.String SESSION_LANGUAGE
GeneratedUser.SESSIONLANGUAGE insteadsessionLanguage attribute of User type.@Deprecated public static final java.lang.String SESSION_CURRENCY
SESSION_CURRENCY insteadsessionCurrency attribute of User type.@Deprecated public static final java.lang.String LOGIN_DISABLED
GeneratedUser.LOGINDISABLED insteadloginDisabled attribute of User type.@Deprecated public static final java.lang.String LAST_LOGIN
GeneratedUser.LASTLOGIN insteadlastLogin attribute of User type.@Deprecated public static final java.lang.String CURRENT_TIME
currentTime attribute of User type.@Deprecated public static final java.lang.String CURRENT_DATE
currentDate attribute of User type.@Deprecated public static final java.lang.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, java.lang.String value) throws ConsistencyCheckException
GeneratedPrincipalPrincipal.uid attribute.setUid in class GeneratedPrincipalvalue - the uidConsistencyCheckExceptionprotected PasswordEncoder getEncoder(java.lang.String encoding) throws PasswordEncoderNotFoundException
PasswordEncoderNotFoundException@Deprecated public java.util.Date getCurrentTime(SessionContext ctx)
TimeService.getCurrentTime()TimeService, which means that it may be
adjusted by some delta.@Deprecated public java.util.Date getCurrentTime()
TimeService.getCurrentTime()User.currentTime attribute.@Deprecated public java.util.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 java.util.Date getCurrentDate()
TimeService.getCurrentTime()User.currentDate attribute.protected java.util.Date getCurrentDateOldStyle()
@Deprecated public java.lang.String getLogin()
GeneratedPrincipal.getUid()GeneratedPrincipal.getName().@Deprecated public java.lang.String getLogin(SessionContext ctx)
Principal.getUid(SessionContext)GeneratedPrincipal.getName().@Deprecated
public void setLogin(java.lang.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, java.lang.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 java.lang.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 java.lang.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(java.lang.String password)
throws PasswordEncoderNotFoundException
UserService.setPassword(UserModel, String)password - PasswordEncoderNotFoundException@Deprecated
public void setPassword(java.lang.String password,
java.lang.String encoding)
throws PasswordEncoderNotFoundException
UserService.setPassword(UserModel, String, String)password - PasswordEncoderNotFoundException@Deprecated public void setPassword(SessionContext ctx, java.lang.String password)
UserService.setPassword(UserModel, String)password - protected java.lang.String getRealEncoding(java.lang.String optionalEncoding)
@Deprecated public void setPassword(SessionContext ctx, java.lang.String newPassword, java.lang.String encoding) throws PasswordEncoderNotFoundException
UserService.setPassword(UserModel, String, String)newPassword - PasswordEncoderNotFoundExceptionprotected void auditUserPasswordChange(java.lang.String oldEncodedPassword,
java.lang.String oldPasswordEncoding)
protected java.util.List<PasswordPolicyViolation> checkPasswordPolicies(java.lang.String password, java.lang.String encoding)
public void setEncodedPassword(java.lang.String password)
setEncodedPassword in class GeneratedUserpassword - @Deprecated
public void setEncodedPassword(java.lang.String password,
java.lang.String encoding)
UserService.setEncodedPassword(UserModel, String)password - public void setEncodedPassword(SessionContext ctx, java.lang.String password)
setEncodedPassword in class GeneratedUserpassword - @Deprecated public void setEncodedPassword(SessionContext ctx, java.lang.String password, java.lang.String encoding)
UserService.setEncodedPassword(UserModel, String, String)password - @Deprecated public boolean checkPassword(java.lang.String plainPassword)
AuthenticationService.checkCredentials(String, String)plainPassword - @Deprecated public boolean checkPassword(LoginToken token)
AuthenticationService.checkCredentials(String, String)@Deprecated public boolean checkPassword(SessionContext ctx, java.lang.String plainPassword)
AuthenticationService.checkCredentials(String, String)plainPassword - public void setLoginDisabled(SessionContext ctx, java.lang.Boolean disabled)
setLoginDisabled in class GeneratedUserdisabled - the loginDisabled - Determines whether user is allowed to login to system.@Deprecated public java.util.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(java.util.Map fields)
AddressService.createAddressForUser(UserModel)remove method ! @Deprecated public Address createAddress(PK pk, java.util.Map fields)
remove method ! @Deprecated public Address createAddress(SessionContext ctx, java.util.Map fields)
AddressService.createAddressForUser(UserModel)remove method ! @Deprecated public Address createAddress(PK pk, SessionContext ctx, java.util.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(java.lang.String code)
PaymentInfoService.createPaymentInfoForUser(UserModel, String)code - a user defined code for this PaymentInfo@Deprecated public PaymentInfo createPaymentInfo(SessionContext ctx, java.lang.String code)
PaymentInfoService.createPaymentInfoForUser(UserModel, String)ctx - code - a user defined code for this PaymentInfo@Deprecated public Cart saveCurrentCart(java.lang.String code) throws ConsistencyCheckException
AbstractOrderService.clone(ComposedTypeModel, ComposedTypeModel, AbstractOrderModel, String)cart belonging to this user as copy of the
current session cart.ConsistencyCheckException@Deprecated public Cart saveCurrentCart(SessionContext ctx, java.lang.String code) throws ConsistencyCheckException
AbstractOrderService.clone(ComposedTypeModel, ComposedTypeModel, AbstractOrderModel, String)cart belonging to this user as copy of the
current session cart.ConsistencyCheckExceptionpublic Cart getCart(java.lang.String code)
Cart with code.code - code of the Cart@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 java.lang.String getDisplayName(SessionContext ctx)
PrincipalModel.getDisplayName()getDisplayName in class Principal@Deprecated public java.util.Map<Language,java.lang.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 © 2018 SAP SE. All Rights Reserved.