Class LogUtils
- java.lang.Object
-
- org.ametys.odf.ose.export.impl.odf.LogUtils
-
-
Constructor Summary
Constructors Modifier Constructor Description private
LogUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static String
_readableOrgUnits(Collection<OrgUnit> orgUnits)
private static <T extends ProgramItem & Content>
String_readableProgramElements(Collection<T> programElements)
private static String
_readableRefTablesEntries(Collection<OdfReferenceTableEntry> entries)
static <T extends ProgramItem & Content>
voidprogramElementDebugIsNotContainedInSteps(org.slf4j.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(org.slf4j.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(org.slf4j.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(org.slf4j.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(org.slf4j.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(org.slf4j.Logger logger, Container container)
Log as error if it's impossible to export the step because there is not associatied functional domain.
-
-
-
Constructor Detail
-
LogUtils
private LogUtils()
-
-
Method Detail
-
stepImpossibilityDegreesOrOrgunits
public static void stepImpossibilityDegreesOrOrgunits(org.slf4j.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
public static void stepImpossibilityFunctDomain(org.slf4j.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 loggercontainer
- The concerned object
-
programElementImpossibilityStepsOrOrgunits
public static <T extends ProgramItem & Content> void programElementImpossibilityStepsOrOrgunits(org.slf4j.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(org.slf4j.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(org.slf4j.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(org.slf4j.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
-
_readableProgramElements
private static <T extends ProgramItem & Content> String _readableProgramElements(Collection<T> programElements)
-
_readableRefTablesEntries
private static String _readableRefTablesEntries(Collection<OdfReferenceTableEntry> entries)
-
_readableOrgUnits
private static String _readableOrgUnits(Collection<OrgUnit> orgUnits)
-
-