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

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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy