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=========================================================
20 package org.openecomp.sdc.be.dao.cassandra.schema;
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.UserAccessEventTableDescription;
41 import org.openecomp.sdc.be.dao.cassandra.schema.tables.UserAdminEventTableDescription;
45 ARTIFACT(new ArtifactTableDescription()),
46 USER_ADMIN_EVENT(new UserAdminEventTableDescription()),
47 USER_ACCESS_EVENT(new UserAccessEventTableDescription()),
48 RESOURCE_ADMIN_EVENT(new ResAdminEventTableDescription()),
49 DISTRIBUTION_DOWNLOAD_EVENT(new DistribDownloadEventTableDesc()),
50 DISTRIBUTION_ENGINE_EVENT(new DistribEngineEventTableDesc()),
51 DISTRIBUTION_NOTIFICATION_EVENT(new DistribNotifEventTableDesc()),
52 DISTRIBUTION_STATUS_EVENT(new DistribStatusEventTableDesc()),
53 DISTRIBUTION_DEPLOY_EVENT(new DistribDeployEventTableDesc()),
54 DISTRIBUTION_GET_UEB_CLUSTER_EVENT(new GetUebClusterEventTableDesc()),
55 AUTH_EVENT(new AuthEventTableDescription()),
56 CATEGORY_EVENT(new CategoryEventTableDescription()),
57 GET_USERS_LIST_EVENT(new GetUsersListEventTableDesc()),
58 GET_CATEGORY_HIERARCHY_EVENT(new GetCatHierEventTableDesc()),
59 EXTERNAL_API_EVENT(new ExternalApiEventTableDesc()),
60 SDC_SCHEMA_FILES(new SdcSchemaFilesTableDescription()),
61 SDC_REPO(new MigrationTasksTableDescription()),
62 SDC_OPERATIONAL_ENVIRONMENT(new OperationalEnvironmentsTableDescription()),
63 AUDIT_ECOMP_OPERATIONAL_ENVIRONMENT(new EcompOperationalEnvironmentEventTableDesc()),
64 FEATURE_TOGGLE_STATE(new FeatureToggleEventTableDesc());
67 ITableDescription tableDescription;
69 Table(ITableDescription tableDescription) {
70 this.tableDescription = tableDescription;
73 public ITableDescription getTableDescription() {
74 return tableDescription;