com.acrolinx.client.sdk.utils.BatchCheckIdGenerator Maven / Gradle / Ivy
/**
* Copyright (c) 2019-present Acrolinx GmbH
*/
package com.acrolinx.client.sdk.utils;
import java.util.UUID;
public class BatchCheckIdGenerator
{
private BatchCheckIdGenerator()
{
}
public static String getId(String integrationShortName)
{
String uuid = UUID.randomUUID().toString();
String name = "javaSDK";
if (integrationShortName != null && !integrationShortName.isEmpty()) {
name = integrationShortName.trim().replaceAll(" ", "-");
}
return "gen." + name + "." + uuid;
}
}