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
 
  13          * @param newCredential
 
  14          *            BasicAuthCredentials
 
  15          * @return Id of the newly created account
 
  18         Long saveBasicAuthAccount(BasicAuthCredentials newCredential) throws Exception;
 
  21          * Saves Endpoint associated with a Basic Auth account
 
  25          * @return Id of the newly created endpoint
 
  28         Long saveEndpoints(EPEndpoint endpoint) throws Exception;
 
  31          * Saves Endpoint associated with a Basic Auth account
 
  37         void saveEndpointAccount(Long accountId, Long endpointId) throws Exception;
 
  40          * Returns list of all BasicAuthCredentials in the sytem
 
  42          * @return List<BasicAuthCredentials>
 
  45         List<BasicAuthCredentials> getAccountData() throws Exception;
 
  48          * Deletes BasicAuthenticationAccount
 
  53         void deleteEndpointAccout(Long accountId) throws Exception;
 
  56          * Updates BasicAuthenticationAccount
 
  59          * @param newCredential
 
  60          *            BasicAuthCredentials
 
  63         void updateBasicAuthAccount(Long accountId, BasicAuthCredentials newCredential) throws Exception;