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()
java.util.List<PasswordPolicyDescriptor>
getPasswordPolicies()
java.security.PublicKey
getPublicKey()
step.core.access.User
getUser(java.lang.String username)
java.util.List<step.core.access.User>
getUserList()
void
init()
void
removeUser(java.lang.String username)
jakarta.ws.rs.core.Response
resetAdminPassword(java.lang.String requestEncrypted)
UserAdminServices.Password
resetPassword(java.lang.String username)
void
saveUser(step.core.access.User user)
-
Methods inherited from class step.core.deployment.AbstractStepServices
checkRightsOnBehalfOf, getAuthorizationManager, getContext, getExecutionRunnable, getObjectEnricher, getObjectFilter, getScheduler
-
-
-
-
Method Detail
-
init
@PostConstruct public void init() throws java.lang.Exception
- Overrides:
init
in classstep.core.deployment.AbstractStepServices
- Throws:
java.lang.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") java.lang.String username)
-
getUser
@GET @Path("/user/{id}") @Produces("application/json") public step.core.access.User getUser(@PathParam("id") java.lang.String username)
-
getUserList
@GET @Path("/users") @Produces("application/json") public java.util.List<step.core.access.User> getUserList()
-
getPasswordPolicies
@GET @Path("/security/passwordpolicies") @Produces("application/json") public java.util.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") java.lang.String username)
-
resetAdminPassword
@POST @Produces("application/json") @Path("/serviceaccount/resetpwd") public jakarta.ws.rs.core.Response resetAdminPassword(java.lang.String requestEncrypted)
-
getPublicKey
public java.security.PublicKey getPublicKey()
-
-