X-Git-Url: https://gerrit.onap.org/r/gitweb?p=aaf%2Fauthz.git;a=blobdiff_plain;f=auth%2Fauth-service%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Faaf%2Fauth%2Fservice%2Fmapper%2FMapper.java;h=c66525dab632d5aede2532408e4bfc46db98e49d;hp=e7cedf967abf1018a0c9531918907176472fc08d;hb=4b5a7d721d994a49057e9bfb403c7bff1b376660;hpb=824dc7b5fc0e1ccdf7f460479aff344727f0f01e
diff --git a/auth/auth-service/src/main/java/org/onap/aaf/auth/service/mapper/Mapper.java b/auth/auth-service/src/main/java/org/onap/aaf/auth/service/mapper/Mapper.java
index e7cedf96..c66525da 100644
--- a/auth/auth-service/src/main/java/org/onap/aaf/auth/service/mapper/Mapper.java
+++ b/auth/auth-service/src/main/java/org/onap/aaf/auth/service/mapper/Mapper.java
@@ -41,82 +41,82 @@ import org.onap.aaf.auth.service.MayChange;
import org.onap.aaf.misc.rosetta.Marshal;
public interface Mapper<
- NSS,
- PERMS,
- PERMKEY,
- ROLES,
- USERS,
- USERROLES,
- DELGS,
- CERTS,
- KEYS,
- REQUEST,
- HISTORY,
- ERROR,
- APPROVALS>
+ NSS,
+ PERMS,
+ PERMKEY,
+ ROLES,
+ USERS,
+ USERROLES,
+ DELGS,
+ CERTS,
+ KEYS,
+ REQUEST,
+ HISTORY,
+ ERROR,
+ APPROVALS>
{
- enum API{NSS,NS_REQ,
- PERMS,PERM_KEY,PERM_REQ,
- ROLES,ROLE,ROLE_REQ,ROLE_PERM_REQ,
- USERS,USER_ROLE_REQ,USER_ROLES,
- CRED_REQ,CERTS,
- APPROVALS,
- DELGS,DELG_REQ,
- KEYS,
- HISTORY,
- ERROR,
- API,
- VOID};
- public Class> getClass(API api);
- public Marshal getMarshal(API api);
- public A newInstance(API api);
+ enum API{NSS,NS_REQ,
+ PERMS,PERM_KEY,PERM_REQ,
+ ROLES,ROLE,ROLE_REQ,ROLE_PERM_REQ,
+ USERS,USER_ROLE_REQ,USER_ROLES,
+ CRED_REQ,CERTS,
+ APPROVALS,
+ DELGS,DELG_REQ,
+ KEYS,
+ HISTORY,
+ ERROR,
+ API,
+ VOID};
+ public Class> getClass(API api);
+ public Marshal getMarshal(API api);
+ public A newInstance(API api);
- public Result permkey(AuthzTrans trans, PERMKEY from);
- public Result perm(AuthzTrans trans, REQUEST from);
- public Result role(AuthzTrans trans, REQUEST from);
- public Result ns(AuthzTrans trans, REQUEST from);
- public Result cred(AuthzTrans trans, REQUEST from, boolean requiresPass);
- public Result cred(List lcred, USERS to);
- public Result cert(List lcert, CERTS to);
- public Result delegate(AuthzTrans trans, REQUEST from);
- public Result delegate(List lDelg);
- public Result approvals(List lAppr);
- public Result> approvals(APPROVALS apprs);
- public Result> perms(AuthzTrans trans, PERMS perms);
-
- public Result userRole(AuthzTrans trans, REQUEST from);
- public Result permFromRPRequest(AuthzTrans trans, REQUEST from);
- public REQUEST ungrantRequest(AuthzTrans trans, String role, String type, String instance, String action);
- public Result roleFromRPRequest(AuthzTrans trans, REQUEST from);
-
- /*
- * Check Requests of varying sorts for Future fields set
- */
- public Result future(AuthzTrans trans, String table, REQUEST from, Bytification content, boolean enableApproval, Memo memo, MayChange mc);
+ public Result permkey(AuthzTrans trans, PERMKEY from);
+ public Result perm(AuthzTrans trans, REQUEST from);
+ public Result role(AuthzTrans trans, REQUEST from);
+ public Result ns(AuthzTrans trans, REQUEST from);
+ public Result cred(AuthzTrans trans, REQUEST from, boolean requiresPass);
+ public Result cred(List lcred, USERS to);
+ public Result cert(List lcert, CERTS to);
+ public Result delegate(AuthzTrans trans, REQUEST from);
+ public Result delegate(List lDelg);
+ public Result approvals(List lAppr);
+ public Result> approvals(APPROVALS apprs);
+ public Result> perms(AuthzTrans trans, PERMS perms);
+
+ public Result userRole(AuthzTrans trans, REQUEST from);
+ public Result permFromRPRequest(AuthzTrans trans, REQUEST from);
+ public REQUEST ungrantRequest(AuthzTrans trans, String role, String type, String instance, String action);
+ public Result roleFromRPRequest(AuthzTrans trans, REQUEST from);
+
+ /*
+ * Check Requests of varying sorts for Future fields set
+ */
+ public Result future(AuthzTrans trans, String table, REQUEST from, Bytification content, boolean enableApproval, Memo memo, MayChange mc);
- public Result nss(AuthzTrans trans, Namespace from, NSS to);
+ public Result nss(AuthzTrans trans, Namespace from, NSS to);
- // Note: Prevalidate if NS given is allowed to be seen before calling
- public Result nss(AuthzTrans trans, Collection from, NSS to);
-// public Result ns_attrib(AuthzTrans trans, Set from, NSS to);
- public Result perms(AuthzTrans trans, List from, PERMS to, boolean filter);
- public Result perms(AuthzTrans trans, List from, PERMS to, String[] scopes, boolean filter);
- public Result roles(AuthzTrans trans, List from, ROLES roles, boolean filter);
- // Note: Prevalidate if NS given is allowed to be seen before calling
- public Result users(AuthzTrans trans, Collection from, USERS to);
- public Result userRoles(AuthzTrans trans, Collection from, USERROLES to);
- public Result keys(Collection from);
+ // Note: Prevalidate if NS given is allowed to be seen before calling
+ public Result nss(AuthzTrans trans, Collection from, NSS to);
+// public Result ns_attrib(AuthzTrans trans, Set from, NSS to);
+ public Result perms(AuthzTrans trans, List from, PERMS to, boolean filter);
+ public Result perms(AuthzTrans trans, List from, PERMS to, String[] scopes, boolean filter);
+ public Result roles(AuthzTrans trans, List from, ROLES roles, boolean filter);
+ // Note: Prevalidate if NS given is allowed to be seen before calling
+ public Result users(AuthzTrans trans, Collection from, USERS to);
+ public Result userRoles(AuthzTrans trans, Collection from, USERROLES to);
+ public Result keys(Collection from);
- public Result history(AuthzTrans trans, List history, final int sort);
-
- public ERROR errorFromMessage(StringBuilder holder, String msgID, String text, String... detail);
-
- /*
- * A Memo Creator... Use to avoid creating superfluous Strings until needed.
- */
- public static interface Memo {
- public String get();
- }
+ public Result history(AuthzTrans trans, List history, final int sort);
+
+ public ERROR errorFromMessage(StringBuilder holder, String msgID, String text, String... detail);
+
+ /*
+ * A Memo Creator... Use to avoid creating superfluous Strings until needed.
+ */
+ public static interface Memo {
+ public String get();
+ }