Package ddf.catalog.plugin
Interface PreAuthorizationPlugin
public interface PreAuthorizationPlugin
The
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.
-
Method Summary
Modifier and TypeMethodDescriptionprocessPostDelete(DeleteResponse input) Process aDeleteResponsefor use cases that occur prior to security rules.processPostQuery(QueryResponse input) Process aQueryResponsefor use cases that occur prior to security rules.processPostResource(ResourceResponse input, Metacard metacard) Process aResourceResponsefor use cases that occur prior to security rules.processPreCreate(CreateRequest input) Process aCreateRequestfor use cases that occur prior to security rules.processPreDelete(DeleteRequest input) Process aDeleteRequestfor use cases that occur prior to security rules.processPreQuery(QueryRequest input) Process aQueryRequestfor use cases that occur prior to security rules.Process aResourceRequestfor use cases that occur prior to security rules.processPreUpdate(UpdateRequest input, Map<String, Metacard> existingMetacards) Process anUpdateRequestfor use cases that occur prior to security rules.
-
Method Details
-
processPreCreate
Process aCreateRequestfor use cases that occur prior to security rules.- Parameters:
input- theCreateRequestto process- Returns:
- the value of the processed
CreateRequestto pass to the nextPreAuthorizationPlugin - Throws:
StopProcessingException- thrown to halt processing when a critical issue occurs during processing. This is intended to prevent other plugins from processing as well.
-
processPreUpdate
UpdateRequest processPreUpdate(UpdateRequest input, Map<String, Metacard> existingMetacards) throws StopProcessingExceptionProcess anUpdateRequestfor use cases that occur prior to security rules.- Parameters:
input- theUpdateRequestto processexistingMetacards- the Map ofMetacards that currently exist- Returns:
- the value of the processed
UpdateRequestto pass to the nextPreAuthorizationPlugin - Throws:
StopProcessingException- thrown to halt processing when a critical issue occurs during processing. This is intended to prevent other plugins from processing as well.
-
processPreDelete
Process aDeleteRequestfor use cases that occur prior to security rules.- Parameters:
input- theDeleteRequestto process- Returns:
- the value of the processed
DeleteRequestto pass to the nextPreAuthorizationPlugin - Throws:
StopProcessingException- thrown to halt processing when a critical issue occurs during processing. This is intended to prevent other plugins from processing as well.
-
processPostDelete
Process aDeleteResponsefor use cases that occur prior to security rules.- Parameters:
input- theDeleteResponseto process- Returns:
- the value of the processed
DeleteResponseto pass to the nextPreAuthorizationPlugin - Throws:
StopProcessingException- thrown to halt processing when a critical issue occurs during processing. This is intended to prevent other plugins from processing as well.
-
processPreQuery
Process aQueryRequestfor use cases that occur prior to security rules.- Parameters:
input- theQueryRequestto process- Returns:
- the value of the processed
QueryRequestto pass to the nextPreAuthorizationPlugin - Throws:
StopProcessingException- thrown to halt processing when a critical issue occurs during processing. This is intended to prevent other plugins from processing as well.
-
processPostQuery
Process aQueryResponsefor use cases that occur prior to security rules.- Parameters:
input- theQueryResponseto process- Returns:
- the value of the processed
QueryResponseto pass to the nextPreAuthorizationPlugin - Throws:
StopProcessingException- thrown to halt processing when a critical issue occurs during processing. This is intended to prevent other plugins from processing as well.
-
processPreResource
Process aResourceRequestfor use cases that occur prior to security rules.- Parameters:
input- theResourceRequestto process- Returns:
- the value of the processed
QueryRequestto pass to the nextPreAuthorizationPlugin - Throws:
StopProcessingException- thrown to halt processing when a critical issue occurs during processing. This is intended to prevent other plugins from processing as well.
-
processPostResource
ResourceResponse processPostResource(ResourceResponse input, Metacard metacard) throws StopProcessingException Process aResourceResponsefor use cases that occur prior to security rules.- Parameters:
input- theResourceResponseto process- Returns:
- the value of the processed
ResourceResponseto pass to the nextPreAuthorizationPlugin - Throws:
StopProcessingException- thrown to halt processing when a critical issue occurs during processing. This is intended to prevent other plugins from processing as well.
-