Sonar Fixes, Formatting
[aaf/authz.git] / auth / auth-certman / src / main / java / org / onap / aaf / auth / cm / facade / Facade.java
index 9eb9c2f..3926422 100644 (file)
@@ -7,9 +7,9 @@
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -33,150 +33,150 @@ import org.onap.aaf.auth.layer.Result;
 
 
 /**
- *   
+ *
  * @author Jonathan
  *
  */
 public interface Facade<REQ,CERT,ARTIFACTS,ERROR> {
 
 /////////////////////  STANDARD ELEMENTS //////////////////
-       /** 
-        * @param trans
-        * @param response
-        * @param result
-        */
-       void error(AuthzTrans trans, HttpServletResponse response, Result<?> result);
-
-       /**
-        * 
-        * @param trans
-        * @param response
-        * @param status
-        */
-       void error(AuthzTrans trans, HttpServletResponse response, int status,  String msg, String ... detail);
-
-       /**
-        * Permission checker
-        *
-        * @param trans
-        * @param resp
-        * @param perm
-        * @return
-        * @throws IOException 
-        */
-       Result<Void> check(AuthzTrans trans, HttpServletResponse resp, String perm) throws IOException;
-
-       /**
-        * 
-        * @return
-        */
-       public Mapper<REQ,CERT,ARTIFACTS,ERROR> mapper();
+    /**
+     * @param trans
+     * @param response
+     * @param result
+     */
+    void error(AuthzTrans trans, HttpServletResponse response, Result<?> result);
+
+    /**
+     *
+     * @param trans
+     * @param response
+     * @param status
+     */
+    void error(AuthzTrans trans, HttpServletResponse response, int status,    String msg, Object ... detail);
+
+    /**
+     * Permission checker
+     *
+     * @param trans
+     * @param resp
+     * @param perm
+     * @return
+     * @throws IOException
+     */
+    Result<Void> check(AuthzTrans trans, HttpServletResponse resp, String perm) throws IOException;
+
+    /**
+     *
+     * @return
+     */
+    public Mapper<REQ,CERT,ARTIFACTS,ERROR> mapper();
 
 /////////////////////  STANDARD ELEMENTS //////////////////
-       
-       /**
-        * 
-        * @param trans
-        * @param resp
-        * @param rservlet
-        * @return
-        */
-       public abstract Result<Void> requestCert(AuthzTrans trans, HttpServletRequest req, HttpServletResponse resp, CA ca);
-
-       /**
-        * 
-        * @param trans
-        * @param resp
-        * @param rservlet
-        * @return
-        */
-       public abstract Result<Void> requestPersonalCert(AuthzTrans trans, HttpServletRequest req, HttpServletResponse resp, CA ca);
-
-
-       /**
-        * 
-        * @param trans
-        * @param req
-        * @param resp
-        * @return
-        */
-       public abstract Result<Void> renewCert(AuthzTrans trans, HttpServletRequest req, HttpServletResponse resp, boolean withTrust);
-
-       /**
-        * 
-        * @param trans
-        * @param req
-        * @param resp
-        * @return
-        */
-       public abstract Result<Void> dropCert(AuthzTrans trans, HttpServletRequest req, HttpServletResponse resp);
-       
-
-       /**
-        * 
-        * @param trans
-        * @param resp
-        * @param pathParam
-        * @return
-        */
-       public Result<Void> readCertsByMechID(AuthzTrans trans, HttpServletResponse resp, String mechID);
-       
-
-       /**
-        * 
-        * @param trans
-        * @param req
-        * @param resp
-        * @return
-        */
-       Result<Void> createArtifacts(AuthzTrans trans, HttpServletRequest req, HttpServletResponse resp);
-       
-       /**
-        * 
-        * @param trans
-        * @param req
-        * @param resp
-        * @return
-        */
-       Result<Void> readArtifacts(AuthzTrans trans, HttpServletRequest req, HttpServletResponse resp);
-
-       /**
-        * 
-        * @param trans
-        * @param resp
-        * @param mechid
-        * @param machine
-        * @return
-        */
-       Result<Void> readArtifacts(AuthzTrans trans, HttpServletResponse resp, String mechid, String machine);
-
-       /**
-        * 
-        * @param trans
-        * @param req
-        * @param resp
-        * @return
-        */
-       Result<Void> updateArtifacts(AuthzTrans trans, HttpServletRequest req, HttpServletResponse resp);
-       
-       /**
-        * 
-        * @param trans
-        * @param req
-        * @param resp
-        * @return
-        */
-       Result<Void> deleteArtifacts(AuthzTrans trans, HttpServletRequest req, HttpServletResponse resp);
-
-       /**
-        * 
-        * @param trans
-        * @param resp
-        * @param mechid
-        * @param machine
-        * @return
-        */
-       Result<Void> deleteArtifacts(AuthzTrans trans, HttpServletResponse resp, String mechid, String machine);
+
+    /**
+     *
+     * @param trans
+     * @param resp
+     * @param rservlet
+     * @return
+     */
+    public abstract Result<Void> requestCert(AuthzTrans trans, HttpServletRequest req, HttpServletResponse resp, CA ca);
+
+    /**
+     *
+     * @param trans
+     * @param resp
+     * @param rservlet
+     * @return
+     */
+    public abstract Result<Void> requestPersonalCert(AuthzTrans trans, HttpServletRequest req, HttpServletResponse resp, CA ca);
+
+
+    /**
+     *
+     * @param trans
+     * @param req
+     * @param resp
+     * @return
+     */
+    public abstract Result<Void> renewCert(AuthzTrans trans, HttpServletRequest req, HttpServletResponse resp, boolean withTrust);
+
+    /**
+     *
+     * @param trans
+     * @param req
+     * @param resp
+     * @return
+     */
+    public abstract Result<Void> dropCert(AuthzTrans trans, HttpServletRequest req, HttpServletResponse resp);
+
+
+    /**
+     *
+     * @param trans
+     * @param resp
+     * @param pathParam
+     * @return
+     */
+    public Result<Void> readCertsByMechID(AuthzTrans trans, HttpServletResponse resp, String mechID);
+
+
+    /**
+     *
+     * @param trans
+     * @param req
+     * @param resp
+     * @return
+     */
+    Result<Void> createArtifacts(AuthzTrans trans, HttpServletRequest req, HttpServletResponse resp);
+
+    /**
+     *
+     * @param trans
+     * @param req
+     * @param resp
+     * @return
+     */
+    Result<Void> readArtifacts(AuthzTrans trans, HttpServletRequest req, HttpServletResponse resp);
+
+    /**
+     *
+     * @param trans
+     * @param resp
+     * @param mechid
+     * @param machine
+     * @return
+     */
+    Result<Void> readArtifacts(AuthzTrans trans, HttpServletResponse resp, String mechid, String machine);
+
+    /**
+     *
+     * @param trans
+     * @param req
+     * @param resp
+     * @return
+     */
+    Result<Void> updateArtifacts(AuthzTrans trans, HttpServletRequest req, HttpServletResponse resp);
+
+    /**
+     *
+     * @param trans
+     * @param req
+     * @param resp
+     * @return
+     */
+    Result<Void> deleteArtifacts(AuthzTrans trans, HttpServletRequest req, HttpServletResponse resp);
+
+    /**
+     *
+     * @param trans
+     * @param resp
+     * @param mechid
+     * @param machine
+     * @return
+     */
+    Result<Void> deleteArtifacts(AuthzTrans trans, HttpServletResponse resp, String mechid, String machine);
 
 
 }
\ No newline at end of file