Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add LayerAccessHandler #687

Merged
merged 2 commits into from
Feb 17, 2021
Merged

Conversation

jampukka
Copy link
Member

Add new type of OskariComponent called LayerAccessHandler to handle layer access.

Currently the only method in the API void handle(OskariLayer layer, User user); gets called when a layer is "accessed" meaning when a data accessing request is made to the backing service via oskari-server. Right now this includes action routes GetLayerTile for WMTS/WMS layers, GetWFSFeatures for WFS/OAPIF layers, and GetPrint for all types of layers as service-print works a bit differently. There's no way for this method to change the logic (except by throwing RuntimeExceptions I guess). LayerAccessHandler isn't meant for checking or validating anything but more for logging or monitoring purposes.

The idea is to allow server-extensions to provide their own implementations of LayerAccessHandlers which will get loaded at runtime. For more discussion see: oskariorg/oskari-docs#243

@sonarcloud
Copy link

sonarcloud bot commented Feb 17, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@ZakarFin ZakarFin added this to the 2.2.0 milestone Feb 17, 2021
@ZakarFin ZakarFin merged commit de67b17 into oskariorg:develop Feb 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants