X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=ecomp-portal-BE-common%2Fsrc%2Fmain%2Fjava%2Forg%2Fopenecomp%2Fportalapp%2Fportal%2Fservice%2FBasicAuthAccountService.java;h=4b4342d40cd46dfc88df2b6c1e6a15f6c740fffe;hb=627badaf69987c01811c477219fd943757a635f5;hp=011a64858197c814321d254544d34e45a14a1da6;hpb=ba838f2e13f1e8050c75e68bd3733d56d8f416d5;p=portal.git diff --git a/ecomp-portal-BE-common/src/main/java/org/openecomp/portalapp/portal/service/BasicAuthAccountService.java b/ecomp-portal-BE-common/src/main/java/org/openecomp/portalapp/portal/service/BasicAuthAccountService.java index 011a6485..4b4342d4 100644 --- a/ecomp-portal-BE-common/src/main/java/org/openecomp/portalapp/portal/service/BasicAuthAccountService.java +++ b/ecomp-portal-BE-common/src/main/java/org/openecomp/portalapp/portal/service/BasicAuthAccountService.java @@ -6,42 +6,59 @@ import org.openecomp.portalapp.portal.domain.BasicAuthCredentials; import org.openecomp.portalapp.portal.domain.EPEndpoint; public interface BasicAuthAccountService { - + /** - * Saves Basic Authentication account for external systems - * @param BasicAuthCredentials + * Saves Basic Authentication account for external systems + * + * @param newCredential + * BasicAuthCredentials * @return Id of the newly created account + * @throws Exception */ Long saveBasicAuthAccount(BasicAuthCredentials newCredential) throws Exception; - + /** - * Saves Endpoint associated with a Basic Auth account - * @param EPEndpoint + * Saves Endpoint associated with a Basic Auth account + * + * @param endpoint + * EPEndpoint * @return Id of the newly created endpoint + * @throws Exception */ Long saveEndpoints(EPEndpoint endpoint) throws Exception; - + /** - * Saves Endpoint associated with a Basic Auth account - * @param accountId, endpointId + * Saves Endpoint associated with a Basic Auth account + * + * @param accountId + * @param endpointId + * @throws Exception */ void saveEndpointAccount(Long accountId, Long endpointId) throws Exception; - + /** - * Returns list of all BasicAuthCredentials in the sytem + * Returns list of all BasicAuthCredentials in the sytem + * * @return List + * @throws Exception */ List getAccountData() throws Exception; - + /** * Deletes BasicAuthenticationAccount + * * @param accountId + * @throws Exception */ void deleteEndpointAccout(Long accountId) throws Exception; - + /** * Updates BasicAuthenticationAccount - * @param accountId, BasicAuthCredentials + * + * @param accountId + * @param newCredential + * BasicAuthCredentials + * @throws Exception */ void updateBasicAuthAccount(Long accountId, BasicAuthCredentials newCredential) throws Exception; }