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()List<PasswordPolicyDescriptor>getPasswordPolicies()PublicKeygetPublicKey()step.core.access.UsergetUser(String username)List<step.core.access.User>getUserList()voidinit()voidremoveUser(String username)jakarta.ws.rs.core.ResponseresetAdminPassword(String requestEncrypted)UserAdminServices.PasswordresetPassword(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 Exception- Overrides:
initin 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()
-
-