public class ContentUriAccessPlugin extends Object implements AccessPlugin
ContentUriAccessPlugin
prevents a Metacard
s Metacard.RESOURCE_URI
with a scheme of ContentItem.CONTENT_SCHEME
from being overridden by an incoming UpdateRequest
.Constructor and Description |
---|
ContentUriAccessPlugin() |
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
AccessPlugin
CreateRequest
, prior to CatalogProvider.create(CreateRequest)
, to determine whether or not the user
can access the Catalog operationprocessPreCreate
in interface AccessPlugin
input
- the CreateRequest
to processCreateRequest
to pass to the next AccessPlugin
StopProcessingException
- 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
AccessPlugin
UpdateRequest
, prior to execution of the Update
, to determine whether or not the user can access the Catalog
operationprocessPreUpdate
in interface AccessPlugin
input
- the UpdateRequest
to processexistingMetacards
- the Map of Metacard
s that currently existUpdateRequest
to pass to the next AccessPlugin
StopProcessingException
- 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
AccessPlugin
DeleteRequest
, prior to CatalogProvider.delete(DeleteRequest)
, to determine whether or not the user
can access the Catalog operationprocessPreDelete
in interface AccessPlugin
input
- the DeleteRequest
to processDeleteRequest
to pass to the next AccessPlugin
StopProcessingException
- 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
AccessPlugin
DeleteResponse
, following the execution of CatalogProvider.delete(DeleteRequest)
, to determine whether or not the user
can access the Catalog operationprocessPostDelete
in interface AccessPlugin
input
- the DeleteResponse
to processDeleteResponse
to pass to the next AccessPlugin
StopProcessingException
- 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
AccessPlugin
QueryRequest
, 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 AccessPlugin
input
- the QueryRequest
to processQueryRequest
to pass to the next AccessPlugin
StopProcessingException
- 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
AccessPlugin
QueryResponse
, 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 AccessPlugin
input
- the QueryResponse
to processQueryResponse
to pass to the next AccessPlugin
StopProcessingException
- 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
AccessPlugin
ResourceRequest
, 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 AccessPlugin
input
- the ResourceRequest
to processQueryRequest
to pass to the next AccessPlugin
StopProcessingException
- 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
AccessPlugin
ResourceResponse
, 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 AccessPlugin
input
- the ResourceResponse
to processResourceResponse
to pass to the next AccessPlugin
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.