Catalog alignment
[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
21 package org.openecomp.sdc.be.dao.cassandra.schema;
22
23 import org.openecomp.sdc.be.dao.cassandra.schema.tables.*;
24
25 public enum Table {
26
27     ARTIFACT(new ArtifactTableDescription()),
28     USER_ADMIN_EVENT(new UserAdminEventTableDescription()),
29     USER_ACCESS_EVENT(new UserAccessEventTableDescription()),
30     RESOURCE_ADMIN_EVENT(new ResAdminEventTableDescription()),
31     DISTRIBUTION_DOWNLOAD_EVENT(new DistribDownloadEventTableDesc()),
32     DISTRIBUTION_ENGINE_EVENT(new DistribEngineEventTableDesc()),
33     DISTRIBUTION_NOTIFICATION_EVENT(new DistribNotifEventTableDesc()),
34     DISTRIBUTION_STATUS_EVENT(new DistribStatusEventTableDesc()),
35     DISTRIBUTION_DEPLOY_EVENT(new DistribDeployEventTableDesc()),
36     DISTRIBUTION_GET_UEB_CLUSTER_EVENT(new GetUebClusterEventTableDesc()),
37     AUTH_EVENT(new AuthEventTableDescription()),
38     CATEGORY_EVENT(new CategoryEventTableDescription()),
39     GET_USERS_LIST_EVENT(new GetUsersListEventTableDesc()),
40     GET_CATEGORY_HIERARCHY_EVENT(new GetCatHierEventTableDesc()),
41     EXTERNAL_API_EVENT(new ExternalApiEventTableDesc()),
42     SDC_SCHEMA_FILES(new SdcSchemaFilesTableDescription()),
43     SDC_REPO(new MigrationTasksTableDescription()),
44     SDC_OPERATIONAL_ENVIRONMENT(new OperationalEnvironmentsTableDescription()),
45     AUDIT_ECOMP_OPERATIONAL_ENVIRONMENT(new EcompOperationalEnvironmentEventTableDesc()),
46     FEATURE_TOGGLE_STATE(new FeatureToggleEventTableDesc());
47
48         ITableDescription tableDescription;
49
50         Table(ITableDescription tableDescription) {
51                 this.tableDescription = tableDescription;
52         }
53
54         public ITableDescription getTableDescription() {
55                 return tableDescription;
56         }
57
58 }