blob: dfff25884028fb25eea2eb7451ef02d667839ac3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package org.openecomp.sdc.be.dao.jsongraph.utils;
import java.util.UUID;
import org.openecomp.sdc.be.dao.jsongraph.types.VertexTypeEnum;
public class IdBuilderUtils {
private static String DOT = ".";
public static String generateChildId(String componentId, VertexTypeEnum type){
StringBuffer sb = new StringBuffer(componentId);
sb.append(DOT).append(type.getName());
return sb.toString();
}
public static String generateUUID(){
return UUID.randomUUID().toString();
}
public static String generateUniqueId(){
return UUID.randomUUID().toString();
}
}
|