Package org.tailormap.api.util
Class EditUtil
java.lang.Object
org.tailormap.api.util.EditUtil
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidCheck if the current user is authenticated, throws exception if not.getEditableFeatureType(Application application, AppTreeLayerNode appTreeLayerNode, GeoService service, GeoServiceLayer layer) Get editable feature type, throws exception if not found or not editable. 
- 
Constructor Details
- 
EditUtil
 
 - 
 - 
Method Details
- 
checkEditAuthorisation
public void checkEditAuthorisation() throws org.springframework.web.server.ResponseStatusExceptionCheck if the current user is authenticated, throws exception if not. As we do not have editing authorisation any known, authenticated user can edit.- Throws:
 org.springframework.web.server.ResponseStatusException
 - 
getEditableFeatureType
public TMFeatureType getEditableFeatureType(Application application, AppTreeLayerNode appTreeLayerNode, GeoService service, GeoServiceLayer layer) throws org.springframework.web.server.ResponseStatusException Get editable feature type, throws exception if not found or not editable. Will throw aResponseStatusExceptionif the layer does not have an editable featuretype.- Parameters:
 application- the application that has the editable layerappTreeLayerNode- the layer to editservice- the service that has the layerlayer- the layer to edit- Returns:
 - the editable feature type
 - Throws:
 org.springframework.web.server.ResponseStatusException
 
 -