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
PolicyPluginMetacard, prior to
ddf.catalog.source.CatalogProvider#create(ddf.catalog.operation.CreateRequest), to return
policy informationprocessPreCreate in interface PolicyPluginmetacard - the Metacard to processmap - the request propertiesAccessPluginStopProcessingException - 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
PolicyPluginMetacard, prior to
ddf.catalog.source.CatalogProvider#update(ddf.catalog.operation.UpdateRequest), to return
policy informationprocessPreUpdate in interface PolicyPluginmetacard - the new Metacard to processmap - the request propertiesAccessPluginStopProcessingException - 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
PolicyPluginDeleteRequest, prior to
ddf.catalog.source.CatalogProvider#delete(ddf.catalog.operation.DeleteRequest), to return
policy informationprocessPreDelete in interface PolicyPluginlist - the list of metacards being deletedmap - the request propertiesAccessPluginStopProcessingException - 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
PolicyPluginMetacard, following the execution of
ddf.catalog.source.CatalogProvider#delete(ddf.catalog.operation.DeleteRequest), to return
policy informationprocessPostDelete in interface PolicyPluginmetacard - the Metacard to processmap - the request propertiesAccessPluginStopProcessingException - 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
PolicyPluginprocessPreQuery in interface PolicyPluginquery - the Query to processmap - the request propertiesAccessPluginStopProcessingException - 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
PolicyPluginprocessPostQuery in interface PolicyPluginresult - the Result to processmap - the request propertiesAccessPluginStopProcessingException - 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
PolicyPluginResourceRequest, prior to execution of the ResourceRequest, to return policy informationprocessPreResource in interface PolicyPluginresourceRequest - the ResourceRequest to processAccessPluginStopProcessingException - 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
PolicyPluginResourceResponse, following the execution of the ResourceRequest, to return policy informationprocessPostResource in interface PolicyPluginresourceResponse - the ResourceResponse to processmetacard - the Metacard related to the responseAccessPluginStopProcessingException - 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.