Package ddf.catalog.metacard.versioning
Class HistorianPolicyPlugin
java.lang.Object
ddf.catalog.metacard.versioning.HistorianPolicyPlugin
- All Implemented Interfaces:
ddf.catalog.plugin.PolicyPlugin
HistorianPolicyPlugin prevents anyone without the
HISTORY_ROLE from
modifying a MetacardVersion in any way.-
Field Summary
FieldsFields 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)
-
Field Details
-
HISTORY_ROLE
- See Also:
-
ROLE_CLAIM
- See Also:
-
-
Constructor Details
-
HistorianPolicyPlugin
public HistorianPolicyPlugin()
-
-
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
-