blob: 4b4342d40cd46dfc88df2b6c1e6a15f6c740fffe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
package org.openecomp.portalapp.portal.service;
import java.util.List;
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 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 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
* @param endpointId
* @throws Exception
*/
void saveEndpointAccount(Long accountId, Long endpointId) throws Exception;
/**
* Returns list of all BasicAuthCredentials in the sytem
*
* @return List<BasicAuthCredentials>
* @throws Exception
*/
List<BasicAuthCredentials> getAccountData() throws Exception;
/**
* Deletes BasicAuthenticationAccount
*
* @param accountId
* @throws Exception
*/
void deleteEndpointAccout(Long accountId) throws Exception;
/**
* Updates BasicAuthenticationAccount
*
* @param accountId
* @param newCredential
* BasicAuthCredentials
* @throws Exception
*/
void updateBasicAuthAccount(Long accountId, BasicAuthCredentials newCredential) throws Exception;
}
|