Package ddf.catalog.plugin
Interface PolicyPlugin
public interface PolicyPlugin
A PolicyPlugin is used to build policy information regarding the Catalog action a user is
attempting.
The PolicyResponse object contains 1 or more policy objects of the type: Map<String,
Set
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionprocessPostDelete(Metacard input, Map<String, Serializable> properties) Processes aMetacard, following the execution of ddf.catalog.source.CatalogProvider#delete(ddf.catalog.operation.DeleteRequest), to return policy informationprocessPostQuery(Result input, Map<String, Serializable> properties) processPostResource(ResourceResponse resourceResponse, Metacard metacard) Processes aResourceResponse, following the execution of theResourceRequest, to return policy informationprocessPreCreate(Metacard input, Map<String, Serializable> properties) Processes aMetacard, prior to ddf.catalog.source.CatalogProvider#create(ddf.catalog.operation.CreateRequest), to return policy informationprocessPreDelete(List<Metacard> metacards, Map<String, Serializable> properties) Processes aDeleteRequest, prior to ddf.catalog.source.CatalogProvider#delete(ddf.catalog.operation.DeleteRequest), to return policy informationprocessPreQuery(Query query, Map<String, Serializable> properties) processPreResource(ResourceRequest resourceRequest) Processes aResourceRequest, prior to execution of theResourceRequest, to return policy informationprocessPreUpdate(Metacard newMetacard, Map<String, Serializable> properties) Processes aMetacard, prior to ddf.catalog.source.CatalogProvider#update(ddf.catalog.operation.UpdateRequest), to return policy information
-
Field Details
-
OPERATION_SECURITY
- See Also:
-
-
Method Details
-
processPreCreate
PolicyResponse processPreCreate(Metacard input, Map<String, Serializable> properties) throws StopProcessingExceptionProcesses aMetacard, prior to ddf.catalog.source.CatalogProvider#create(ddf.catalog.operation.CreateRequest), to return policy information- Parameters:
input- theMetacardto processproperties- the request properties- Returns:
- policy information to pass to the
AccessPlugin - Throws:
StopProcessingException- thrown to halt processing when a critical issue occurs during processing. This is intended to prevent other plugins from processing as well.
-
processPreUpdate
PolicyResponse processPreUpdate(Metacard newMetacard, Map<String, Serializable> properties) throws StopProcessingExceptionProcesses aMetacard, prior to ddf.catalog.source.CatalogProvider#update(ddf.catalog.operation.UpdateRequest), to return policy information- Parameters:
newMetacard- the newMetacardto processproperties- the request properties- Returns:
- policy information to pass to the
AccessPlugin - Throws:
StopProcessingException- thrown to halt processing when a critical issue occurs during processing. This is intended to prevent other plugins from processing as well.
-
processPreDelete
PolicyResponse processPreDelete(List<Metacard> metacards, Map<String, Serializable> properties) throws StopProcessingExceptionProcesses aDeleteRequest, prior to ddf.catalog.source.CatalogProvider#delete(ddf.catalog.operation.DeleteRequest), to return policy information- Parameters:
metacards- the list of metacards being deletedproperties- the request properties- Returns:
- policy information to pass to the
AccessPlugin - Throws:
StopProcessingException- thrown to halt processing when a critical issue occurs during processing. This is intended to prevent other plugins from processing as well.
-
processPostDelete
PolicyResponse processPostDelete(Metacard input, Map<String, Serializable> properties) throws StopProcessingExceptionProcesses aMetacard, following the execution of ddf.catalog.source.CatalogProvider#delete(ddf.catalog.operation.DeleteRequest), to return policy information- Parameters:
input- theMetacardto processproperties- the request properties- Returns:
- policy information to pass to the
AccessPlugin - Throws:
StopProcessingException- thrown to halt processing when a critical issue occurs during processing. This is intended to prevent other plugins from processing as well.
-
processPreQuery
PolicyResponse processPreQuery(Query query, Map<String, Serializable> properties) throws StopProcessingException- Parameters:
query- theQueryto processproperties- the request properties- Returns:
- policy information to pass to the
AccessPlugin - Throws:
StopProcessingException- thrown to halt processing when a critical issue occurs during processing. This is intended to prevent other plugins from processing as well.
-
processPostQuery
PolicyResponse processPostQuery(Result input, Map<String, Serializable> properties) throws StopProcessingException- Parameters:
input- theResultto processproperties- the request properties- Returns:
- policy information to pass to the
AccessPlugin - Throws:
StopProcessingException- thrown to halt processing when a critical issue occurs during processing. This is intended to prevent other plugins from processing as well.
-
processPreResource
Processes aResourceRequest, prior to execution of theResourceRequest, to return policy information- Parameters:
resourceRequest- theResourceRequestto process- Returns:
- policy information to pass to the
AccessPlugin - Throws:
StopProcessingException- thrown to halt processing when a critical issue occurs during processing. This is intended to prevent other plugins from processing as well.
-
processPostResource
PolicyResponse processPostResource(ResourceResponse resourceResponse, Metacard metacard) throws StopProcessingException Processes aResourceResponse, following the execution of theResourceRequest, to return policy information- Parameters:
resourceResponse- theResourceResponseto processmetacard- theMetacardrelated to the response- Returns:
- policy information to pass to the
AccessPlugin - Throws:
StopProcessingException- thrown to halt processing when a critical issue occurs during processing. This is intended to prevent other plugins from processing as well.
-