Feed feed = map.get(id);\r
if (feed != null) {\r
FeedEndpointID epi = new FeedEndpointID(rs);\r
- Collection<FeedEndpointID> ecoll = feed.getAuthorization().getEndpoint_ids();\r
+ Collection<FeedEndpointID> ecoll = feed.getAuthorization().getEndpointIDS();\r
ecoll.add(epi);\r
}\r
}\r
int id = rs.getInt("FEEDID");\r
Feed feed = map.get(id);\r
if (feed != null) {\r
- Collection<String> acoll = feed.getAuthorization().getEndpoint_addrs();\r
+ Collection<String> acoll = feed.getAuthorization().getEndpointAddrs();\r
acoll.add(rs.getString("ADDR"));\r
}\r
}\r
if (feed != null) {\r
sql = "select * from FEED_ENDPOINT_IDS where FEEDID = " + feed.feedid;\r
try (ResultSet rs = stmt.executeQuery(sql)) {\r
- Collection<FeedEndpointID> ecoll = feed.getAuthorization().getEndpoint_ids();\r
+ Collection<FeedEndpointID> ecoll = feed.getAuthorization().getEndpointIDS();\r
while (rs.next()) {\r
FeedEndpointID epi = new FeedEndpointID(rs);\r
ecoll.add(epi);\r
}\r
sql = "select * from FEED_ENDPOINT_ADDRS where FEEDID = " + feed.feedid;\r
try (ResultSet rs = stmt.executeQuery(sql)) {\r
- Collection<String> acoll = feed.getAuthorization().getEndpoint_addrs();\r
+ Collection<String> acoll = feed.getAuthorization().getEndpointAddrs();\r
while (rs.next()) {\r
acoll.add(rs.getString("ADDR"));\r
}\r
//Fortify scan fixes - Privacy Violation\r
throw new InvalidObjectException("password field is too long (" + fid.getPassword() + ")");\r
}\r
- this.authorization.getEndpoint_ids().add(fid);\r
+ this.authorization.getEndpointIDS().add(fid);\r
}\r
- if (this.authorization.getEndpoint_ids().isEmpty()) {\r
+ if (this.authorization.getEndpointIDS().isEmpty()) {\r
throw new InvalidObjectException("need to specify at least one endpoint_id");\r
}\r
endPointIds = jauth.getJSONArray("endpoint_addrs");\r
if (!JSONUtilities.validIPAddrOrSubnet(addr)) {\r
throw new InvalidObjectException("bad IP addr or subnet mask: " + addr);\r
}\r
- this.authorization.getEndpoint_addrs().add(addr);\r
+ this.authorization.getEndpointAddrs().add(addr);\r
}\r
\r
this.publisher = jo.optString("publisher", "");\r
FeedAuthorization auth = getAuthorization();\r
String sql = "insert into FEED_ENDPOINT_IDS values (?, ?, ?)";\r
try (PreparedStatement ps2 = conn.prepareStatement(sql)) {\r
- for (FeedEndpointID fid : auth.getEndpoint_ids()) {\r
+ for (FeedEndpointID fid : auth.getEndpointIDS()) {\r
ps2.setInt(1, feedid);\r
ps2.setString(2, fid.getId());\r
ps2.setString(3, fid.getPassword());\r
// Create FEED_ENDPOINT_ADDRS rows\r
sql = "insert into FEED_ENDPOINT_ADDRS values (?, ?)";\r
try (PreparedStatement ps2 = conn.prepareStatement(sql)) {\r
- for (String t : auth.getEndpoint_addrs()) {\r
+ for (String t : auth.getEndpointAddrs()) {\r
ps2.setInt(1, feedid);\r
ps2.setString(2, t);\r
ps2.executeUpdate();\r
Feed oldobj = getFeedById(feedid);\r
PreparedStatement ps = null;\r
try {\r
- Set<FeedEndpointID> newset = getAuthorization().getEndpoint_ids();\r
- Set<FeedEndpointID> oldset = oldobj.getAuthorization().getEndpoint_ids();\r
+ Set<FeedEndpointID> newset = getAuthorization().getEndpointIDS();\r
+ Set<FeedEndpointID> oldset = oldobj.getAuthorization().getEndpointIDS();\r
\r
// Insert new FEED_ENDPOINT_IDS rows\r
String sql = "insert into FEED_ENDPOINT_IDS values (?, ?, ?)";\r
ps.close();\r
\r
// Insert new FEED_ENDPOINT_ADDRS rows\r
- Set<String> newset2 = getAuthorization().getEndpoint_addrs();\r
- Set<String> oldset2 = oldobj.getAuthorization().getEndpoint_addrs();\r
+ Set<String> newset2 = getAuthorization().getEndpointAddrs();\r
+ Set<String> oldset2 = oldobj.getAuthorization().getEndpointAddrs();\r
sql = "insert into FEED_ENDPOINT_ADDRS values (?, ?)";\r
ps = conn.prepareStatement(sql);\r
for (String t : newset2) {\r