diff options
author | Jonathan Gathman <jonathan.gathman@att.com> | 2018-11-29 11:55:38 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-11-29 11:55:38 +0000 |
commit | 591d9211c0c93169c4c4fc1cea0dec5d64ba1ccd (patch) | |
tree | 0308805990c683068dffe723ac996b1f7981e389 /auth | |
parent | 5a357d6354eeca5999fd56437b5b492cd8bbc310 (diff) | |
parent | 794ca4210b5889b7908acde4ec72daf3afc45818 (diff) |
Merge "Fixed sonar issue in DelegateDAO"
Diffstat (limited to 'auth')
-rw-r--r-- | auth/auth-cass/src/main/java/org/onap/aaf/auth/dao/cass/DelegateDAO.java | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/auth/auth-cass/src/main/java/org/onap/aaf/auth/dao/cass/DelegateDAO.java b/auth/auth-cass/src/main/java/org/onap/aaf/auth/dao/cass/DelegateDAO.java index b137b640..ad862176 100644 --- a/auth/auth-cass/src/main/java/org/onap/aaf/auth/dao/cass/DelegateDAO.java +++ b/auth/auth-cass/src/main/java/org/onap/aaf/auth/dao/cass/DelegateDAO.java @@ -4,6 +4,8 @@ * =========================================================================== * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved. * =========================================================================== + * Modifications Copyright (C) 2018 IBM. + * ============================================================================ * 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 @@ -44,6 +46,7 @@ public class DelegateDAO extends CassDAOImpl<AuthzTrans, DelegateDAO.Data> { public static final String TABLE = "delegate"; private PSInfo psByDelegate; + private static final int KEYLIMIT = 1; public DelegateDAO(AuthzTrans trans, Cluster cluster, String keyspace) { super(trans, DelegateDAO.class.getSimpleName(),cluster,keyspace,Data.class,TABLE, readConsistency(trans,TABLE), writeConsistency(trans,TABLE)); @@ -55,11 +58,11 @@ public class DelegateDAO extends CassDAOImpl<AuthzTrans, DelegateDAO.Data> { init(trans); } - private static final int KEYLIMIT = 1; + public static class Data implements Bytification { - public String user; - public String delegate; - public Date expires; + public static String user; + public static String delegate; + public static Date expires; @Override public ByteBuffer bytify() throws IOException { |