public class SecurityAuditPlugin extends Object implements AccessPlugin
| Constructor and Description |
|---|
SecurityAuditPlugin() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
init() |
static boolean |
isLocal(Map<String,Serializable> props) |
static boolean |
isLocal(Request req) |
DeleteResponse |
processPostDelete(DeleteResponse deleteResponse)
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 queryResponse)
Processes a
QueryResponse, following the execution of the Query, to determine whether or not the user can access the Response. |
ResourceResponse |
processPostResource(ResourceResponse resourceResponse,
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 createRequest)
Processes a
CreateRequest, prior to CatalogProvider.create(CreateRequest), to determine whether or not the user
can access the Catalog operation |
DeleteRequest |
processPreDelete(DeleteRequest deleteRequest)
Processes a
DeleteRequest, prior to CatalogProvider.delete(DeleteRequest), to determine whether or not the user
can access the Catalog operation |
QueryRequest |
processPreQuery(QueryRequest queryRequest)
Processes a
QueryRequest, prior to execution of the Query, to determine whether or not the user can access the Catalog
operation. |
ResourceRequest |
processPreResource(ResourceRequest resourceRequest)
Processes a
ResourceRequest, prior to execution of the ResourceRequest, to determine whether or not the user can access the
Catalog operation. |
UpdateRequest |
processPreUpdate(UpdateRequest updateRequest,
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 |
void |
setAuditAttributes(List<String> auditAttributes) |
public CreateRequest processPreCreate(CreateRequest createRequest) throws StopProcessingException
AccessPluginCreateRequest, prior to CatalogProvider.create(CreateRequest), to determine whether or not the user
can access the Catalog operationprocessPreCreate in interface AccessPlugincreateRequest - 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 updateRequest, 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 AccessPluginupdateRequest - 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 deleteRequest) throws StopProcessingException
AccessPluginDeleteRequest, prior to CatalogProvider.delete(DeleteRequest), to determine whether or not the user
can access the Catalog operationprocessPreDelete in interface AccessPlugindeleteRequest - 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 deleteResponse) throws StopProcessingException
AccessPluginDeleteResponse, following the execution of CatalogProvider.delete(DeleteRequest), to determine whether or not the user
can access the Catalog operationprocessPostDelete in interface AccessPlugindeleteResponse - 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 queryRequest) 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 AccessPluginqueryRequest - 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 queryResponse) 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 AccessPluginqueryResponse - 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 resourceRequest) 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 AccessPluginresourceRequest - 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 resourceResponse, 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 AccessPluginresourceResponse - 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.public void init()
public void destroy()
public static boolean isLocal(Request req)
public static boolean isLocal(Map<String,Serializable> props)
This work is licensed under a Creative Commons Attribution 4.0 International License.