1 package org.openecomp.dcae.dmaapbc.dbcapp.service;
5 import org.openecomp.dcae.dmaapbc.dbcapp.domain.DmaapAccess;
6 import org.openecomp.dcae.dmaapbc.dbcapp.domain.ManifestTransportModel;
9 * Defines methods to manipulate the database table with DmaapAccess domain
10 * objects. No method throws a checked exception, in keeping with the Spring
11 * philosophy of throwing unchecked exceptions.
13 public interface DmaapAccessService {
16 * Gets build information.
18 * @return List of key-value pairs; implementations may return null.
20 ManifestTransportModel getManifest();
23 * Gets the number of Dmaap Access entries.
25 * @return Number of rows in the table.
27 int getDmaapAccessCount();
30 * Gets all DMaaP access rows in the table for the specified user.
33 * Login ID of the user
34 * @return List of DMaaP instance objects, which may be empty.
36 List<DmaapAccess> getDmaapAccessList(String userId);
39 * Gets the DMaaP access object with the specified row ID.
43 * @return DMaap instance; null if none exists.
45 DmaapAccess getDmaapAccess(Long dmaapId);
48 * Creates a new managed object (a new row in the table).
51 * DMaaP instance to create.
53 void saveDmaapAccess(DmaapAccess dmaap);
56 * Deletes the DMaaP access row with the specified ID.
61 void deleteDmaapAccess(Long dmaapId);