Class CatalogPolicy

java.lang.Object
org.codice.ddf.catalog.security.CatalogPolicy
All Implemented Interfaces:
ddf.catalog.plugin.PolicyPlugin

public class CatalogPolicy extends Object implements 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.
  • Constructor Details

    • CatalogPolicy

      public CatalogPolicy(ddf.security.permission.Permissions permissions)
  • Method Details

    • getCreatePermissions

      public String[] getCreatePermissions()
      Getter used by the framework to populate the configuration ui
      Returns:
    • getUpdatePermissions

      public String[] getUpdatePermissions()
      Getter used by the framework to populate the configuration ui
      Returns:
    • getDeletePermissions

      public String[] getDeletePermissions()
      Getter used by the framework to populate the configuration ui
      Returns:
    • getReadPermissions

      public String[] getReadPermissions()
      Getter used by the framework to populate the configuration ui
      Returns:
    • getCreatePermissionMap

      public Map<String,Set<String>> getCreatePermissionMap()
      Get the KeyValuePermission that have been parsed from the permissions string
      Returns:
    • getUpdatePermissionMap

      public Map<String,Set<String>> getUpdatePermissionMap()
      Get the KeyValuePermission that have been parsed from the permissions string
      Returns:
    • getDeletePermissionMap

      public Map<String,Set<String>> getDeletePermissionMap()
      Get the KeyValuePermission that have been parsed from the permissions string
      Returns:
    • getReadPermissionMap

      public Map<String,Set<String>> getReadPermissionMap()
      Get the KeyValuePermission that have been parsed from the permissions string
      Returns:
    • setCreatePermissions

      public void setCreatePermissions(String[] permStrings)
      Setter used by the ui to set the permissions/attributes
      Parameters:
      permStrings -
    • setUpdatePermissions

      public void setUpdatePermissions(String[] permStrings)
      Setter used by the ui to set the permissions/attributes
      Parameters:
      permStrings -
    • setDeletePermissions

      public void setDeletePermissions(String[] permStrings)
      Setter used by the ui to set the permissions/attributes
      Parameters:
      permStrings -
    • setReadPermissions

      public void setReadPermissions(String[] permStrings)
      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:
      processPreCreate in interface ddf.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:
      processPreUpdate in interface ddf.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:
      processPreDelete in interface ddf.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:
      processPostDelete in interface ddf.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:
      processPreQuery in interface ddf.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:
      processPostQuery in interface ddf.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:
      processPreResource in interface ddf.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:
      processPostResource in interface ddf.catalog.plugin.PolicyPlugin
      Throws:
      ddf.catalog.plugin.StopProcessingException