Class LogUtils

java.lang.Object
org.ametys.odf.ose.export.impl.odf.LogUtils

public final class LogUtils extends Object
Log utils.
  • Method Details

    • stepImpossibilityDegreesOrOrgunits

      public static void stepImpossibilityDegreesOrOrgunits(Logger logger, Container container, Collection<OdfReferenceTableEntry> degrees, Collection<OrgUnit> orgUnits)
      Log as error if it's impossible to export the step because degrees and/or orgunits are not unique or are empty.
      Parameters:
      logger - The logger
      container - The concerned object
      degrees - The degrees
      orgUnits - The orgunits
    • stepImpossibilityFunctDomain

      public static void stepImpossibilityFunctDomain(Logger logger, Container container)
      Log as error if it's impossible to export the step because there is not associatied functional domain.
      Parameters:
      logger - The logger
      container - The concerned object
    • programElementImpossibilityStepsOrOrgunits

      public static <T extends ProgramItem & Content> void programElementImpossibilityStepsOrOrgunits(Logger logger, T programElement, Collection<Container> steps, Collection<OrgUnit> orgUnits)
      Log as error if it's impossible to export the program element because steps and/or orgunits are not unique or are empty.
      Type Parameters:
      T - The type of the program element, should be a subclasse of ProgramItem and Content
      Parameters:
      logger - The logger
      programElement - The concerned object
      steps - The steps
      orgUnits - The orgunits
    • programElementWarningOrgUnits

      public static <T extends ProgramItem & Content> void programElementWarningOrgUnits(Logger logger, T programElement, Collection<OrgUnit> orgUnits)
      Log as warning if it's impossible to establish the orgunit to export on the program element because there is several values.
      Type Parameters:
      T - The type of the program element, should be a subclasse of ProgramItem and Content
      Parameters:
      logger - The logger
      programElement - The concerned object
      orgUnits - The orgunits
    • programElementWarningPeriodTypes

      public static <T extends ProgramItem & Content> void programElementWarningPeriodTypes(Logger logger, T programElement, Collection<OdfReferenceTableEntry> periodTypes)
      Log as warning if it's impossible the period type of the program element because there is several values.
      Type Parameters:
      T - The type of the program element, should be a subclasse of ProgramItem and Content
      Parameters:
      logger - The logger
      programElement - The concerned object
      periodTypes - The period types
    • programElementDebugIsNotContainedInSteps

      public static <T extends ProgramItem & Content> void programElementDebugIsNotContainedInSteps(Logger logger, T programElement, Container stepHolder, Collection<Container> steps)
      Log as debug if it's impossible to export the program element because the step holder is not in the steps of the program element.
      Type Parameters:
      T - The type of the program element, should be a subclasse of ProgramItem and Content
      Parameters:
      logger - The logger
      programElement - The concerned object
      stepHolder - The step holder
      steps - The steps