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.
Expand Up @@ -134,13 +134,15 @@ class MethodsModel implements IModel<List<String>> {

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

0 comments on commit c65f031

Please sign in to comment.