Class LogUtils
java.lang.Object
org.ametys.odf.ose.export.impl.odf.LogUtils
Log utils.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends ProgramItem & Content>
voidprogramElementDebugIsNotContainedInSteps
(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.static <T extends ProgramItem & Content>
voidprogramElementImpossibilityStepsOrOrgunits
(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.static <T extends ProgramItem & Content>
voidprogramElementWarningOrgUnits
(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.static <T extends ProgramItem & Content>
voidprogramElementWarningPeriodTypes
(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.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.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.
-
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 loggercontainer
- The concerned objectdegrees
- The degreesorgUnits
- The orgunits
-
stepImpossibilityFunctDomain
Log as error if it's impossible to export the step because there is not associatied functional domain.- Parameters:
logger
- The loggercontainer
- 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 ofProgramItem
andContent
- Parameters:
logger
- The loggerprogramElement
- The concerned objectsteps
- The stepsorgUnits
- 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 ofProgramItem
andContent
- Parameters:
logger
- The loggerprogramElement
- The concerned objectorgUnits
- 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 ofProgramItem
andContent
- Parameters:
logger
- The loggerprogramElement
- The concerned objectperiodTypes
- 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 ofProgramItem
andContent
- Parameters:
logger
- The loggerprogramElement
- The concerned objectstepHolder
- The step holdersteps
- The steps
-