Class PipelineScanResultFunctions

java.lang.Object
flexagon.fd.model2.pipeline.execution.variables.PipelineScanResultFunctions

public class PipelineScanResultFunctions extends Object
The Class PipelineScanResultFunctions.
  • Constructor Details

    • PipelineScanResultFunctions

      public PipelineScanResultFunctions(Long pSnapshotId)
  • Method Details

    • byEnvironment

      public ScanResultInfo byEnvironment(Long pEnvironmentId) throws FlexCheckedException
      returns a ScanResultInfo object containing all scan results for the given environmentId in the current snapshot.
      Parameters:
      pEnvironmentId - the environment id
      Returns:
      the scanresultinfo object
      Throws:
      FlexCheckedException - the flex checked exception
    • getAll

      public ScanResultInfo getAll() throws FlexCheckedException
      returns a ScanResultInfo object containing all scan results in the current snapshot.
      Returns:
      the scanresultinfo object
      Throws:
      FlexCheckedException - the flex checked exception
    • byEnvironment

      public ScanResultInfo byEnvironment(String pEnvironmentCode) throws FlexCheckedException
      returns a ScanResultInfo object containing all scan results for the given environmentCode in the current snapshot.
      This is useful to use with stexec.getEnvironmentCode() to check scan results in the current stage.
      Parameters:
      pEnvironmentCode - the environment code
      Returns:
      the scanresultinfo object
      Throws:
      FlexCheckedException - the flex checked exception
    • byProjectAndEnvironment

      public ScanResultInfo byProjectAndEnvironment(Long pProjectId, Long pEnvironmentId) throws FlexCheckedException
      returns a ScanResultInfo object containing all scan results for the given projectId and environmentId in the current snapshot.
      Parameters:
      pProjectId - the project id
      pEnvironmentId - the environment id
      Returns:
      the scanresultinfo object
      Throws:
      FlexCheckedException - the flex checked exception
    • byProjectAndEnvironment

      public ScanResultInfo byProjectAndEnvironment(Long pProjectId, String pEnvironmentCode) throws FlexCheckedException
      returns a ScanResultInfo object containing all scan results for the given projectId and environment Code in the current snapshot.
      This is useful to use with stexec.getEnvironmentCode() to check scan results in the current stage.
      Parameters:
      pProjectId - the project id
      pEnvironmentCode - the environment code
      Returns:
      the scanresultinfo object
      Throws:
      FlexCheckedException - the flex checked exception