@Component(value="userBusinessLogic") public class UserBusinessLogic extends Object implements IUserBusinessLogic
Constructor and Description |
---|
UserBusinessLogic() |
Modifier and Type | Method and Description |
---|---|
fj.data.Either<User,ResponseFormat> |
authorize(User authUser) |
fj.data.Either<User,ResponseFormat> |
createUser(User modifier,
User newUser) |
fj.data.Either<User,ResponseFormat> |
deActivateUser(User modifier,
String userUniuqeIdToDeactive) |
fj.data.Either<List<User>,ResponseFormat> |
getAllAdminUsers(javax.servlet.ServletContext context) |
fj.data.Either<FunctionalMenuInfo,ActionStatus> |
getFunctionalMenu(String userId)
return the functional menu of a given user
|
fj.data.Either<User,ActionStatus> |
getUser(String userId,
boolean inTransaction) |
fj.data.Either<List<User>,ResponseFormat> |
getUsersList(String modifierAttId,
List<String> roles,
String rolesStr) |
fj.data.Either<User,ResponseFormat> |
updateUserCredentials(User updatedUserCred) |
fj.data.Either<User,ResponseFormat> |
updateUserRole(User modifier,
String userIdToUpdate,
String userRole) |
public fj.data.Either<User,ActionStatus> getUser(String userId, boolean inTransaction)
getUser
in interface IUserBusinessLogic
public fj.data.Either<User,ResponseFormat> createUser(User modifier, User newUser)
createUser
in interface IUserBusinessLogic
public fj.data.Either<User,ResponseFormat> updateUserRole(User modifier, String userIdToUpdate, String userRole)
updateUserRole
in interface IUserBusinessLogic
public fj.data.Either<List<User>,ResponseFormat> getAllAdminUsers(javax.servlet.ServletContext context)
getAllAdminUsers
in interface IUserBusinessLogic
public fj.data.Either<List<User>,ResponseFormat> getUsersList(String modifierAttId, List<String> roles, String rolesStr)
getUsersList
in interface IUserBusinessLogic
public fj.data.Either<User,ResponseFormat> deActivateUser(User modifier, String userUniuqeIdToDeactive)
deActivateUser
in interface IUserBusinessLogic
public fj.data.Either<User,ResponseFormat> authorize(User authUser)
authorize
in interface IUserBusinessLogic
public fj.data.Either<User,ResponseFormat> updateUserCredentials(User updatedUserCred)
public fj.data.Either<FunctionalMenuInfo,ActionStatus> getFunctionalMenu(String userId)
getFunctionalMenu
in interface IUserBusinessLogic
userId
- inTransaction
- Copyright © 2017. All rights reserved.