Package org.europa.together.service.acl
Class AccountService
java.lang.Object
org.europa.together.service.acl.AccountService
RESTful Service for Accounts.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- elmar.dott@gmail.com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponsecreateAccount(AccountDO account) jakarta.ws.rs.core.ResponsedeactivateAccount(String accountId) jakarta.ws.rs.core.ResponsedeleteAccount(String accountId) jakarta.ws.rs.core.ResponsefetchAccount(String accountId) jakarta.ws.rs.core.ResponsefetchAccountsOfRole(String role) jakarta.ws.rs.core.Responsejakarta.ws.rs.core.ResponsefetchAllAccounts(String accountId) jakarta.ws.rs.core.Responsejakarta.ws.rs.core.ResponsefetchLoginsOfAccount(String accountId) jakarta.ws.rs.core.Responsejakarta.ws.rs.core.ResponseupdateAccount(AccountDO account) jakarta.ws.rs.core.ResponseverifyAccount(String accountId)
-
Constructor Details
-
AccountService
public AccountService()
-
-
Method Details
-
fetchAccount
@GET @Path("/{account}") @Produces("application/json") @API(status=STABLE, since="1") public jakarta.ws.rs.core.Response fetchAccount(@PathParam("account") String accountId) -
deactivateAccount
@PUT @Path("/deactivate/{account}") @Consumes("text/plain") @API(status=STABLE, since="1") public jakarta.ws.rs.core.Response deactivateAccount(@PathParam("account") String accountId) -
verifyAccount
@PUT @Path("/verify/{account}") @Consumes("text/plain") @API(status=STABLE, since="1") public jakarta.ws.rs.core.Response verifyAccount(@PathParam("account") String accountId) -
updateAccount
@PUT @Consumes("application/json") @API(status=STABLE, since="1") public jakarta.ws.rs.core.Response updateAccount(AccountDO account) -
createAccount
@POST @Consumes("application/json") @API(status=STABLE, since="1") public jakarta.ws.rs.core.Response createAccount(AccountDO account) -
deleteAccount
@DELETE @Path("/{account}") @API(status=STABLE, since="1") public jakarta.ws.rs.core.Response deleteAccount(@PathParam("account") String accountId) -
fetchAllAccounts
@GET @Path("/list") @Produces("application/json") @API(status=STABLE, since="1") public jakarta.ws.rs.core.Response fetchAllAccounts(@PathParam("account") String accountId) -
fetchNotConfirmedAccount
@GET @Path("/list/not-confirmed") @Produces("application/json") @API(status=STABLE, since="1") public jakarta.ws.rs.core.Response fetchNotConfirmedAccount() -
fetchActivatedAccount
@GET @Path("/list/activated") @Produces("application/json") @API(status=STABLE, since="1") public jakarta.ws.rs.core.Response fetchActivatedAccount() -
fetchDeactivatedAccount
@GET @Path("/list/deactivated") @Produces("application/json") @API(status=STABLE, since="1") public jakarta.ws.rs.core.Response fetchDeactivatedAccount() -
fetchAccountsOfRole
@GET @Path("/list/{role}") @Produces("application/json") @API(status=STABLE, since="1") public jakarta.ws.rs.core.Response fetchAccountsOfRole(@PathParam("role") String role) -
fetchLoginsOfAccount
@GET @Path("/list/logins/{account}") @Produces("application/json") @API(status=STABLE, since="1") public jakarta.ws.rs.core.Response fetchLoginsOfAccount(@PathParam("account") String accountId)
-