-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
170 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
...les/rest/api/src/main/java/org/geoserver/geofence/services/rest/model/RESTRuleLimits.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/* (c) 2022 Open Source Geospatial Foundation - all rights reserved | ||
* This code is licensed under the GPL 2.0 license, available at the root | ||
* application directory. | ||
*/ | ||
package org.geoserver.geofence.services.rest.model; | ||
|
||
import org.geoserver.geofence.core.model.enums.CatalogMode; | ||
import org.geoserver.geofence.core.model.enums.SpatialFilterType; | ||
|
||
import javax.xml.bind.annotation.XmlRootElement; | ||
import javax.xml.bind.annotation.XmlType; | ||
|
||
@XmlRootElement(name = "Limits") | ||
@XmlType(propOrder={"restrictedAreaWkt","spatialFilterType","catalogMode"}) | ||
public class RESTRuleLimits { | ||
|
||
private String restrictedAreaWkt; | ||
private SpatialFilterType spatialFilterType; | ||
private CatalogMode catalogMode; | ||
|
||
public String getRestrictedAreaWkt() { | ||
return restrictedAreaWkt; | ||
} | ||
|
||
public void setRestrictedAreaWkt(String restrictedAreaWkt) { | ||
this.restrictedAreaWkt = restrictedAreaWkt; | ||
} | ||
|
||
public SpatialFilterType getSpatialFilterType() { | ||
return spatialFilterType; | ||
} | ||
|
||
public void setSpatialFilterType(SpatialFilterType spatialFilterType) { | ||
this.spatialFilterType = spatialFilterType; | ||
} | ||
|
||
public CatalogMode getCatalogMode() { | ||
return catalogMode; | ||
} | ||
|
||
public void setCatalogMode(CatalogMode catalogMode) { | ||
this.catalogMode = catalogMode; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "RESTRuleLimits{" + | ||
"restrictedAreaWkt='" + restrictedAreaWkt + '\'' + | ||
", spatialFilterType=" + spatialFilterType + | ||
", catalogMode=" + catalogMode + | ||
'}'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters