Class SandboxSourceCacheOperation<S extends net.n2oapp.framework.api.metadata.SourceMetadata>

java.lang.Object
net.n2oapp.framework.api.event.MetadataChangeListener
net.n2oapp.framework.sandbox.view.operations.SandboxSourceCacheOperation<S>
All Implemented Interfaces:
EventListener, net.n2oapp.framework.api.event.N2oEventListener<net.n2oapp.framework.api.event.MetadataChangedEvent>, net.n2oapp.framework.api.metadata.aware.MetadataEnvironmentAware, net.n2oapp.framework.api.metadata.aware.PipelineOperationTypeAware, net.n2oapp.framework.api.metadata.pipeline.PipelineOperation<S,S>, org.springframework.context.ApplicationListener<net.n2oapp.framework.api.event.MetadataChangedEvent>

public class SandboxSourceCacheOperation<S extends net.n2oapp.framework.api.metadata.SourceMetadata> extends net.n2oapp.framework.api.event.MetadataChangeListener implements net.n2oapp.framework.api.metadata.pipeline.PipelineOperation<S,S>, net.n2oapp.framework.api.metadata.aware.PipelineOperationTypeAware, net.n2oapp.framework.api.metadata.aware.MetadataEnvironmentAware
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    SandboxSourceCacheOperation(String projectId, net.n2oapp.cache.template.CacheTemplate cacheTemplate, net.n2oapp.framework.api.register.MetadataRegister metadataRegister)
     
    SandboxSourceCacheOperation(String projectId, org.springframework.cache.CacheManager cacheManager)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    execute(net.n2oapp.framework.api.metadata.compile.CompileContext<?,?> context, net.n2oapp.criteria.dataset.DataSet data, Supplier<S> supplier, net.n2oapp.framework.api.metadata.compile.CompileProcessor compileProcessor, net.n2oapp.framework.api.metadata.compile.BindProcessor bindProcessor, net.n2oapp.framework.api.metadata.compile.SourceProcessor sourceProcessor)
     
    net.n2oapp.framework.api.metadata.pipeline.PipelineOperationType
     
    void
     
    void
    handleMetadataChange(String id, Class<? extends net.n2oapp.framework.api.metadata.SourceMetadata> sourceClass)
     
    void
    setEnvironment(net.n2oapp.framework.api.MetadataEnvironment environment)
     

    Methods inherited from class net.n2oapp.framework.api.event.MetadataChangeListener

    handleEvent, isApply

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.context.ApplicationListener

    supportsAsyncExecution

    Methods inherited from interface net.n2oapp.framework.api.event.N2oEventListener

    onApplicationEvent
  • Field Details

    • CACHE_REGION

      public static String CACHE_REGION
  • Constructor Details

    • SandboxSourceCacheOperation

      public SandboxSourceCacheOperation(@NotNull String projectId, org.springframework.cache.CacheManager cacheManager)
    • SandboxSourceCacheOperation

      public SandboxSourceCacheOperation(@NotNull String projectId, net.n2oapp.cache.template.CacheTemplate cacheTemplate, net.n2oapp.framework.api.register.MetadataRegister metadataRegister)
  • Method Details

    • getPipelineOperationType

      public net.n2oapp.framework.api.metadata.pipeline.PipelineOperationType getPipelineOperationType()
      Specified by:
      getPipelineOperationType in interface net.n2oapp.framework.api.metadata.aware.PipelineOperationTypeAware
    • execute

      public S execute(net.n2oapp.framework.api.metadata.compile.CompileContext<?,?> context, net.n2oapp.criteria.dataset.DataSet data, Supplier<S> supplier, net.n2oapp.framework.api.metadata.compile.CompileProcessor compileProcessor, net.n2oapp.framework.api.metadata.compile.BindProcessor bindProcessor, net.n2oapp.framework.api.metadata.compile.SourceProcessor sourceProcessor)
      Specified by:
      execute in interface net.n2oapp.framework.api.metadata.pipeline.PipelineOperation<S extends net.n2oapp.framework.api.metadata.SourceMetadata,S extends net.n2oapp.framework.api.metadata.SourceMetadata>
    • handleAllMetadataChange

      public void handleAllMetadataChange()
      Specified by:
      handleAllMetadataChange in class net.n2oapp.framework.api.event.MetadataChangeListener
    • handleMetadataChange

      public void handleMetadataChange(String id, Class<? extends net.n2oapp.framework.api.metadata.SourceMetadata> sourceClass)
      Specified by:
      handleMetadataChange in class net.n2oapp.framework.api.event.MetadataChangeListener
    • setEnvironment

      public void setEnvironment(net.n2oapp.framework.api.MetadataEnvironment environment)
      Specified by:
      setEnvironment in interface net.n2oapp.framework.api.metadata.aware.MetadataEnvironmentAware