public class XmlAttributeSecurityPolicyPlugin extends Object implements PolicyPlugin
OPERATION_SECURITY
Constructor and Description |
---|
XmlAttributeSecurityPolicyPlugin() |
Modifier and Type | Method and Description |
---|---|
List<String> |
getSecurityAttributeIntersections() |
List<String> |
getSecurityAttributeUnions() |
List<String> |
getXmlElements() |
Map<String,Set<String>> |
parseSecurityMetadata(Metacard metacard)
Parse XML metadata using StAX to find the security element
|
PolicyResponse |
processPostDelete(Metacard metacard,
Map<String,Serializable> map)
Processes a
Metacard , following the execution of
ddf.catalog.source.CatalogProvider#delete(ddf.catalog.operation.DeleteRequest), to return
policy information |
PolicyResponse |
processPostQuery(Result result,
Map<String,Serializable> map)
|
PolicyResponse |
processPostResource(ResourceResponse resourceResponse,
Metacard metacard)
Processes a
ResourceResponse , following the execution of the ResourceRequest , to return policy information |
PolicyResponse |
processPreCreate(Metacard metacard,
Map<String,Serializable> map)
Processes a
Metacard , prior to
ddf.catalog.source.CatalogProvider#create(ddf.catalog.operation.CreateRequest), to return
policy information |
PolicyResponse |
processPreDelete(List<Metacard> list,
Map<String,Serializable> map)
Processes a
DeleteRequest , prior to
ddf.catalog.source.CatalogProvider#delete(ddf.catalog.operation.DeleteRequest), to return
policy information |
PolicyResponse |
processPreQuery(Query query,
Map<String,Serializable> map)
|
PolicyResponse |
processPreResource(ResourceRequest resourceRequest)
Processes a
ResourceRequest , prior to execution of the ResourceRequest , to return policy information |
PolicyResponse |
processPreUpdate(Metacard metacard,
Map<String,Serializable> map)
Processes a
Metacard , prior to
ddf.catalog.source.CatalogProvider#update(ddf.catalog.operation.UpdateRequest), to return
policy information |
void |
setSecurityAttributeIntersections(List<String> securityAttributeIntersections) |
void |
setSecurityAttributeUnions(List<String> securityAttributeUnions) |
void |
setXmlElements(List<String> xmlElements) |
public Map<String,Set<String>> parseSecurityMetadata(Metacard metacard)
metacard
- XML metadata to parsepublic void setSecurityAttributeUnions(List<String> securityAttributeUnions)
public void setSecurityAttributeIntersections(List<String> securityAttributeIntersections)
public PolicyResponse processPreCreate(Metacard metacard, Map<String,Serializable> map) throws StopProcessingException
PolicyPlugin
Metacard
, prior to
ddf.catalog.source.CatalogProvider#create(ddf.catalog.operation.CreateRequest), to return
policy informationprocessPreCreate
in interface PolicyPlugin
metacard
- the Metacard
to processmap
- the request propertiesAccessPlugin
StopProcessingException
- thrown to halt processing when a critical issue occurs during
processing. This is intended to prevent other plugins from processing as well.public PolicyResponse processPreUpdate(Metacard metacard, Map<String,Serializable> map) throws StopProcessingException
PolicyPlugin
Metacard
, prior to
ddf.catalog.source.CatalogProvider#update(ddf.catalog.operation.UpdateRequest), to return
policy informationprocessPreUpdate
in interface PolicyPlugin
metacard
- the new Metacard
to processmap
- the request propertiesAccessPlugin
StopProcessingException
- thrown to halt processing when a critical issue occurs during
processing. This is intended to prevent other plugins from processing as well.public PolicyResponse processPreDelete(List<Metacard> list, Map<String,Serializable> map) throws StopProcessingException
PolicyPlugin
DeleteRequest
, prior to
ddf.catalog.source.CatalogProvider#delete(ddf.catalog.operation.DeleteRequest), to return
policy informationprocessPreDelete
in interface PolicyPlugin
list
- the list of metacards being deletedmap
- the request propertiesAccessPlugin
StopProcessingException
- thrown to halt processing when a critical issue occurs during
processing. This is intended to prevent other plugins from processing as well.public PolicyResponse processPostDelete(Metacard metacard, Map<String,Serializable> map) throws StopProcessingException
PolicyPlugin
Metacard
, following the execution of
ddf.catalog.source.CatalogProvider#delete(ddf.catalog.operation.DeleteRequest), to return
policy informationprocessPostDelete
in interface PolicyPlugin
metacard
- the Metacard
to processmap
- the request propertiesAccessPlugin
StopProcessingException
- thrown to halt processing when a critical issue occurs during
processing. This is intended to prevent other plugins from processing as well.public PolicyResponse processPreQuery(Query query, Map<String,Serializable> map) throws StopProcessingException
PolicyPlugin
processPreQuery
in interface PolicyPlugin
query
- the Query
to processmap
- the request propertiesAccessPlugin
StopProcessingException
- thrown to halt processing when a critical issue occurs during
processing. This is intended to prevent other plugins from processing as well.public PolicyResponse processPostQuery(Result result, Map<String,Serializable> map) throws StopProcessingException
PolicyPlugin
processPostQuery
in interface PolicyPlugin
result
- the Result
to processmap
- the request propertiesAccessPlugin
StopProcessingException
- thrown to halt processing when a critical issue occurs during
processing. This is intended to prevent other plugins from processing as well.public PolicyResponse processPreResource(ResourceRequest resourceRequest) throws StopProcessingException
PolicyPlugin
ResourceRequest
, prior to execution of the ResourceRequest
, to return policy informationprocessPreResource
in interface PolicyPlugin
resourceRequest
- the ResourceRequest
to processAccessPlugin
StopProcessingException
- thrown to halt processing when a critical issue occurs during
processing. This is intended to prevent other plugins from processing as well.public PolicyResponse processPostResource(ResourceResponse resourceResponse, Metacard metacard) throws StopProcessingException
PolicyPlugin
ResourceResponse
, following the execution of the ResourceRequest
, to return policy informationprocessPostResource
in interface PolicyPlugin
resourceResponse
- the ResourceResponse
to processmetacard
- the Metacard
related to the responseAccessPlugin
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.