Add models imports endpoint and persistence structure
[sdc.git] / catalog-dao / src / main / java / org / openecomp / sdc / be / dao / cassandra / schema / Table.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20 package org.openecomp.sdc.be.dao.cassandra.schema;
21
22 import org.openecomp.sdc.be.dao.cassandra.schema.tables.ArtifactTableDescription;
23 import org.openecomp.sdc.be.dao.cassandra.schema.tables.AuthEventTableDescription;
24 import org.openecomp.sdc.be.dao.cassandra.schema.tables.CategoryEventTableDescription;
25 import org.openecomp.sdc.be.dao.cassandra.schema.tables.DistribDeployEventTableDesc;
26 import org.openecomp.sdc.be.dao.cassandra.schema.tables.DistribDownloadEventTableDesc;
27 import org.openecomp.sdc.be.dao.cassandra.schema.tables.DistribEngineEventTableDesc;
28 import org.openecomp.sdc.be.dao.cassandra.schema.tables.DistribNotifEventTableDesc;
29 import org.openecomp.sdc.be.dao.cassandra.schema.tables.DistribStatusEventTableDesc;
30 import org.openecomp.sdc.be.dao.cassandra.schema.tables.EcompOperationalEnvironmentEventTableDesc;
31 import org.openecomp.sdc.be.dao.cassandra.schema.tables.ExternalApiEventTableDesc;
32 import org.openecomp.sdc.be.dao.cassandra.schema.tables.FeatureToggleEventTableDesc;
33 import org.openecomp.sdc.be.dao.cassandra.schema.tables.GetCatHierEventTableDesc;
34 import org.openecomp.sdc.be.dao.cassandra.schema.tables.GetUebClusterEventTableDesc;
35 import org.openecomp.sdc.be.dao.cassandra.schema.tables.GetUsersListEventTableDesc;
36 import org.openecomp.sdc.be.dao.cassandra.schema.tables.MigrationTasksTableDescription;
37 import org.openecomp.sdc.be.dao.cassandra.schema.tables.OperationalEnvironmentsTableDescription;
38 import org.openecomp.sdc.be.dao.cassandra.schema.tables.ResAdminEventTableDescription;
39 import org.openecomp.sdc.be.dao.cassandra.schema.tables.SdcSchemaFilesTableDescription;
40 import org.openecomp.sdc.be.dao.cassandra.schema.tables.ToscaImportByModelTableDescription;
41 import org.openecomp.sdc.be.dao.cassandra.schema.tables.UserAccessEventTableDescription;
42 import org.openecomp.sdc.be.dao.cassandra.schema.tables.UserAdminEventTableDescription;
43
44 public enum Table {
45     // @formatter:off
46     ARTIFACT(new ArtifactTableDescription()),
47     USER_ADMIN_EVENT(new UserAdminEventTableDescription()),
48     USER_ACCESS_EVENT(new UserAccessEventTableDescription()),
49     RESOURCE_ADMIN_EVENT(new ResAdminEventTableDescription()),
50     DISTRIBUTION_DOWNLOAD_EVENT(new DistribDownloadEventTableDesc()),
51     DISTRIBUTION_ENGINE_EVENT(new DistribEngineEventTableDesc()),
52     DISTRIBUTION_NOTIFICATION_EVENT(new DistribNotifEventTableDesc()),
53     DISTRIBUTION_STATUS_EVENT(new DistribStatusEventTableDesc()),
54     DISTRIBUTION_DEPLOY_EVENT(new DistribDeployEventTableDesc()),
55     DISTRIBUTION_GET_UEB_CLUSTER_EVENT(new GetUebClusterEventTableDesc()),
56     AUTH_EVENT(new AuthEventTableDescription()),
57     CATEGORY_EVENT(new CategoryEventTableDescription()),
58     GET_USERS_LIST_EVENT(new GetUsersListEventTableDesc()),
59     GET_CATEGORY_HIERARCHY_EVENT(new GetCatHierEventTableDesc()),
60     EXTERNAL_API_EVENT(new ExternalApiEventTableDesc()),
61     SDC_SCHEMA_FILES(new SdcSchemaFilesTableDescription()),
62     SDC_REPO(new MigrationTasksTableDescription()),
63     SDC_OPERATIONAL_ENVIRONMENT(new OperationalEnvironmentsTableDescription()),
64     AUDIT_ECOMP_OPERATIONAL_ENVIRONMENT(new EcompOperationalEnvironmentEventTableDesc()),
65     FEATURE_TOGGLE_STATE(new FeatureToggleEventTableDesc()),
66     TOSCA_IMPORT_BY_MODEL(new ToscaImportByModelTableDescription());
67     // @formatter:on
68
69     ITableDescription tableDescription;
70
71     Table(ITableDescription tableDescription) {
72         this.tableDescription = tableDescription;
73     }
74
75     public ITableDescription getTableDescription() {
76         return tableDescription;
77     }
78 }