Package de.hybris.platform.jalo.user
Class User
- All Implemented Interfaces:
Serializable,Comparable
- Direct Known Subclasses:
GeneratedCustomer,GeneratedEmployee,MyTestUser
Superclass of all hybris platform user types.
A user always is identified by a login - password - pair, owns a name and an affiliate id , may belong to user
groups.
As a subclass of principal each user can be assigned permissions. Additionally permissions can be assigned to user
groups which makes user right management easier.
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>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.jalo.GenericItem
GenericItem.GenericItemImplNested classes/interfaces inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
LocalizableItem.LocalizableItemImplNested classes/interfaces inherited from class de.hybris.platform.jalo.ExtensibleItem
ExtensibleItem.ExtensibleItemImplNested classes/interfaces inherited from class de.hybris.platform.jalo.Item
Item.AttributeFilter, Item.AttributeMode, Item.CachedGetter, Item.CachedSetter, Item.ItemAttributeMap, Item.ItemConstraint, Item.ItemImpl, Item.JaloCachedComputationException -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.since ages - it is a dynamic attribute nowstatic final StringDeprecated.since ages - it is a dynamic attribute nowstatic final StringDeprecated.since ages - UseGeneratedUser.DEFAULTPAYMENTADDRESSinsteadstatic final StringDeprecated.since ages - UseGeneratedUser.DEFAULTSHIPMENTADDRESSinsteadstatic final StringDeprecated.since ages - UseGeneratedUser.LASTLOGINinsteadstatic final StringDeprecated.since ages - UseGeneratedUser.LOGINDISABLEDinsteadstatic final StringDeprecated.since ages - it is a dynamic attribute nowstatic final StringDeprecated.since ages - UseGeneratedUser.PASSWORDANSWERinsteadstatic final StringDeprecated.since ages - UseGeneratedUser.PASSWORDQUESTIONinsteadstatic final StringConstant identifier forpaymentModesattribute of User type.static final StringDeprecated.since ages - UseSESSION_CURRENCYinsteadstatic final StringDeprecated.since ages - UseGeneratedUser.SESSIONLANGUAGEinsteadstatic final Stringstatic final StringFields inherited from class de.hybris.platform.jalo.user.GeneratedUser
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, RANDOMTOKEN, RETENTIONSTATE, SESSIONCURRENCY, SESSIONLANGUAGE, USERPROFILEFields inherited from class de.hybris.platform.jalo.security.Principal
ALLGROUPS, ALLSEARCHRESTRICTIONS, DISPLAYNAME, PRINCIPAL_GROUP_RELATION_NAMEFields inherited from class de.hybris.platform.jalo.security.GeneratedPrincipal
DESCRIPTION, GROUPS, NAME, PRINCIPALGROUPRELATION_MARKMODIFIED, PRINCIPALGROUPRELATION_SRC_ORDERED, PRINCIPALGROUPRELATION_TGT_ORDERED, SEARCHRESTRICTIONS, SEARCHRESTRICTIONSHANDLER, UIDFields inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
LANGUAGE_FALLBACK_ENABLEDFields inherited from class de.hybris.platform.jalo.Item
_CREATION_TIME_INTERNAL, _MODIFIED_TIME_INTERNAL, accessorLog, CREATION_TIME, DISABLE_ATTRIBUTE_CHECK, DISABLE_ITEMCHECK_BEFORE_REMOVABLE, EVEN, FEATURE_ACCESSMAP_QUALIFIER, HJMPTS, INITIAL_CREATION_FLAG, isJaloOnly, MODIFIED_TIME, NEGATIVE, NOT_FOUND, OWNER, PK, POSITIVE, SAVE_FROM_SERVICE_LAYER, staticTransientObjects, TYPEFields inherited from class de.hybris.platform.util.BridgeAbstraction
impl, tenant -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidauditUserPasswordChange(String oldEncodedPassword, String oldPasswordEncoding) booleancheckPassword(SessionContext ctx, String plainPassword) Deprecated.since ages - useAuthenticationService.checkCredentials(String, String)booleancheckPassword(LoginToken token) Deprecated.since ages - useAuthenticationService.checkCredentials(String, String)booleancheckPassword(String plainPassword) Deprecated.since ages - useAuthenticationService.checkCredentials(String, String)protected List<PasswordPolicyViolation>checkPasswordPolicies(String password, String encoding) protected voidDeprecated.since agesvoidDeprecated.since ages - useUserService.isAdminEmployee(UserModel)andUserService.isAnonymousUser(UserModel)Deprecated.since ages - useAddressService.createAddressForUser(UserModel)createAddress(PK pk) Deprecated.since ages - useAddressService.createAddressForUser(UserModel)createAddress(PK pk, SessionContext ctx) Deprecated.since ages - useAddressService.createAddressForUser(UserModel)createAddress(PK pk, SessionContext ctx, Map fields) Deprecated.since agescreateAddress(PK pk, Map fields) Deprecated.since agesDeprecated.since ages - useAddressService.createAddressForUser(UserModel)createAddress(SessionContext ctx, Map fields) Deprecated.since ages - useAddressService.createAddressForUser(UserModel)createAddress(Map fields) Deprecated.since ages - useAddressService.createAddressForUser(UserModel)protected ItemcreateItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes) Has to be implemented for each concrete subtype of item.createPaymentInfo(SessionContext ctx, String code) Deprecated.since ages - usePaymentInfoService.createPaymentInfoForUser(UserModel, String)createPaymentInfo(String code) Deprecated.since ages - usePaymentInfoService.createPaymentInfoForUser(UserModel, String)Deprecated.since ages - useGeneratedUser.getAddresses()insteadDeprecated.since ages - usePrincipalModel.getDisplayName(java.util.Locale)TheCartwith code.Deprecated.since ages - useTimeService.getCurrentTime()Deprecated.since ages - useTimeService.getCurrentDateWithTimeNormalized()protected DateDeprecated.since ages - useTimeService.getCurrentTime()Deprecated.since ages - useTimeService.getCurrentTime()Gets the default shipment address of this user.Gets the default shipment address of this user.Deprecated.since ages - please usegetDefaultDeliveryAddress()insteadDeprecated.since ages - please usegetDefaultDeliveryAddress(SessionContext)insteadDeprecated.since ages - usePrincipalModel.getDisplayName()protected PasswordEncodergetEncoder(String encoding) getLogin()Deprecated.since ages - useGeneratedPrincipal.getUid()getLogin(SessionContext ctx) Deprecated.since ages - usePrincipal.getUid(SessionContext)Deprecated.since ages - it is recommended to useGeneratedUser.getEncodedPassword()instead, cause it can lead to problems in case of hashed passwords (e.g md5).Deprecated.since ages - it is recommended to useGeneratedUser.getEncodedPassword(SessionContext)instead, cause it can lead to problems in case of hashed passwords (e.g md5).static PasswordChangeListenerprotected StringgetRealEncoding(String optionalEncoding) booleanisAdmin()Deprecated.since ages - useUserService.isAdmin(UserModel)booleanDeprecated.since ages - useUserService.isAdminEmployee(UserModel)booleanDeprecated.since ages - useUserService.isAnonymousUser(UserModel)saveCurrentCart(SessionContext ctx, String code) Deprecated.saveCurrentCart(String code) Deprecated.voidsetDeactivationDate(SessionContext ctx, Date value) Changes deactivationDate for this user.voidsetDefaultDeliveryAddress(SessionContext ctx, Address adr) Sets an address as default shipment address for this user.voidSets an address as default shipment address for this user.voidsetDefaultShippingAddress(SessionContext ctx, Address adr) Deprecated.since ages - please usesetDefaultDeliveryAddress(SessionContext, Address)insteadvoidDeprecated.since ages - please usesetDefaultDeliveryAddress(Address)insteadvoidsetEncodedPassword(SessionContext ctx, String password) Changes decoded form of the password of this user.voidsetEncodedPassword(SessionContext ctx, String password, String encoding) Deprecated.since ages - useUserService.setEncodedPassword(UserModel, String, String)voidsetEncodedPassword(String password) Changes decoded form of the password of this user.voidsetEncodedPassword(String password, String encoding) Deprecated.since ages - useUserService.setEncodedPassword(UserModel, String)voidsetLogin(SessionContext ctx, String login) Deprecated.since ages - usesetUid(SessionContext, String)voidDeprecated.since ages - useGeneratedPrincipal.setUid(String)voidsetLoginDisabled(SessionContext ctx, Boolean disabled) Changes login-disabled status for this user.voidsetPassword(SessionContext ctx, String password) Deprecated.since ages - UseUserService.setPassword(UserModel, String)voidsetPassword(SessionContext ctx, String newPassword, String encoding) Deprecated.since ages - UseUserService.setPassword(UserModel, String, String)voidsetPassword(String password) Deprecated.since ages - UseUserService.setPassword(UserModel, String)voidsetPassword(String password, String encoding) Deprecated.since ages - UseUserService.setPassword(UserModel, String, String)voidsetUid(SessionContext ctx, String value) Generated method - Setter of thePrincipal.uidattribute.Methods inherited from class de.hybris.platform.jalo.user.GeneratedUser
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, getRandomToken, getRandomToken, 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, 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, setRandomToken, setRandomToken, setRetentionState, setRetentionState, setSessionCurrency, setSessionCurrency, setSessionLanguage, setSessionLanguage, setUserprofile, setUserprofileMethods inherited from class de.hybris.platform.jalo.security.Principal
addGlobalNegativePermission, 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, toStringMethods inherited from class de.hybris.platform.jalo.security.GeneratedPrincipal
addToGroups, addToGroups, getDescription, getDescription, getGroups, getGroupsCount, getGroupsCount, getName, getName, getSearchRestrictions, getSearchRestrictions, getUid, isMarkModifiedDisabled, removeFromGroups, removeFromGroups, setDescription, setDescription, setGroups, setName, setName, setUidMethods inherited from class de.hybris.platform.jalo.GenericItem
getImplementation, getInitialProperties, getNonInitialAttributes, getRelatedItems, getRelatedItems, setRelatedItemsMethods inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllValuesSessionContext, getLocalizedProperty, getLocalizedProperty, getLocalizedPropertyInternal, getLocalizedPropertyNames, getLocalizedPropertyNames, hasLanguage, isEmptyValue, isFallbackEnabled, removeLocalizedProperty, removeLocalizedProperty, setAllLocalizedProperties, setAllLocalizedProperties, setLocalizedProperty, setLocalizedPropertyMethods inherited from class de.hybris.platform.jalo.ExtensibleItem
createNonClassAccessor, getAllProperties, getAllProperties, getProperty, getProperty, getPropertyNames, getPropertyNames, removeProperty, removeProperty, setAllProperties, setAllProperties, setProperty, setPropertyMethods inherited from class de.hybris.platform.jalo.Item
addLinkedItems, 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, getPartOfRemovedSessionMarker, 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, suppressRelation, useTA, writeReplaceMethods inherited from class de.hybris.platform.util.BridgeAbstraction
setTenant
-
Field Details
-
USER_AUDIT_ENABLED
- See Also:
-
USER_DEACTIVATION_BLOCK_FOR_ALL_ADMINS
- See Also:
-
DEFAULT_PAYMENT_ADDRESS
Deprecated.since ages - UseGeneratedUser.DEFAULTPAYMENTADDRESSinsteadConstant identifier fordefaultPaymentAddressattribute of User type.- See Also:
-
DEFAULT_SHIPPING_ADDRESS
Deprecated.since ages - UseGeneratedUser.DEFAULTSHIPMENTADDRESSinsteadConstant identifier fordefaultShipmentAddressattribute of User type.- See Also:
-
PASSWORD_QUESTION
Deprecated.since ages - UseGeneratedUser.PASSWORDQUESTIONinsteadConstant identifier forpasswordQuestionattribute of User type.- See Also:
-
PASSWORD_ANSWER
Deprecated.since ages - UseGeneratedUser.PASSWORDANSWERinsteadConstant identifier forpasswordAnswerattribute of User type.- See Also:
-
PAYMENT_MODES
Constant identifier forpaymentModesattribute of User type.- See Also:
-
SESSION_LANGUAGE
Deprecated.since ages - UseGeneratedUser.SESSIONLANGUAGEinsteadConstant identifier forsessionLanguageattribute of User type.- See Also:
-
SESSION_CURRENCY
Deprecated.since ages - UseSESSION_CURRENCYinsteadConstant identifier forsessionCurrencyattribute of User type.- See Also:
-
LOGIN_DISABLED
Deprecated.since ages - UseGeneratedUser.LOGINDISABLEDinsteadConstant identifier forloginDisabledattribute of User type.- See Also:
-
LAST_LOGIN
Deprecated.since ages - UseGeneratedUser.LASTLOGINinsteadConstant identifier forlastLoginattribute of User type.- See Also:
-
CURRENT_TIME
Deprecated.since ages - it is a dynamic attribute nowConstant identifier forcurrentTimeattribute of User type.- See Also:
-
CURRENT_DATE
Deprecated.since ages - it is a dynamic attribute nowConstant identifier forcurrentDateattribute of User type.- See Also:
-
PASSWORD
Deprecated.since ages - it is a dynamic attribute nowConstant identifier forpasswordattribute of User type.- See Also:
-
-
Constructor Details
-
User
public User()
-
-
Method Details
-
createItem
protected Item createItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes) throws JaloBusinessException Description copied from class:ItemHas to be implemented for each concrete subtype of item. This method is responsible for creating a new item instance ( by calling managers, ejb homes, etc. ) duringComposedType.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; }- Overrides:
createItemin classGenericItem- Parameters:
ctx- 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 )- Returns:
- the new item instance
- Throws:
JaloBusinessException- indicates an error during creation - any changes will be rollbacked
-
checkSystemPrincipal
@Deprecated(since="ages", forRemoval=false) public void checkSystemPrincipal() throws ConsistencyCheckExceptionDeprecated.since ages - useUserService.isAdminEmployee(UserModel)andUserService.isAnonymousUser(UserModel)- Specified by:
checkSystemPrincipalin classPrincipal- Throws:
ConsistencyCheckException
-
setUid
Description copied from class:GeneratedPrincipalGenerated method - Setter of thePrincipal.uidattribute.- Overrides:
setUidin classGeneratedPrincipalvalue- the uid- Throws:
ConsistencyCheckException
-
getEncoder
- Throws:
PasswordEncoderNotFoundException
-
getCurrentTime
Deprecated.since ages - useTimeService.getCurrentTime()Returns the current time for this user. Returns the same time asTimeService, which means that it may be adjusted by some delta.- Since:
- 1.31
-
getCurrentTime
Deprecated.since ages - useTimeService.getCurrentTime()Old jalo generated method from GeneratedUser - Getter of theUser.currentTimeattribute.- Returns:
- the currentTime
-
getCurrentDate
Deprecated.since ages - useTimeService.getCurrentDateWithTimeNormalized()Returns the current date for this user. Right now this just returnsnew Date()with hour, minutes and seconds set to 0, but may be overridden to implement user timezone dependent time.- Since:
- 1.31
-
getCurrentDate
Deprecated.since ages - useTimeService.getCurrentTime()old jalo generated method from GeneratedUser - Getter of theUser.currentDateattribute.- Returns:
- the currentDate
-
getCurrentDateOldStyle
-
getLogin
Deprecated.since ages - useGeneratedPrincipal.getUid()The login name of this user. The real name of the user is accessible byGeneratedPrincipal.getName().- Returns:
- the login name of this user
-
getLogin
Deprecated.since ages - usePrincipal.getUid(SessionContext)The login name of this user. The real name of the user is accessible byGeneratedPrincipal.getName().- Returns:
- the login name of this user
-
setLogin
@Deprecated(since="ages", forRemoval=false) public void setLogin(String login) throws ConsistencyCheckException Deprecated.since ages - useGeneratedPrincipal.setUid(String)Changes the login name of this user.- Parameters:
login- the login name of this user. should not benull- Throws:
ConsistencyCheckException- if there is already a user with this login name
-
setLogin
@Deprecated(since="ages", forRemoval=false) public void setLogin(SessionContext ctx, String login) throws ConsistencyCheckException Deprecated.since ages - usesetUid(SessionContext, String)Changes the login name of this user.- Parameters:
login- the login name of this user. should not benull- Throws:
ConsistencyCheckException- if there is already a user with this login name
-
getPassword
@Deprecated(since="ages", forRemoval=false) public String getPassword() throws CannotDecodePasswordException, PasswordEncoderNotFoundExceptionDeprecated.since ages - it is recommended to useGeneratedUser.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.The password of this user. -
getPassword
@Deprecated(since="ages", forRemoval=false) public String getPassword(SessionContext ctx) throws CannotDecodePasswordException, PasswordEncoderNotFoundException Deprecated.since ages - it is recommended to useGeneratedUser.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.The password of this user. -
setPassword
@Deprecated(since="ages", forRemoval=false) public void setPassword(String password) throws PasswordEncoderNotFoundException Deprecated.since ages - UseUserService.setPassword(UserModel, String)Changes the password of this user.- Parameters:
password-- Throws:
PasswordEncoderNotFoundException
-
setPassword
@Deprecated(since="ages", forRemoval=false) public void setPassword(String password, String encoding) throws PasswordEncoderNotFoundException Deprecated.since ages - UseUserService.setPassword(UserModel, String, String)Changes the password of this user.- Parameters:
password-- Throws:
PasswordEncoderNotFoundException
-
setPassword
@Deprecated(since="ages", forRemoval=false) public void setPassword(SessionContext ctx, String password) Deprecated.since ages - UseUserService.setPassword(UserModel, String)Changes the password of this user.- Parameters:
password-
-
getRealEncoding
-
setPassword
@Deprecated(since="ages", forRemoval=false) public void setPassword(SessionContext ctx, String newPassword, String encoding) throws PasswordEncoderNotFoundException Deprecated.since ages - UseUserService.setPassword(UserModel, String, String)Changes the password of this user.- Parameters:
newPassword-- Throws:
PasswordEncoderNotFoundException
-
getPasswordChangeListener
-
auditUserPasswordChange
-
checkPasswordPolicies
-
setEncodedPassword
Changes decoded form of the password of this user.- Overrides:
setEncodedPasswordin classGeneratedUser- Parameters:
password-
-
setEncodedPassword
@Deprecated(since="ages", forRemoval=false) public void setEncodedPassword(String password, String encoding) Deprecated.since ages - useUserService.setEncodedPassword(UserModel, String)Changes decoded form of the password of this user.- Parameters:
password-
-
setEncodedPassword
Changes decoded form of the password of this user.- Overrides:
setEncodedPasswordin classGeneratedUser- Parameters:
password-
-
setEncodedPassword
@Deprecated(since="ages", forRemoval=false) public void setEncodedPassword(SessionContext ctx, String password, String encoding) Deprecated.since ages - useUserService.setEncodedPassword(UserModel, String, String)Changes decoded form of the password of this user.- Parameters:
password-
-
checkPassword
Deprecated.since ages - useAuthenticationService.checkCredentials(String, String)checks a plain text password against the stored one.- Parameters:
plainPassword-
-
checkPassword
Deprecated.since ages - useAuthenticationService.checkCredentials(String, String) -
checkPassword
@Deprecated(since="ages", forRemoval=false) public boolean checkPassword(SessionContext ctx, String plainPassword) Deprecated.since ages - useAuthenticationService.checkCredentials(String, String)Checks a plain text password against the stored one.- Parameters:
plainPassword-
-
setLoginDisabled
Changes login-disabled status for this user.- Overrides:
setLoginDisabledin classGeneratedUserdisabled- the loginDisabled - Determines whether user is allowed to login to system.
-
setDeactivationDate
Changes deactivationDate for this user.- Overrides:
setDeactivationDatein classGeneratedUser- Parameters:
value- the deactivationDate - The deactivation date for the user account
-
getAllAddresses
Deprecated.since ages - useGeneratedUser.getAddresses()insteadAll addresses of this user. -
createAddress
Deprecated.since ages - useAddressService.createAddressForUser(UserModel)Creates a new address for this user. To remove an address use itsremovemethod ! -
createAddress
Deprecated.since ages - useAddressService.createAddressForUser(UserModel)Creates a new address for this user. To remove an address use itsremovemethod ! -
createAddress
Deprecated.since ages - useAddressService.createAddressForUser(UserModel)Creates a new address for this user. To remove an address use itsremovemethod ! -
createAddress
Deprecated.since ages - useAddressService.createAddressForUser(UserModel)Creates a new address for this user. To remove an address use itsremovemethod ! -
createAddress
Deprecated.since ages - useAddressService.createAddressForUser(UserModel)Creates a new address for this user, filled with the fields given in the parameter map. To remove an address use itsremovemethod ! -
createAddress
Deprecated.since agesCreates a new address for this user, filled with the fields given in the parameter map. To remove an address use itsremovemethod ! -
createAddress
@Deprecated(since="ages", forRemoval=false) public Address createAddress(SessionContext ctx, Map fields) Deprecated.since ages - useAddressService.createAddressForUser(UserModel)Creates a new address for this user, filled with the fields given in the parameter map. To remove an address use itsremovemethod ! -
createAddress
@Deprecated(since="ages", forRemoval=false) public Address createAddress(PK pk, SessionContext ctx, Map fields) Deprecated.since agesCreates a new address for this user, filled with the fields given in the parameter map. To remove an address use itsremovemethod ! -
getDefaultShippingAddress
Deprecated.since ages - please usegetDefaultDeliveryAddress()insteadGets the default shipment address of this user. This may returnnullif no such address was set. -
getDefaultShippingAddress
@Deprecated(since="ages", forRemoval=false) public Address getDefaultShippingAddress(SessionContext ctx) Deprecated.since ages - please usegetDefaultDeliveryAddress(SessionContext)insteadGets the default shipment address of this user. This may returnnullif no such address was set. -
getDefaultDeliveryAddress
Gets the default shipment address of this user. This may returnnullif no such address was set. -
getDefaultDeliveryAddress
Gets the default shipment address of this user. This may returnnullif no such address was set. -
setDefaultShippingAddress
Deprecated.since ages - please usesetDefaultDeliveryAddress(Address)insteadSets an address as default shipment address for this user. This address must belong to the user !- Parameters:
adr-
-
setDefaultShippingAddress
@Deprecated(since="ages", forRemoval=false) public void setDefaultShippingAddress(SessionContext ctx, Address adr) Deprecated.since ages - please usesetDefaultDeliveryAddress(SessionContext, Address)insteadSets an address as default shipment address for this user. This address must belong to the user !- Parameters:
adr-
-
setDefaultDeliveryAddress
Sets an address as default shipment address for this user. This address must belong to the user !- Parameters:
adr-
-
setDefaultDeliveryAddress
Sets an address as default shipment address for this user. This address must belong to the user !- Parameters:
adr-
-
createPaymentInfo
Deprecated.since ages - usePaymentInfoService.createPaymentInfoForUser(UserModel, String)Creates a PaymentInfo object for this user.- Parameters:
code- a user defined code for this PaymentInfo
-
createPaymentInfo
@Deprecated(since="ages", forRemoval=false) public PaymentInfo createPaymentInfo(SessionContext ctx, String code) Deprecated.since ages - usePaymentInfoService.createPaymentInfoForUser(UserModel, String)Creates a PaymentInfo object for this user.- Parameters:
ctx-code- a user defined code for this PaymentInfo
-
saveCurrentCart
@Deprecated(since="ages", forRemoval=false) public Cart saveCurrentCart(String code) throws ConsistencyCheckException Deprecated.Creates a new persistentcartbelonging to this user as copy of the current session cart.- Throws:
ConsistencyCheckException
-
saveCurrentCart
@Deprecated(since="ages", forRemoval=false) public Cart saveCurrentCart(SessionContext ctx, String code) throws ConsistencyCheckException Deprecated.Creates a new persistentcartbelonging to this user as copy of the current session cart.- Throws:
ConsistencyCheckException
-
getCart
TheCartwith code.- Parameters:
code- code of the Cart
-
isAdmin
Deprecated.since ages - useUserService.isAdmin(UserModel)Checks whether this user has admin status. This is true if the user is the admin user or is (even recursive) member of the admin group. -
isAdminEmployee
Deprecated.since ages - useUserService.isAdminEmployee(UserModel)Returns true if the current user is the admin employee. -
isAnonymousCustomer
Deprecated.since ages - useUserService.isAnonymousUser(UserModel)Returnstrue, if thisCustomeris the default anonymousCustomerinstance of this system. The anonymousCustomeris used for unauthorizedJaloSessions.- Returns:
trueif thisCustomeris the default anonymousCustomerinstance of this system
-
getDisplayName
Deprecated.since ages - usePrincipalModel.getDisplayName()- Specified by:
getDisplayNamein classPrincipal- Returns:
- the displayName
-
getAllDisplayName
@Deprecated(since="ages", forRemoval=false) public Map<Language,String> getAllDisplayName(SessionContext ctx) Deprecated.since ages - usePrincipalModel.getDisplayName(java.util.Locale)Description copied from class:PrincipalOld jalo generated method from GeneratedPrincipal - Getter of thePrincipal.displayNamejalo localized attribute.- Specified by:
getAllDisplayNamein classPrincipal- Returns:
- the localized displayName
-
checkRemovable
@Deprecated(since="ages", forRemoval=false) protected void checkRemovable(SessionContext ctx) throws ConsistencyCheckException Deprecated.since agesDescription copied from class:ItemChecks whether or not this it may be removed or not. Called before the actual removal process.- Overrides:
checkRemovablein classItem- Throws:
ConsistencyCheckException- to indicate that the item cannot be removed
-