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 classUserAdminServices.ChangePasswordRequeststatic classUserAdminServices.ChangePasswordResponsestatic classUserAdminServices.Password
-
Constructor Summary
Constructors Constructor Description UserAdminServices()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserAdminServices.ChangePasswordResponsechangePassword(UserAdminServices.ChangePasswordRequest request)protected step.core.access.UsergetCurrentUser()java.util.List<PasswordPolicyDescriptor>getPasswordPolicies()java.security.PublicKeygetPublicKey()step.core.access.UsergetUser(java.lang.String username)java.util.List<step.core.access.User>getUserList()voidinit()voidremoveUser(java.lang.String username)jakarta.ws.rs.core.ResponseresetAdminPassword(java.lang.String requestEncrypted)UserAdminServices.PasswordresetPassword(java.lang.String username)voidsaveUser(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 java.lang.Exception- Overrides:
initin 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()
-
-