Class RootService
java.lang.Object
callofproject.dev.authentication.service.RootService
Service class for handling root-level operations.
-
Constructor Summary
ConstructorsConstructorDescriptionRootService
(callofproject.dev.repository.authentication.dal.UserManagementServiceHelper managementServiceHelper) Constructs a new RootService with the given UserManagementServiceHelper. -
Method Summary
Modifier and TypeMethodDescriptioncallofproject.dev.data.common.clas.ResponseMessage<Boolean>
giveAdminRoleByUsername
(String username) Gives the admin role to a user by their username.callofproject.dev.data.common.clas.ResponseMessage<Boolean>
removeAdminRoleByUsername
(String username) Removes the admin role from a user by their username.
-
Constructor Details
-
RootService
public RootService(callofproject.dev.repository.authentication.dal.UserManagementServiceHelper managementServiceHelper) Constructs a new RootService with the given UserManagementServiceHelper.- Parameters:
managementServiceHelper
- The UserManagementServiceHelper to be used by this service.
-
-
Method Details
-
giveAdminRoleByUsername
public callofproject.dev.data.common.clas.ResponseMessage<Boolean> giveAdminRoleByUsername(String username) Gives the admin role to a user by their username.- Parameters:
username
- The username of the user to give the admin role to.- Returns:
- A ResponseMessage containing a boolean value indicating the success of the operation.
-
removeAdminRoleByUsername
public callofproject.dev.data.common.clas.ResponseMessage<Boolean> removeAdminRoleByUsername(String username) Removes the admin role from a user by their username.- Parameters:
username
- The username of the user to remove the admin role from.- Returns:
- A ResponseMessage containing a boolean value indicating the success of the operation.
-