java.lang.Object
ch.tocco.nice2.optional.address.impl.action.mail.Util

public class Util extends Object
  • Method Details

    • getFakeSingleBaseEntity

      public static Entity getFakeSingleBaseEntity(EntityList selectionList, MailReceiverService mailReceiverService, MailSettings mailSettings)
    • getPathsList

      public static ArrayList<HashMap<String,String>> getPathsList(@Nullable @Nullable String emailAddressPath, @Nullable @Nullable String firstnamePath, @Nullable @Nullable String lastnamePath)
      Helper method to get priority list of path settings
      Parameters:
      emailAddressPath - email address path property obtained from action config
      firstnamePath - firstname path property obtained from action config
      lastnamePath - lastname path property obtained from action config
      Returns:
      priority list of path settings
    • getPathsMap

      @Nullable public static @Nullable HashMap<String,String> getPathsMap(Entity entity, ArrayList<HashMap<String,String>> pathsList)
      get the path settings that apply for the current entity depending on it's data
      Parameters:
      entity - the entity
      pathsList - the pathsList obtained from getPathsList
      Returns:
      relevant path settings for the entity