[PORTAL-16 PORTAL-18] Widget ms; staging
[portal.git] / ecomp-portal-BE-common / src / main / java / org / openecomp / portalapp / portal / domain / EcompAuditLog.java
1 /*-
2  * ================================================================================
3  * ECOMP Portal
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property
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  * ================================================================================
19  */
20 package org.openecomp.portalapp.portal.domain;
21
22 import java.util.Date;
23
24 import org.openecomp.portalsdk.core.domain.AuditLog;
25
26 public class EcompAuditLog extends AuditLog {
27
28         private static final long serialVersionUID = 7970458389782626231L;
29         
30         // values of activity_cd column in table fu_lu_activity
31         // as loaded by DML sql script
32         public static final String CD_ACTIVITY_ADD_CHILD_ROLE = "add_child_role";
33         public static final String CD_ACTIVITY_ADD_ROLE = "add_role";
34         public static final String CD_ACTIVITY_ADD_ROLE_FUNCTION = "add_role_function";
35         public static final String CD_ACTIVITY_ADD_USER_ROLE = "add_user_role";
36         public static final String CD_ACTIVITY_APP_ACCESS = "app_access";
37         public static final String CD_ACTIVITY_FUNCTIONAL_ACCESS = "functional_access";
38         public static final String CD_ACTIVITY_GUEST_LOGIN = "guest_login";
39         public static final String CD_ACTIVITY_LOGIN = "login";
40         public static final String CD_ACTIVITY_LOGOUT = "logout";
41         public static final String CD_ACTIVITY_MOBILE_LOGIN = "mobile_login";
42         public static final String CD_ACTIVITY_MOBILE_LOGOUT = "mobile_logout";
43         public static final String CD_ACTIVITY_REMOVE_CHILD_ROLE = "remove_child_role";
44         public static final String CD_ACTIVITY_REMOVE_ROLE = "remove_role";
45         public static final String CD_ACTIVITY_REMOVE_ROLE_FUNCTION = "remove_role_function";
46         public static final String CD_ACTIVITY_REMOVE_USER_ROLE = "remove_user_role";
47         public static final String CD_ACTIVITY_TAB_ACCESS = "tab_access";
48         public static final String CD_ACTIVITY_SEARCH = "search";
49         public static final String CD_ACTIVITY_ADD_PORTAL_ADMIN = "apa ";
50         public static final String CD_ACTIVITY_DELETE_PORTAL_ADMIN = "dpa";
51         public static final String CD_ACTIVITY_UPDATE_USER = "uu ";
52         public static final String CD_ACTIVITY_UPDATE_ACCOUNT_ADMIN = "uaa ";
53         public static final String CD_ACTIVITY_STORE_ANALYTICS = "store_analytics";
54
55         /**
56          * Creates a new object with the created field set to the current date-time.
57          */
58         public EcompAuditLog() {
59                 setCreated(new Date());
60         }
61 }