public class RegistryPolicyPlugin extends Object implements PolicyPlugin
OPERATION_SECURITY| Constructor and Description |
|---|
RegistryPolicyPlugin() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Set<String>> |
getBypassAccessPolicy() |
Map<String,Set<String>> |
getCreateAccessPolicy() |
Map<String,Set<String>> |
getDeleteAccessPolicy() |
Map<String,Set<String>> |
getReadAccessPolicy() |
Set<String> |
getRegistryEntryIds()
Get a string set of the federation service ids allowed to be queried
|
Map<String,Set<String>> |
getUpdateAccessPolicy() |
void |
init() |
boolean |
isRegistryDisabled() |
boolean |
isWhiteList() |
PolicyResponse |
processPostDelete(Metacard input,
Map<String,Serializable> properties)
Processes a
Metacard, following the execution of
ddf.catalog.source.CatalogProvider#delete(ddf.catalog.operation.DeleteRequest), to return
policy information |
PolicyResponse |
processPostQuery(Result input,
Map<String,Serializable> properties)
|
PolicyResponse |
processPostResource(ResourceResponse resourceResponse,
Metacard metacard)
Processes a
ResourceResponse, following the execution of the ResourceRequest, to return policy information |
PolicyResponse |
processPreCreate(Metacard input,
Map<String,Serializable> properties)
Processes a
Metacard, prior to
ddf.catalog.source.CatalogProvider#create(ddf.catalog.operation.CreateRequest), to return
policy information |
PolicyResponse |
processPreDelete(List<Metacard> metacards,
Map<String,Serializable> properties)
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> properties)
|
PolicyResponse |
processPreResource(ResourceRequest resourceRequest)
Processes a
ResourceRequest, prior to execution of the ResourceRequest, to return policy information |
PolicyResponse |
processPreUpdate(Metacard input,
Map<String,Serializable> properties)
Processes a
Metacard, prior to
ddf.catalog.source.CatalogProvider#update(ddf.catalog.operation.UpdateRequest), to return
policy information |
void |
setCreateAccessPolicyStrings(List<String> accessPolicyStrings) |
void |
setDeleteAccessPolicyStrings(List<String> accessPolicyStrings) |
void |
setReadAccessPolicyStrings(List<String> readAccessPolicyStrings) |
void |
setRegistryBypassPolicyStrings(List<String> permStrings)
Setter used by the ui to set the permissions/attributes
|
void |
setRegistryDisabled(boolean registryDisabled) |
void |
setRegistryEntryIds(Set<String> registryEntryIds)
Setter for the list of allowed federation service ids.
|
void |
setUpdateAccessPolicyStrings(List<String> accessPolicyStrings) |
void |
setWhiteList(boolean whiteList)
Sets the whether or not the registry entry ids list is a 'white list' or not.
|
public void init()
public boolean isWhiteList()
public void setWhiteList(boolean whiteList)
whiteList - boolean value for whiteListpublic Set<String> getRegistryEntryIds()
public void setRegistryEntryIds(Set<String> registryEntryIds)
registryEntryIds - Set of registry entry idspublic boolean isRegistryDisabled()
public void setRegistryDisabled(boolean registryDisabled)
public void setCreateAccessPolicyStrings(List<String> accessPolicyStrings)
public void setUpdateAccessPolicyStrings(List<String> accessPolicyStrings)
public void setDeleteAccessPolicyStrings(List<String> accessPolicyStrings)
public void setReadAccessPolicyStrings(List<String> readAccessPolicyStrings)
public void setRegistryBypassPolicyStrings(List<String> permStrings)
permStrings - The list of bypass permissionspublic PolicyResponse processPreCreate(Metacard input, Map<String,Serializable> properties) throws StopProcessingException
PolicyPluginMetacard, prior to
ddf.catalog.source.CatalogProvider#create(ddf.catalog.operation.CreateRequest), to return
policy informationprocessPreCreate in interface PolicyPlugininput - the Metacard to processproperties - 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 input, Map<String,Serializable> properties) throws StopProcessingException
PolicyPluginMetacard, prior to
ddf.catalog.source.CatalogProvider#update(ddf.catalog.operation.UpdateRequest), to return
policy informationprocessPreUpdate in interface PolicyPlugininput - the new Metacard to processproperties - 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> metacards, Map<String,Serializable> properties) throws StopProcessingException
PolicyPluginDeleteRequest, prior to
ddf.catalog.source.CatalogProvider#delete(ddf.catalog.operation.DeleteRequest), to return
policy informationprocessPreDelete in interface PolicyPluginmetacards - the list of metacards being deletedproperties - 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 input, Map<String,Serializable> properties) throws StopProcessingException
PolicyPluginMetacard, following the execution of
ddf.catalog.source.CatalogProvider#delete(ddf.catalog.operation.DeleteRequest), to return
policy informationprocessPostDelete in interface PolicyPlugininput - the Metacard to processproperties - 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> properties) throws StopProcessingException
PolicyPluginprocessPreQuery in interface PolicyPluginquery - the Query to processproperties - 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 input, Map<String,Serializable> properties) throws StopProcessingException
PolicyPluginprocessPostQuery in interface PolicyPlugininput - the Result to processproperties - 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.