Upgrade to latest oparent
[aaf/authz.git] / authz-batch / src / main / java / com / att / authz / actions / FAPrint.java
1 /*******************************************************************************
2  * Copyright (c) 2016 AT&T Intellectual Property. All rights reserved.
3  *******************************************************************************/
4 package com.att.authz.actions;
5
6 import com.att.authz.env.AuthzTrans;
7 import com.att.authz.helpers.Future;
8 import com.att.authz.layer.Result;
9 import org.onap.aaf.inno.env.util.Chrono;
10
11 public class FAPrint implements Action<Future,Void> {
12         private String text;
13
14         public FAPrint(String text) {
15                 this.text = text;
16         }
17
18         @Override
19         public Result<Void> exec(AuthzTrans trans, Future f) {
20                 trans.info().log(text,f.id,f.memo,"expiring on",Chrono.dateOnlyStamp(f.expires));
21                 return Result.ok();
22         }
23 }