public class CatalogPolicy extends Object implements PolicyPlugin
OPERATION_SECURITY
Constructor and Description |
---|
CatalogPolicy() |
Modifier and Type | Method and Description |
---|---|
Map<String,Set<String>> |
getCreatePermissionMap()
Get the KeyValuePermission that have been parsed from the permissions string
|
String[] |
getCreatePermissions()
Getter used by the framework to populate the configuration ui
|
Map<String,Set<String>> |
getDeletePermissionMap()
Get the KeyValuePermission that have been parsed from the permissions string
|
String[] |
getDeletePermissions()
Getter used by the framework to populate the configuration ui
|
Map<String,Set<String>> |
getReadPermissionMap()
Get the KeyValuePermission that have been parsed from the permissions string
|
String[] |
getReadPermissions()
Getter used by the framework to populate the configuration ui
|
Map<String,Set<String>> |
getUpdatePermissionMap()
Get the KeyValuePermission that have been parsed from the permissions string
|
String[] |
getUpdatePermissions()
Getter used by the framework to populate the configuration ui
|
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 |
setCreatePermissions(String[] permStrings)
Setter used by the ui to set the permissions/attributes
|
void |
setDeletePermissions(String[] permStrings)
Setter used by the ui to set the permissions/attributes
|
void |
setReadPermissions(String[] permStrings)
Setter used by the ui to set the permissions/attributes
|
void |
setUpdatePermissions(String[] permStrings)
Setter used by the ui to set the permissions/attributes
|
public String[] getCreatePermissions()
public String[] getUpdatePermissions()
public String[] getDeletePermissions()
public String[] getReadPermissions()
public Map<String,Set<String>> getCreatePermissionMap()
public Map<String,Set<String>> getUpdatePermissionMap()
public Map<String,Set<String>> getDeletePermissionMap()
public Map<String,Set<String>> getReadPermissionMap()
public void setCreatePermissions(String[] permStrings)
permStrings
- public void setUpdatePermissions(String[] permStrings)
permStrings
- public void setDeletePermissions(String[] permStrings)
permStrings
- public void setReadPermissions(String[] permStrings)
permStrings
- public PolicyResponse processPreCreate(Metacard input, Map<String,Serializable> properties) throws StopProcessingException
PolicyPlugin
Metacard
, prior to
ddf.catalog.source.CatalogProvider#create(ddf.catalog.operation.CreateRequest), to return
policy informationprocessPreCreate
in interface PolicyPlugin
input
- the Metacard
to processproperties
- the request propertiesAccessPlugin
StopProcessingException
- 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
PolicyPlugin
Metacard
, prior to
ddf.catalog.source.CatalogProvider#update(ddf.catalog.operation.UpdateRequest), to return
policy informationprocessPreUpdate
in interface PolicyPlugin
input
- the new Metacard
to processproperties
- the request propertiesAccessPlugin
StopProcessingException
- 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
PolicyPlugin
DeleteRequest
, prior to
ddf.catalog.source.CatalogProvider#delete(ddf.catalog.operation.DeleteRequest), to return
policy informationprocessPreDelete
in interface PolicyPlugin
metacards
- the list of metacards being deletedproperties
- the request propertiesAccessPlugin
StopProcessingException
- 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
PolicyPlugin
Metacard
, following the execution of
ddf.catalog.source.CatalogProvider#delete(ddf.catalog.operation.DeleteRequest), to return
policy informationprocessPostDelete
in interface PolicyPlugin
input
- the Metacard
to processproperties
- the request propertiesAccessPlugin
StopProcessingException
- 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
PolicyPlugin
processPreQuery
in interface PolicyPlugin
query
- the Query
to processproperties
- the request propertiesAccessPlugin
StopProcessingException
- 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
PolicyPlugin
processPostQuery
in interface PolicyPlugin
input
- the Result
to processproperties
- the request propertiesAccessPlugin
StopProcessingException
- 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
PolicyPlugin
ResourceRequest
, prior to execution of the ResourceRequest
, to return policy informationprocessPreResource
in interface PolicyPlugin
resourceRequest
- the ResourceRequest
to processAccessPlugin
StopProcessingException
- 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
PolicyPlugin
ResourceResponse
, following the execution of the ResourceRequest
, to return policy informationprocessPostResource
in interface PolicyPlugin
resourceResponse
- the ResourceResponse
to processmetacard
- the Metacard
related to the responseAccessPlugin
StopProcessingException
- 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.