public interface PreAuthorizationPlugin
PreAuthorizationPlugin
extension point allows for request/response processing before
any security rules (policy and access) are implemented at the beginning of the plugin chain. That
is, pre-processing occurs before policy, access, and the catalog framework. Post-processing
occurs after the catalog framework but before the second round of policy and access.
This code is experimental. While this interface is functional and tested, it may change or be removed in a future version of the library.
Modifier and Type | Method and Description |
---|---|
DeleteResponse |
processPostDelete(DeleteResponse input)
Process a
DeleteResponse for use cases that occur prior to security rules. |
QueryResponse |
processPostQuery(QueryResponse input)
Process a
QueryResponse for use cases that occur prior to security rules. |
ResourceResponse |
processPostResource(ResourceResponse input,
Metacard metacard)
Process a
ResourceResponse for use cases that occur prior to security rules. |
CreateRequest |
processPreCreate(CreateRequest input)
Process a
CreateRequest for use cases that occur prior to security rules. |
DeleteRequest |
processPreDelete(DeleteRequest input)
Process a
DeleteRequest for use cases that occur prior to security rules. |
QueryRequest |
processPreQuery(QueryRequest input)
Process a
QueryRequest for use cases that occur prior to security rules. |
ResourceRequest |
processPreResource(ResourceRequest input)
Process a
ResourceRequest for use cases that occur prior to security rules. |
UpdateRequest |
processPreUpdate(UpdateRequest input,
Map<String,Metacard> existingMetacards)
Process an
UpdateRequest for use cases that occur prior to security rules. |
CreateRequest processPreCreate(CreateRequest input) throws StopProcessingException
CreateRequest
for use cases that occur prior to security rules.input
- the CreateRequest
to processCreateRequest
to pass to the next PreAuthorizationPlugin
StopProcessingException
- thrown to halt processing when a critical issue occurs during
processing. This is intended to prevent other plugins from processing as well.UpdateRequest processPreUpdate(UpdateRequest input, Map<String,Metacard> existingMetacards) throws StopProcessingException
UpdateRequest
for use cases that occur prior to security rules.input
- the UpdateRequest
to processexistingMetacards
- the Map of Metacard
s that currently existUpdateRequest
to pass to the next PreAuthorizationPlugin
StopProcessingException
- thrown to halt processing when a critical issue occurs during
processing. This is intended to prevent other plugins from processing as well.DeleteRequest processPreDelete(DeleteRequest input) throws StopProcessingException
DeleteRequest
for use cases that occur prior to security rules.input
- the DeleteRequest
to processDeleteRequest
to pass to the next PreAuthorizationPlugin
StopProcessingException
- thrown to halt processing when a critical issue occurs during
processing. This is intended to prevent other plugins from processing as well.DeleteResponse processPostDelete(DeleteResponse input) throws StopProcessingException
DeleteResponse
for use cases that occur prior to security rules.input
- the DeleteResponse
to processDeleteResponse
to pass to the next PreAuthorizationPlugin
StopProcessingException
- thrown to halt processing when a critical issue occurs during
processing. This is intended to prevent other plugins from processing as well.QueryRequest processPreQuery(QueryRequest input) throws StopProcessingException
QueryRequest
for use cases that occur prior to security rules.input
- the QueryRequest
to processQueryRequest
to pass to the next PreAuthorizationPlugin
StopProcessingException
- thrown to halt processing when a critical issue occurs during
processing. This is intended to prevent other plugins from processing as well.QueryResponse processPostQuery(QueryResponse input) throws StopProcessingException
QueryResponse
for use cases that occur prior to security rules.input
- the QueryResponse
to processQueryResponse
to pass to the next PreAuthorizationPlugin
StopProcessingException
- thrown to halt processing when a critical issue occurs during
processing. This is intended to prevent other plugins from processing as well.ResourceRequest processPreResource(ResourceRequest input) throws StopProcessingException
ResourceRequest
for use cases that occur prior to security rules.input
- the ResourceRequest
to processQueryRequest
to pass to the next PreAuthorizationPlugin
StopProcessingException
- thrown to halt processing when a critical issue occurs during
processing. This is intended to prevent other plugins from processing as well.ResourceResponse processPostResource(ResourceResponse input, Metacard metacard) throws StopProcessingException
ResourceResponse
for use cases that occur prior to security rules.input
- the ResourceResponse
to processResourceResponse
to pass to the next PreAuthorizationPlugin
StopProcessingException
- thrown to halt processing when a critical issue occurs during
processing. This is intended to prevent other plugins from processing as well.This work is licensed under a Creative Commons Attribution 4.0 International License.