Package step.core.access.services
Class UserAdminServices
- java.lang.Object
-
- step.framework.server.AbstractServices<step.core.access.User>
-
- step.core.deployment.AbstractStepServices
-
- step.core.access.services.UserAdminServices
-
@Singleton @Path("admin") public class UserAdminServices extends step.core.deployment.AbstractStepServices
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UserAdminServices.ChangePasswordRequest
static class
UserAdminServices.ChangePasswordResponse
static class
UserAdminServices.Password
-
Constructor Summary
Constructors Constructor Description UserAdminServices()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserAdminServices.ChangePasswordResponse
changePassword(UserAdminServices.ChangePasswordRequest request)
protected step.core.access.User
getCurrentUser()
List<PasswordPolicyDescriptor>
getPasswordPolicies()
PublicKey
getPublicKey()
step.core.access.User
getUser(String username)
List<step.core.access.User>
getUserList()
void
init()
void
removeUser(String username)
jakarta.ws.rs.core.Response
resetAdminPassword(String requestEncrypted)
UserAdminServices.Password
resetPassword(String username)
void
saveUser(step.core.access.User user)
-
Methods inherited from class step.core.deployment.AbstractStepServices
getContext, getExecutionRunnable, getObjectEnricher, getObjectFilter, getScheduler
-
-
-
-
Method Detail
-
init
@PostConstruct public void init() throws Exception
- Overrides:
init
in classstep.core.deployment.AbstractStepServices
- Throws:
Exception
-
saveUser
@POST @Consumes("application/json") @Path("/user") public void saveUser(step.core.access.User user)
-
removeUser
@DELETE @Path("/user/{id}") public void removeUser(@PathParam("id") String username)
-
getUser
@GET @Path("/user/{id}") @Produces("application/json") public step.core.access.User getUser(@PathParam("id") String username)
-
getUserList
@GET @Path("/users") @Produces("application/json") public List<step.core.access.User> getUserList()
-
getPasswordPolicies
@GET @Path("/security/passwordpolicies") @Produces("application/json") public List<PasswordPolicyDescriptor> getPasswordPolicies()
-
changePassword
@POST @Path("/myaccount/changepwd") @Consumes("application/json") @Produces("application/json") public UserAdminServices.ChangePasswordResponse changePassword(UserAdminServices.ChangePasswordRequest request)
-
getCurrentUser
protected step.core.access.User getCurrentUser()
-
resetPassword
@POST @Consumes("application/json") @Produces("application/json") @Path("/user/{id}/resetpwd") public UserAdminServices.Password resetPassword(@PathParam("id") String username)
-
resetAdminPassword
@POST @Produces("application/json") @Path("/serviceaccount/resetpwd") public jakarta.ws.rs.core.Response resetAdminPassword(String requestEncrypted)
-
getPublicKey
public PublicKey getPublicKey()
-
-