Package ddf.catalog.security.plugin
Class SecurityPlugin
java.lang.Object
ddf.catalog.security.plugin.SecurityPlugin
- All Implemented Interfaces:
ddf.catalog.plugin.AccessPlugin
Security-based plugin that looks for a subject using SecurityUtils and adds it to the current
operation's properties map.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionddf.catalog.operation.DeleteResponseprocessPostDelete(ddf.catalog.operation.DeleteResponse input) ddf.catalog.operation.QueryResponseprocessPostQuery(ddf.catalog.operation.QueryResponse input) ddf.catalog.operation.ResourceResponseprocessPostResource(ddf.catalog.operation.ResourceResponse input, ddf.catalog.data.Metacard metacard) ddf.catalog.operation.CreateRequestprocessPreCreate(ddf.catalog.operation.CreateRequest input) Sets theMetacard.POINT_OF_CONTACTattribute on aMetacardif it does not contain one already and the metacard is a resource metacard.ddf.catalog.operation.DeleteRequestprocessPreDelete(ddf.catalog.operation.DeleteRequest input) ddf.catalog.operation.QueryRequestprocessPreQuery(ddf.catalog.operation.QueryRequest input) ddf.catalog.operation.ResourceRequestprocessPreResource(ddf.catalog.operation.ResourceRequest input) ddf.catalog.operation.UpdateRequestprocessPreUpdate(ddf.catalog.operation.UpdateRequest input, Map<String, ddf.catalog.data.Metacard> existingMetacards)
-
Constructor Details
-
SecurityPlugin
public SecurityPlugin(ddf.security.SubjectIdentity subjectIdentity)
-
-
Method Details
-
processPreCreate
public ddf.catalog.operation.CreateRequest processPreCreate(ddf.catalog.operation.CreateRequest input) Sets theMetacard.POINT_OF_CONTACTattribute on aMetacardif it does not contain one already and the metacard is a resource metacard. From a legacy perspective, a metacard with no tags is considered a resource metacard.- Specified by:
processPreCreatein interfaceddf.catalog.plugin.AccessPlugin- Parameters:
input- theCreateRequestcontainingMetacards to process- Returns:
- the original
CreateRequest
-
processPreUpdate
public ddf.catalog.operation.UpdateRequest processPreUpdate(ddf.catalog.operation.UpdateRequest input, Map<String, ddf.catalog.data.Metacard> existingMetacards) throws ddf.catalog.plugin.StopProcessingException- Specified by:
processPreUpdatein interfaceddf.catalog.plugin.AccessPlugin- Throws:
ddf.catalog.plugin.StopProcessingException
-
processPreDelete
public ddf.catalog.operation.DeleteRequest processPreDelete(ddf.catalog.operation.DeleteRequest input) throws ddf.catalog.plugin.StopProcessingException - Specified by:
processPreDeletein interfaceddf.catalog.plugin.AccessPlugin- Throws:
ddf.catalog.plugin.StopProcessingException
-
processPostDelete
public ddf.catalog.operation.DeleteResponse processPostDelete(ddf.catalog.operation.DeleteResponse input) throws ddf.catalog.plugin.StopProcessingException - Specified by:
processPostDeletein interfaceddf.catalog.plugin.AccessPlugin- Throws:
ddf.catalog.plugin.StopProcessingException
-
processPreQuery
public ddf.catalog.operation.QueryRequest processPreQuery(ddf.catalog.operation.QueryRequest input) throws ddf.catalog.plugin.StopProcessingException - Specified by:
processPreQueryin interfaceddf.catalog.plugin.AccessPlugin- Throws:
ddf.catalog.plugin.StopProcessingException
-
processPostQuery
public ddf.catalog.operation.QueryResponse processPostQuery(ddf.catalog.operation.QueryResponse input) throws ddf.catalog.plugin.StopProcessingException - Specified by:
processPostQueryin interfaceddf.catalog.plugin.AccessPlugin- Throws:
ddf.catalog.plugin.StopProcessingException
-
processPreResource
public ddf.catalog.operation.ResourceRequest processPreResource(ddf.catalog.operation.ResourceRequest input) throws ddf.catalog.plugin.StopProcessingException - Specified by:
processPreResourcein interfaceddf.catalog.plugin.AccessPlugin- Throws:
ddf.catalog.plugin.StopProcessingException
-
processPostResource
public ddf.catalog.operation.ResourceResponse processPostResource(ddf.catalog.operation.ResourceResponse input, ddf.catalog.data.Metacard metacard) throws ddf.catalog.plugin.StopProcessingException - Specified by:
processPostResourcein interfaceddf.catalog.plugin.AccessPlugin- Throws:
ddf.catalog.plugin.StopProcessingException
-