Class GSDataRulesEncoder
- java.lang.Object
-
- it.geosolutions.geoserver.rest.encoder.utils.XmlElement
-
- it.geosolutions.geoserver.rest.encoder.utils.PropertyXMLEncoder
-
- it.geosolutions.geoserver.rest.encoder.GSDataRulesEncoder
-
public class GSDataRulesEncoder extends PropertyXMLEncoder
-
-
Constructor Summary
Constructors Constructor Description GSDataRulesEncoder()Constructor for GSWorkspaceEncoder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRule(java.lang.String workspace, java.lang.String layer, GeoServerRESTSecurityManager.RuleType type, java.util.Collection<java.lang.String> roles)Add the name to this workspace-
Methods inherited from class it.geosolutions.geoserver.rest.encoder.utils.PropertyXMLEncoder
add, get, get, set
-
Methods inherited from class it.geosolutions.geoserver.rest.encoder.utils.XmlElement
add, addContent, getRoot, isEmpty, remove, set, setRoot, setRoot, toString
-
-
-
-
Method Detail
-
addRule
public void addRule(java.lang.String workspace, java.lang.String layer, GeoServerRESTSecurityManager.RuleType type, java.util.Collection<java.lang.String> roles)Add the name to this workspace- Parameters:
workspace- the name of the workspacelayer- the name of the layertype- the type of ruleroles- the collection of role names- Throws:
java.lang.IllegalStateException- if name is already set
-
-