Package org.codice.ddf.catalog.security
Class CatalogPolicy
java.lang.Object
org.codice.ddf.catalog.security.CatalogPolicy
- All Implemented Interfaces:
ddf.catalog.plugin.PolicyPlugin
IngestPlugin is a PreIngestPlugin that restricts the create/update/delete operations on the
catalog to a group defined by a set of configurable user attributes.
-
Field Summary
Fields inherited from interface ddf.catalog.plugin.PolicyPlugin
OPERATION_SECURITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the KeyValuePermission that have been parsed from the permissions stringString[]Getter used by the framework to populate the configuration uiGet the KeyValuePermission that have been parsed from the permissions stringString[]Getter used by the framework to populate the configuration uiGet the KeyValuePermission that have been parsed from the permissions stringString[]Getter used by the framework to populate the configuration uiGet the KeyValuePermission that have been parsed from the permissions stringString[]Getter used by the framework to populate the configuration uiddf.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 input, Map<String, Serializable> properties) voidsetCreatePermissions(String[] permStrings) Setter used by the ui to set the permissions/attributesvoidsetDeletePermissions(String[] permStrings) Setter used by the ui to set the permissions/attributesvoidsetReadPermissions(String[] permStrings) Setter used by the ui to set the permissions/attributesvoidsetUpdatePermissions(String[] permStrings) Setter used by the ui to set the permissions/attributes
-
Constructor Details
-
CatalogPolicy
public CatalogPolicy(ddf.security.permission.Permissions permissions)
-
-
Method Details
-
getCreatePermissions
Getter used by the framework to populate the configuration ui- Returns:
-
getUpdatePermissions
Getter used by the framework to populate the configuration ui- Returns:
-
getDeletePermissions
Getter used by the framework to populate the configuration ui- Returns:
-
getReadPermissions
Getter used by the framework to populate the configuration ui- Returns:
-
getCreatePermissionMap
Get the KeyValuePermission that have been parsed from the permissions string- Returns:
-
getUpdatePermissionMap
Get the KeyValuePermission that have been parsed from the permissions string- Returns:
-
getDeletePermissionMap
Get the KeyValuePermission that have been parsed from the permissions string- Returns:
-
getReadPermissionMap
Get the KeyValuePermission that have been parsed from the permissions string- Returns:
-
setCreatePermissions
Setter used by the ui to set the permissions/attributes- Parameters:
permStrings-
-
setUpdatePermissions
Setter used by the ui to set the permissions/attributes- Parameters:
permStrings-
-
setDeletePermissions
Setter used by the ui to set the permissions/attributes- Parameters:
permStrings-
-
setReadPermissions
Setter used by the ui to set the permissions/attributes- Parameters:
permStrings-
-
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 input, 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
-