Update aaf client module
[aaf/authz.git] / authz-certman / src / main / java / com / att / authz / cm / mapper / Mapper.java
diff --git a/authz-certman/src/main/java/com/att/authz/cm/mapper/Mapper.java b/authz-certman/src/main/java/com/att/authz/cm/mapper/Mapper.java
deleted file mode 100644 (file)
index 47e4872..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-/*******************************************************************************\r
- * ============LICENSE_START====================================================\r
- * * org.onap.aaf\r
- * * ===========================================================================\r
- * * Copyright © 2017 AT&T Intellectual Property. All rights reserved.\r
- * * ===========================================================================\r
- * * Licensed under the Apache License, Version 2.0 (the "License");\r
- * * you may not use this file except in compliance with the License.\r
- * * You may obtain a copy of the License at\r
- * * \r
- *  *      http://www.apache.org/licenses/LICENSE-2.0\r
- * * \r
- *  * Unless required by applicable law or agreed to in writing, software\r
- * * distributed under the License is distributed on an "AS IS" BASIS,\r
- * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * * See the License for the specific language governing permissions and\r
- * * limitations under the License.\r
- * * ============LICENSE_END====================================================\r
- * *\r
- * * ECOMP is a trademark and service mark of AT&T Intellectual Property.\r
- * *\r
- ******************************************************************************/\r
-package com.att.authz.cm.mapper;\r
-\r
-import java.io.IOException;\r
-import java.util.List;\r
-\r
-import com.att.authz.cm.data.CertDrop;\r
-import com.att.authz.cm.data.CertRenew;\r
-import com.att.authz.cm.data.CertReq;\r
-import com.att.authz.cm.data.CertResp;\r
-import com.att.authz.env.AuthzTrans;\r
-import com.att.authz.layer.Result;\r
-import com.att.dao.aaf.cass.ArtiDAO;\r
-\r
-public interface Mapper<REQ,CERT,ARTIFACTS,ERROR>\r
-{\r
-       public enum API{ERROR,VOID,CERT,CERT_REQ,CERT_RENEW,CERT_DROP,ARTIFACTS};\r
-       \r
-       public Class<?> getClass(API api);\r
-       public<A> A newInstance(API api);\r
-\r
-       public ERROR errorFromMessage(StringBuilder holder, String msgID, String text, String... detail);\r
-       \r
-       public Result<CERT> toCert(AuthzTrans trans, Result<CertResp> in, String[] trustChain) throws IOException;\r
-       public Result<CertReq> toReq(AuthzTrans trans, REQ req);\r
-       public Result<CertRenew> toRenew(AuthzTrans trans, REQ req);\r
-       public Result<CertDrop>  toDrop(AuthzTrans trans, REQ req);\r
-       \r
-       public List<ArtiDAO.Data> toArtifact(AuthzTrans trans, ARTIFACTS arti);\r
-       public Result<ARTIFACTS> fromArtifacts(Result<List<ArtiDAO.Data>> readArtifactsByMachine);\r
-}\r