1 package org.openecomp.portalapp.portal.service;
5 import org.openecomp.portalapp.portal.domain.BasicAuthCredentials;
6 import org.openecomp.portalapp.portal.domain.EPEndpoint;
8 public interface BasicAuthAccountService {
11 * Saves Basic Authentication account for external systems
12 * @param BasicAuthCredentials
13 * @return Id of the newly created account
15 Long saveBasicAuthAccount(BasicAuthCredentials newCredential) throws Exception;
18 * Saves Endpoint associated with a Basic Auth account
20 * @return Id of the newly created endpoint
22 Long saveEndpoints(EPEndpoint endpoint) throws Exception;
25 * Saves Endpoint associated with a Basic Auth account
26 * @param accountId, endpointId
28 void saveEndpointAccount(Long accountId, Long endpointId) throws Exception;
31 * Returns list of all BasicAuthCredentials in the sytem
32 * @return List<BasicAuthCredentials>
34 List<BasicAuthCredentials> getAccountData() throws Exception;
37 * Deletes BasicAuthenticationAccount
40 void deleteEndpointAccout(Long accountId) throws Exception;
43 * Updates BasicAuthenticationAccount
44 * @param accountId, BasicAuthCredentials
46 void updateBasicAuthAccount(Long accountId, BasicAuthCredentials newCredential) throws Exception;