blob: ea5a8bf0b6506a4a4a3f2e3749b539b708e8560b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
/*******************************************************************************
* Copyright (c) 2016 AT&T Intellectual Property. All rights reserved.
*******************************************************************************/
package com.att.authz.actions;
import java.util.ArrayList;
import java.util.List;
import com.att.authz.env.AuthzTrans;
import com.att.authz.helpers.UserRole;
import com.att.authz.layer.Result;
import com.att.authz.org.Organization.Identity;
import org.onap.aaf.inno.env.util.Chrono;
public class URFuturePrint implements Action<UserRole,List<Identity>> {
private String text;
private final static List<Identity> rv = new ArrayList<Identity>();
public URFuturePrint(String text) {
this.text = text;
}
@Override
public Result<List<Identity>> exec(AuthzTrans trans, UserRole ur) {
trans.info().log(text,ur.user,"to",ur.role,"on",Chrono.dateOnlyStamp(ur.expires));
return Result.ok(rv);
}}
|