Package org.apache.ofbiz.common.login
Class LoginServices
- java.lang.Object
-
- org.apache.ofbiz.common.login.LoginServices
-
public class LoginServices extends java.lang.Object
Title: Login Services
-
-
Constructor Summary
Constructors Constructor Description LoginServices()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
checkNewPassword(GenericValue userLogin, java.lang.String currentPassword, java.lang.String newPassword, java.lang.String newPasswordVerify, java.lang.String passwordHint, java.util.List<java.lang.String> errorMessageList, boolean ignoreCurrentPassword, java.util.Locale locale)
static boolean
checkPassword(java.lang.String oldPassword, boolean useEncryption, java.lang.String currentPassword)
static java.util.Map<java.lang.String,java.lang.Object>
createUserLogin(DispatchContext ctx, java.util.Map<java.lang.String,?> context)
Creates a UserLoginstatic void
createUserLoginPasswordHistory(GenericValue userLogin)
static java.lang.String
getHashType()
static java.util.Map<java.lang.String,java.lang.Object>
updatePassword(DispatchContext ctx, java.util.Map<java.lang.String,?> context)
Updates UserLogin Password infostatic java.util.Map<java.lang.String,java.lang.Object>
updateUserLoginId(DispatchContext ctx, java.util.Map<java.lang.String,?> context)
Updates the UserLoginId for a party, replicating password, etc from current login and expiring the old login.static java.util.Map<java.lang.String,java.lang.Object>
updateUserLoginSecurity(DispatchContext ctx, java.util.Map<java.lang.String,?> context)
Updates UserLogin Security infostatic java.util.Map<java.lang.String,java.lang.Object>
userImpersonate(DispatchContext ctx, java.util.Map<java.lang.String,?> context)
Login service to authenticate a username without password, storing historystatic java.util.Map<java.lang.String,java.lang.Object>
userLogin(DispatchContext ctx, java.util.Map<java.lang.String,?> context)
Login service to authenticate username and password
-
-
-
Field Detail
-
module
public static final java.lang.String module
-
resource
public static final java.lang.String resource
- See Also:
- Constant Field Values
-
-
Method Detail
-
userLogin
public static java.util.Map<java.lang.String,java.lang.Object> userLogin(DispatchContext ctx, java.util.Map<java.lang.String,?> context)
Login service to authenticate username and password- Returns:
- Map of results including (userLogin) GenericValue object
-
userImpersonate
public static java.util.Map<java.lang.String,java.lang.Object> userImpersonate(DispatchContext ctx, java.util.Map<java.lang.String,?> context)
Login service to authenticate a username without password, storing history- Returns:
- Map of results including (userLogin) GenericValue object
-
createUserLoginPasswordHistory
public static void createUserLoginPasswordHistory(GenericValue userLogin) throws GenericEntityException
- Throws:
GenericEntityException
-
createUserLogin
public static java.util.Map<java.lang.String,java.lang.Object> createUserLogin(DispatchContext ctx, java.util.Map<java.lang.String,?> context)
Creates a UserLogin- Parameters:
ctx
- The DispatchContext that this service is operating incontext
- Map containing the input parameters- Returns:
- Map with the result of the service, the output parameters
-
updatePassword
public static java.util.Map<java.lang.String,java.lang.Object> updatePassword(DispatchContext ctx, java.util.Map<java.lang.String,?> context)
Updates UserLogin Password info- Parameters:
ctx
- The DispatchContext that this service is operating incontext
- Map containing the input parameters- Returns:
- Map with the result of the service, the output parameters
-
updateUserLoginId
public static java.util.Map<java.lang.String,java.lang.Object> updateUserLoginId(DispatchContext ctx, java.util.Map<java.lang.String,?> context)
Updates the UserLoginId for a party, replicating password, etc from current login and expiring the old login.- Parameters:
ctx
- The DispatchContext that this service is operating incontext
- Map containing the input parameters- Returns:
- Map with the result of the service, the output parameters
-
updateUserLoginSecurity
public static java.util.Map<java.lang.String,java.lang.Object> updateUserLoginSecurity(DispatchContext ctx, java.util.Map<java.lang.String,?> context)
Updates UserLogin Security info- Parameters:
ctx
- The DispatchContext that this service is operating incontext
- Map containing the input parameters- Returns:
- Map with the result of the service, the output parameters
-
checkNewPassword
public static void checkNewPassword(GenericValue userLogin, java.lang.String currentPassword, java.lang.String newPassword, java.lang.String newPasswordVerify, java.lang.String passwordHint, java.util.List<java.lang.String> errorMessageList, boolean ignoreCurrentPassword, java.util.Locale locale)
-
getHashType
public static java.lang.String getHashType()
-
checkPassword
public static boolean checkPassword(java.lang.String oldPassword, boolean useEncryption, java.lang.String currentPassword)
-
-