blob: 7d5fd1ef4e01b1de0d3b9735bd2831ed4b27588f (
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
29
30
31
|
/*******************************************************************************
* Copyright (c) 2016 AT&T Intellectual Property. All rights reserved.
*******************************************************************************/
package com.att.authz.actions;
import java.io.IOException;
import com.att.authz.env.AuthzTrans;
import com.att.authz.layer.Result;
import com.att.dao.aaf.cass.CredDAO;
import com.att.inno.env.APIException;
import com.att.inno.env.util.Chrono;
import com.datastax.driver.core.Cluster;
public class CredDelete extends ActionDAO<CredDAO.Data,Void> {
public CredDelete(AuthzTrans trans, Cluster cluster) throws APIException, IOException {
super(trans, cluster);
}
public CredDelete(AuthzTrans trans, ActionDAO<?,?> adao) {
super(trans, adao);
}
@Override
public Result<Void> exec(AuthzTrans trans, CredDAO.Data cred) {
Result<Void> rv = q.credDAO.delete(trans, cred, true); // need to read for undelete
trans.info().log("Deleted:",cred.id,CredPrint.type(cred.type),Chrono.dateOnlyStamp(cred.expires));
return rv;
}
}
|