Code Review
/
dmaap
/
datarouter.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Code style cleanup for prov authz and beans
[dmaap/datarouter.git]
/
datarouter-prov
/
src
/
main
/
java
/
org
/
onap
/
dmaap
/
datarouter
/
provisioning
/
beans
/
DeliveryRecord.java
diff --git
a/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/beans/DeliveryRecord.java
b/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/beans/DeliveryRecord.java
index
07fe737
..
0bce491
100644
(file)
--- a/
datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/beans/DeliveryRecord.java
+++ b/
datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/beans/DeliveryRecord.java
@@
-46,19
+46,31
@@
public class DeliveryRecord extends BaseLogRecord {
private int result;
\r
private String user;
\r
\r
private int result;
\r
private String user;
\r
\r
+ /**
\r
+ * Constructor for DeliverRecord.
\r
+ * @param pp string array of DeliverRecord attributes
\r
+ * @throws ParseException in case of parse error
\r
+ */
\r
public DeliveryRecord(String[] pp) throws ParseException {
\r
super(pp);
\r
String fileid = pp[5];
\r
public DeliveryRecord(String[] pp) throws ParseException {
\r
super(pp);
\r
String fileid = pp[5];
\r
- if (fileid.lastIndexOf('/') >= 0)
\r
+ if (fileid.lastIndexOf('/') >= 0)
{
\r
fileid = fileid.substring(fileid.lastIndexOf('/') + 1);
\r
fileid = fileid.substring(fileid.lastIndexOf('/') + 1);
\r
+ }
\r
this.subid = Integer.parseInt(pp[4]);
\r
this.fileid = fileid;
\r
this.result = Integer.parseInt(pp[10]);
\r
this.user = pp[9];
\r
this.subid = Integer.parseInt(pp[4]);
\r
this.fileid = fileid;
\r
this.result = Integer.parseInt(pp[10]);
\r
this.user = pp[9];
\r
- if (this.user != null && this.user.length() > 50)
\r
+ if (this.user != null && this.user.length() > 50)
{
\r
this.user = this.user.substring(0, 50);
\r
this.user = this.user.substring(0, 50);
\r
+ }
\r
}
\r
\r
}
\r
\r
+ /**
\r
+ * DeliverRecord constructor from ResultSet.
\r
+ * @param rs ResultSet
\r
+ * @throws SQLException in case of get error from SQL statement
\r
+ */
\r
public DeliveryRecord(ResultSet rs) throws SQLException {
\r
super(rs);
\r
this.subid = rs.getInt("DELIVERY_SUBID");
\r
public DeliveryRecord(ResultSet rs) throws SQLException {
\r
super(rs);
\r
this.subid = rs.getInt("DELIVERY_SUBID");
\r
@@
-99,7
+111,11
@@
public class DeliveryRecord extends BaseLogRecord {
this.user = user;
\r
}
\r
\r
this.user = user;
\r
}
\r
\r
-
\r
+ /**
\r
+ * Method to reorder LOGJSONObject.
\r
+ * @param jo LOGJSONObject
\r
+ * @return new LOGJSONObject
\r
+ */
\r
public LOGJSONObject reOrderObject(LOGJSONObject jo) {
\r
LinkedHashMap<String, Object> logrecordObj = new LinkedHashMap<>();
\r
\r
public LOGJSONObject reOrderObject(LOGJSONObject jo) {
\r
LinkedHashMap<String, Object> logrecordObj = new LinkedHashMap<>();
\r
\r