Skip to content

Commit

Permalink
[GEOS-7495] WFS Operations in Data Security view don't match WFS 2.0 …
Browse files Browse the repository at this point in the history
…Capabilities

Add missing WFS 2.0.0 operations in Data Security view
  • Loading branch information
geojs committed Aug 13, 2017
1 parent 55e5cdb commit c65f031
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -134,13 +134,15 @@ class MethodsModel implements IModel<List<String>> {


@Override @Override
public List<String> getObject() { public List<String> getObject() {
ArrayList<String> result = new ArrayList<String>(); List<String> result = new ArrayList<String>();
boolean flag = true;
for (Service ows : GeoServerExtensions.extensions(Service.class)) { for (Service ows : GeoServerExtensions.extensions(Service.class)) {
String service = rule.getService(); String service = rule.getService();
if (ows.getId().equals(service) && !result.contains(ows.getOperations()) && flag) { if (ows.getId().equals(service)) {
flag = false; for (String operation : ows.getOperations()) {
result.addAll(ows.getOperations()); if (!result.contains(operation)) {
result.add(operation);
}
}
} }
} }
Collections.sort(result); Collections.sort(result);
Expand Down

0 comments on commit c65f031

Please sign in to comment.