Class AppsBusinessLogic
java.lang.Object
net.tangly.app.services.AppsBusinessLogic
The business logic of the application is responsible for the processing of the business rules and the orchestration of the domain objects.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionactiveUsersFor
(String domain) Returns the list of active users for a domain.boolean
changePassword
(String username, String password, String newPassword) Changes the password of a user identified by its username and password.Optional
<net.tangly.core.domain.User> Logins a user identified by its username and password.realm()
Returns the list of users for a domain.
-
Constructor Details
-
AppsBusinessLogic
-
-
Method Details
-
realm
-
activeUsersFor
-
usersFor
-
login
public Optional<net.tangly.core.domain.User> login(@NotNull @NotNull String username, @NotNull @NotNull String password) Logins a user identified by its username and password.- Parameters:
username
- the username of the userpassword
- the password of the user- Returns:
- the user if the login is successful
-
changePassword
Changes the password of a user identified by its username and password.- Parameters:
username
- the username of the userpassword
- the current password of the usernewPassword
- the new password of the user- Returns:
- true if the password is changed successfully
-