Class PatchExecutionUnitUtils


  • public final class PatchExecutionUnitUtils
    extends java.lang.Object
    Utility for PatchExecution unit fields generation.
    • Method Detail

      • generateOrganisationUnitName

        public static java.lang.String generateOrganisationUnitName​(ImportOrganisationUnit organisationUnit)
        Generate a organisation unit name based on the organisation hierarchy.
        Parameters:
        organisationUnit - an organisation unit object
        Returns:
        full organisation units chain from the top to the bottom.
      • generateHashId

        public static java.lang.String generateHashId​(java.lang.String name,
                                                      ImportOrganisationUnit organisationUnit,
                                                      PatchExecutionModel patchExecution)
        Generates a hash based on three passed parameters.
        Parameters:
        name - a name of an action
        organisationUnit - organisation unit representation
        patchExecution - patch execution model
        Returns:
        generated hash used as a unique field for PatchExecutionUnitModel
      • generateHashId

        public static java.lang.String generateHashId​(java.lang.String name,
                                                      java.lang.String organisationUnitRepresentation,
                                                      PatchExecutionModel patchExecution)
        Generates a hash based on three passed parameters.
        Parameters:
        name - a name of an action
        organisationUnitRepresentation - organisation unit chain
        patchExecution - patch execution model
        Returns:
        generated hash used as a unique field for PatchExecutionUnitModel