Class Util
java.lang.Object
ch.tocco.nice2.optional.address.impl.action.mail.Util
-
Method Summary
Modifier and TypeMethodDescriptionstatic Entity
getFakeSingleBaseEntity
(EntityList selectionList, MailReceiverService mailReceiverService, MailSettings mailSettings) getPathsList
(@Nullable String emailAddressPath, @Nullable String firstnamePath, @Nullable String lastnamePath) Helper method to get priority list of path settingsget the path settings that apply for the current entity depending on it's data
-
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 configfirstnamePath
- firstname path property obtained from action configlastnamePath
- 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 entitypathsList
- the pathsList obtained fromgetPathsList
- Returns:
- relevant path settings for the entity
-