Class PointOfContactPolicyPlugin
java.lang.Object
org.codice.ddf.catalog.security.policy.metacard.PointOfContactPolicyPlugin
- All Implemented Interfaces:
ddf.catalog.plugin.PolicyPlugin
Security-based plugin that adds a policy if the point-of-contact field changed on preUpdate.
-
Field Summary
Fields inherited from interface ddf.catalog.plugin.PolicyPlugin
OPERATION_SECURITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionddf.catalog.plugin.PolicyResponseprocessPostDelete(ddf.catalog.data.Metacard input, Map<String, Serializable> properties) ddf.catalog.plugin.PolicyResponseprocessPostQuery(ddf.catalog.data.Result input, Map<String, Serializable> properties) ddf.catalog.plugin.PolicyResponseprocessPostResource(ddf.catalog.operation.ResourceResponse resourceResponse, ddf.catalog.data.Metacard metacard) ddf.catalog.plugin.PolicyResponseprocessPreCreate(ddf.catalog.data.Metacard input, Map<String, Serializable> properties) ddf.catalog.plugin.PolicyResponseprocessPreDelete(List<ddf.catalog.data.Metacard> metacards, Map<String, Serializable> properties) ddf.catalog.plugin.PolicyResponseprocessPreQuery(ddf.catalog.operation.Query query, Map<String, Serializable> properties) ddf.catalog.plugin.PolicyResponseprocessPreResource(ddf.catalog.operation.ResourceRequest resourceRequest) ddf.catalog.plugin.PolicyResponseprocessPreUpdate(ddf.catalog.data.Metacard newMetacard, Map<String, Serializable> properties)
-
Constructor Details
-
PointOfContactPolicyPlugin
public PointOfContactPolicyPlugin(ddf.security.permission.Permissions permissions)
-
-
Method Details
-
processPreCreate
public ddf.catalog.plugin.PolicyResponse processPreCreate(ddf.catalog.data.Metacard input, Map<String, Serializable> properties) throws ddf.catalog.plugin.StopProcessingException- Specified by:
processPreCreatein interfaceddf.catalog.plugin.PolicyPlugin- Throws:
ddf.catalog.plugin.StopProcessingException
-
processPreUpdate
public ddf.catalog.plugin.PolicyResponse processPreUpdate(ddf.catalog.data.Metacard newMetacard, Map<String, Serializable> properties) throws ddf.catalog.plugin.StopProcessingException- Specified by:
processPreUpdatein interfaceddf.catalog.plugin.PolicyPlugin- Throws:
ddf.catalog.plugin.StopProcessingException
-
processPreDelete
public ddf.catalog.plugin.PolicyResponse processPreDelete(List<ddf.catalog.data.Metacard> metacards, Map<String, Serializable> properties) throws ddf.catalog.plugin.StopProcessingException- Specified by:
processPreDeletein interfaceddf.catalog.plugin.PolicyPlugin- Throws:
ddf.catalog.plugin.StopProcessingException
-
processPostDelete
public ddf.catalog.plugin.PolicyResponse processPostDelete(ddf.catalog.data.Metacard input, Map<String, Serializable> properties) throws ddf.catalog.plugin.StopProcessingException- Specified by:
processPostDeletein interfaceddf.catalog.plugin.PolicyPlugin- Throws:
ddf.catalog.plugin.StopProcessingException
-
processPreQuery
public ddf.catalog.plugin.PolicyResponse processPreQuery(ddf.catalog.operation.Query query, Map<String, Serializable> properties) throws ddf.catalog.plugin.StopProcessingException- Specified by:
processPreQueryin interfaceddf.catalog.plugin.PolicyPlugin- Throws:
ddf.catalog.plugin.StopProcessingException
-
processPostQuery
public ddf.catalog.plugin.PolicyResponse processPostQuery(ddf.catalog.data.Result input, Map<String, Serializable> properties) throws ddf.catalog.plugin.StopProcessingException- Specified by:
processPostQueryin interfaceddf.catalog.plugin.PolicyPlugin- Throws:
ddf.catalog.plugin.StopProcessingException
-
processPreResource
public ddf.catalog.plugin.PolicyResponse processPreResource(ddf.catalog.operation.ResourceRequest resourceRequest) throws ddf.catalog.plugin.StopProcessingException - Specified by:
processPreResourcein interfaceddf.catalog.plugin.PolicyPlugin- Throws:
ddf.catalog.plugin.StopProcessingException
-
processPostResource
public ddf.catalog.plugin.PolicyResponse processPostResource(ddf.catalog.operation.ResourceResponse resourceResponse, ddf.catalog.data.Metacard metacard) throws ddf.catalog.plugin.StopProcessingException - Specified by:
processPostResourcein interfaceddf.catalog.plugin.PolicyPlugin- Throws:
ddf.catalog.plugin.StopProcessingException
-