re base code
[sdc.git] / catalog-be / src / test / java / org / openecomp / sdc / be / components / path / beans / ComponentCassandraDaoMock.java
1 package org.openecomp.sdc.be.components.path.beans;
2
3 import fj.data.Either;
4 import org.apache.commons.lang3.tuple.ImmutablePair;
5 import org.openecomp.sdc.be.dao.api.ActionStatus;
6 import org.openecomp.sdc.be.dao.cassandra.CassandraOperationStatus;
7 import org.openecomp.sdc.be.dao.cassandra.ComponentCacheAccessor;
8 import org.openecomp.sdc.be.dao.cassandra.ComponentCassandraDao;
9 import org.openecomp.sdc.be.resources.data.ComponentCacheData;
10 import org.springframework.stereotype.Component;
11
12 import javax.annotation.PostConstruct;
13 import java.util.List;
14 import java.util.Map;
15 import java.util.Set;
16
17 @Component("component-cassandra-dao")
18 public class ComponentCassandraDaoMock  extends ComponentCassandraDao {
19
20         public static Integer DEFAULT_FETCH_SIZE = 500;
21         private ComponentCacheAccessor componentCacheAccessor;
22
23         public ComponentCassandraDaoMock() {
24             super();
25         }
26
27         @PostConstruct
28         public void init() {
29
30         }
31
32         public Either<List<ComponentCacheData>, ActionStatus> getComponents(List<String> ids) {
33
34             return null;
35         }
36
37         public Either<List<ComponentCacheData>, ActionStatus> getAllComponentIdTimeAndType() {
38             return null;
39         }
40
41
42         public Either<ComponentCacheData, ActionStatus> getComponent(String id) {
43
44             return null;
45         }
46
47         public CassandraOperationStatus saveComponent(ComponentCacheData componentCacheData) {
48             return null;
49            }
50
51
52         public Either<Boolean, CassandraOperationStatus> isTableEmpty(String tableName) {
53             return null;
54         }
55
56
57         public Either<ImmutablePair<List<ComponentCacheData>, Set<String>>, ActionStatus> getComponents(
58                 Map<String, Long> idToTimestampMap) {
59
60             return null;
61         }
62
63         public CassandraOperationStatus deleteComponent(String id) {
64             return null;
65         }
66
67     }
68