All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.imunity.console.views.directory_browser.identities.IdentitiesMessageHelper Maven / Gradle / Ivy

There is a newer version: 4.0.3
Show newest version
/*
 * Copyright (c) 2021 Bixbit - Krzysztof Benedyczak. All rights reserved.
 * See LICENCE.txt file for licensing information.
 */

package io.imunity.console.views.directory_browser.identities;

import pl.edu.icm.unity.base.message.MessageSource;
import pl.edu.icm.unity.engine.api.utils.MessageUtils;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Set;

class IdentitiesMessageHelper
{
	static String getConfirmTextForIdentitiesNodes(MessageSource msg, Set selection)
	{
		Collection ids = new ArrayList<>();
		for (IdentityEntry o: selection)
			ids.add(o.getSourceIdentity().toHumanReadableString());		
		return MessageUtils.createConfirmFromStrings(msg, ids);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy