2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.openecomp.sdc.be.dao.cassandra.schema;
23 import org.openecomp.sdc.be.dao.cassandra.schema.tables.ArtifactTableDescription;
24 import org.openecomp.sdc.be.dao.cassandra.schema.tables.AuthEventTableDescription;
25 import org.openecomp.sdc.be.dao.cassandra.schema.tables.CategoryEventTableDescription;
26 import org.openecomp.sdc.be.dao.cassandra.schema.tables.ComponentCacheTableDescription;
27 import org.openecomp.sdc.be.dao.cassandra.schema.tables.ConsumerEventTableDefinition;
28 import org.openecomp.sdc.be.dao.cassandra.schema.tables.DistribDeployEventTableDesc;
29 import org.openecomp.sdc.be.dao.cassandra.schema.tables.DistribDownloadEventTableDesc;
30 import org.openecomp.sdc.be.dao.cassandra.schema.tables.DistribEngineEventTableDesc;
31 import org.openecomp.sdc.be.dao.cassandra.schema.tables.DistribNotifEventTableDesc;
32 import org.openecomp.sdc.be.dao.cassandra.schema.tables.DistribStatusEventTableDesc;
33 import org.openecomp.sdc.be.dao.cassandra.schema.tables.EcompOperationalEnvironmentEventTableDesc;
34 import org.openecomp.sdc.be.dao.cassandra.schema.tables.ExternalApiEventTableDesc;
35 import org.openecomp.sdc.be.dao.cassandra.schema.tables.GetCatHierEventTableDesc;
36 import org.openecomp.sdc.be.dao.cassandra.schema.tables.GetUebClusterEventTableDesc;
37 import org.openecomp.sdc.be.dao.cassandra.schema.tables.GetUsersListEventTableDesc;
38 import org.openecomp.sdc.be.dao.cassandra.schema.tables.MigrationTasksTableDescription;
39 import org.openecomp.sdc.be.dao.cassandra.schema.tables.OperationalEnvironmentsTableDescription;
40 import org.openecomp.sdc.be.dao.cassandra.schema.tables.ResAdminEventTableDescription;
41 import org.openecomp.sdc.be.dao.cassandra.schema.tables.SdcSchemaFilesTableDescription;
42 import org.openecomp.sdc.be.dao.cassandra.schema.tables.UserAccessEventTableDescription;
43 import org.openecomp.sdc.be.dao.cassandra.schema.tables.UserAdminEventTableDescription;
47 ARTIFACT(new ArtifactTableDescription()),
48 USER_ADMIN_EVENT(new UserAdminEventTableDescription()),
49 USER_ACCESS_EVENT(new UserAccessEventTableDescription()),
50 RESOURCE_ADMIN_EVENT(new ResAdminEventTableDescription()),
51 DISTRIBUTION_DOWNLOAD_EVENT(new DistribDownloadEventTableDesc()),
52 DISTRIBUTION_ENGINE_EVENT(new DistribEngineEventTableDesc()),
53 DISTRIBUTION_NOTIFICATION_EVENT(new DistribNotifEventTableDesc()),
54 DISTRIBUTION_STATUS_EVENT(new DistribStatusEventTableDesc()),
55 DISTRIBUTION_DEPLOY_EVENT(new DistribDeployEventTableDesc()),
56 DISTRIBUTION_GET_UEB_CLUSTER_EVENT(new GetUebClusterEventTableDesc()),
57 AUTH_EVENT(new AuthEventTableDescription()),
58 CONSUMER_EVENT(new ConsumerEventTableDefinition()),
59 CATEGORY_EVENT(new CategoryEventTableDescription()),
60 GET_USERS_LIST_EVENT(new GetUsersListEventTableDesc()),
61 GET_CATEGORY_HIERARCHY_EVENT(new GetCatHierEventTableDesc()),
62 EXTERNAL_API_EVENT(new ExternalApiEventTableDesc()),
63 COMPONENT_CACHE(new ComponentCacheTableDescription()),
64 SDC_SCHEMA_FILES(new SdcSchemaFilesTableDescription()),
65 SDC_REPO(new MigrationTasksTableDescription()),
66 SDC_OPERATIONAL_ENVIRONMENT(new OperationalEnvironmentsTableDescription()),
67 AUDIT_ECOMP_OPERATIONAL_ENVIRONMENT(new EcompOperationalEnvironmentEventTableDesc());
69 ITableDescription tableDescription;
71 Table(ITableDescription tableDescription) {
72 this.tableDescription = tableDescription;
75 public ITableDescription getTableDescription() {
76 return tableDescription;