d544b709a63747487d3ef5a08e4531f3545cc57f
[aaf/authz.git] / auth / auth-deforg / src / main / java / org / onap / aaf / org / DefaultOrgWarnings.java
1 /*******************************************************************************
2  * ============LICENSE_START====================================================
3  * * org.onap.aaf
4  * * ===========================================================================
5  * * Copyright © 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  ******************************************************************************/
22 package org.onap.aaf.org;
23
24 import org.onap.aaf.auth.org.EmailWarnings;
25
26 public class DefaultOrgWarnings implements EmailWarnings {
27
28     @Override
29     public long credEmailInterval()
30     {
31         return 604800000L; // 7 days in millis 1000 * 86400 * 7
32     }
33
34     @Override
35     public long roleEmailInterval()
36     {
37         return 604800000L; // 7 days in millis 1000 * 86400 * 7
38     }
39
40     @Override
41     public long apprEmailInterval() {
42         return 259200000L; // 3 days in millis 1000 * 86400 * 3
43     }
44
45     @Override
46     public long  credExpirationWarning()
47     {
48         return( 2592000000L ); // One month, in milliseconds 1000 * 86400 * 30  in milliseconds
49     }
50
51     @Override
52     public long roleExpirationWarning()
53     {
54         return( 2592000000L ); // One month, in milliseconds 1000 * 86400 * 30  in milliseconds
55     }
56
57     @Override
58     public long emailUrgentWarning()
59     {
60         return( 1209600000L ); // Two weeks, in milliseconds 1000 * 86400 * 14  in milliseconds
61     }
62
63 }