public class SecurityPlugin extends Object implements AccessPlugin
| Constructor and Description |
|---|
SecurityPlugin() |
| Modifier and Type | Method and Description |
|---|---|
DeleteResponse |
processPostDelete(DeleteResponse input)
Processes a
DeleteResponse, following the execution of CatalogProvider.delete(DeleteRequest), to determine whether or not the user
can access the Catalog operation |
QueryResponse |
processPostQuery(QueryResponse input)
Processes a
QueryResponse, following the execution of the Query, to determine whether or not the user can access the Response. |
ResourceResponse |
processPostResource(ResourceResponse input,
Metacard metacard)
Processes a
ResourceResponse, following the execution of the ResourceRequest, to determine whether or not the user can access the
Response. |
CreateRequest |
processPreCreate(CreateRequest input)
Processes a
CreateRequest, prior to CatalogProvider.create(CreateRequest), to determine whether or not the user
can access the Catalog operation |
DeleteRequest |
processPreDelete(DeleteRequest input)
Processes a
DeleteRequest, prior to CatalogProvider.delete(DeleteRequest), to determine whether or not the user
can access the Catalog operation |
QueryRequest |
processPreQuery(QueryRequest input)
Processes a
QueryRequest, prior to execution of the Query, to determine whether or not the user can access the Catalog
operation. |
ResourceRequest |
processPreResource(ResourceRequest input)
Processes a
ResourceRequest, prior to execution of the ResourceRequest, to determine whether or not the user can access the
Catalog operation. |
UpdateRequest |
processPreUpdate(UpdateRequest input,
Map<String,Metacard> existingMetacards)
Processes an
UpdateRequest, prior to execution of the Update, to determine whether or not the user can access the Catalog
operation |
public CreateRequest processPreCreate(CreateRequest input) throws StopProcessingException
AccessPluginCreateRequest, prior to CatalogProvider.create(CreateRequest), to determine whether or not the user
can access the Catalog operationprocessPreCreate in interface AccessPlugininput - the CreateRequest to processCreateRequest to pass to the next AccessPluginStopProcessingException - thrown to halt processing when a critical issue occurs during
processing. This is intended to prevent other plugins from processing as well.public UpdateRequest processPreUpdate(UpdateRequest input, Map<String,Metacard> existingMetacards) throws StopProcessingException
AccessPluginUpdateRequest, prior to execution of the Update, to determine whether or not the user can access the Catalog
operationprocessPreUpdate in interface AccessPlugininput - the UpdateRequest to processexistingMetacards - the Map of Metacards that currently existUpdateRequest to pass to the next AccessPluginStopProcessingException - thrown to halt processing when a critical issue occurs during
processing. This is intended to prevent other plugins from processing as well.public DeleteRequest processPreDelete(DeleteRequest input) throws StopProcessingException
AccessPluginDeleteRequest, prior to CatalogProvider.delete(DeleteRequest), to determine whether or not the user
can access the Catalog operationprocessPreDelete in interface AccessPlugininput - the DeleteRequest to processDeleteRequest to pass to the next AccessPluginStopProcessingException - thrown to halt processing when a critical issue occurs during
processing. This is intended to prevent other plugins from processing as well.public DeleteResponse processPostDelete(DeleteResponse input) throws StopProcessingException
AccessPluginDeleteResponse, following the execution of CatalogProvider.delete(DeleteRequest), to determine whether or not the user
can access the Catalog operationprocessPostDelete in interface AccessPlugininput - the DeleteResponse to processDeleteResponse to pass to the next AccessPluginStopProcessingException - thrown to halt processing when a critical issue occurs during
processing. This is intended to prevent other plugins from processing as well.public QueryRequest processPreQuery(QueryRequest input) throws StopProcessingException
AccessPluginQueryRequest, prior to execution of the Query, to determine whether or not the user can access the Catalog
operation. The AccessPlugins will be run in the same order for both processPreQuery and
processPostQueryprocessPreQuery in interface AccessPlugininput - the QueryRequest to processQueryRequest to pass to the next AccessPluginStopProcessingException - thrown to halt processing when a critical issue occurs during
processing. This is intended to prevent other plugins from processing as well.public QueryResponse processPostQuery(QueryResponse input) throws StopProcessingException
AccessPluginQueryResponse, following the execution of the Query, to determine whether or not the user can access the Response. The
AccessPlugins will be run in the same order for both processPreQuery and processPostQueryprocessPostQuery in interface AccessPlugininput - the QueryResponse to processQueryResponse to pass to the next AccessPluginStopProcessingException - thrown to halt processing when a critical issue occurs during
processing. This is intended to prevent other plugins from processing as well.public ResourceRequest processPreResource(ResourceRequest input) throws StopProcessingException
AccessPluginResourceRequest, prior to execution of the ResourceRequest, to determine whether or not the user can access the
Catalog operation. The AccessPlugins will be run in the same order for both processPreQuery and
processPostQueryprocessPreResource in interface AccessPlugininput - the ResourceRequest to processQueryRequest to pass to the next AccessPluginStopProcessingException - thrown to halt processing when a critical issue occurs during
processing. This is intended to prevent other plugins from processing as well.public ResourceResponse processPostResource(ResourceResponse input, Metacard metacard) throws StopProcessingException
AccessPluginResourceResponse, following the execution of the ResourceRequest, to determine whether or not the user can access the
Response. The AccessPlugins will be run in the same order for both processPreResource and
processPostResourceprocessPostResource in interface AccessPlugininput - the ResourceResponse to processResourceResponse to pass to the next AccessPluginStopProcessingException - 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.