labelingsystem-server  Version 0.1.0.0
UniqueIdentifier Class Reference

Static Public Member Functions

static String getHashID ()
 
static String getUniversallyUniqueIdentifier2 ()
 

Member Function Documentation

◆ getHashID()

static String getHashID ( )
static
8  {
9  // https://github.com/jiecao-fm/hashids-java
10  Hashids hashids = new Hashids(getUniversallyUniqueIdentifier2(), 12);
11  String hash = hashids.encode(1234567L);
12  return hash;
13  }

References UniqueIdentifier.getUniversallyUniqueIdentifier2().

Referenced by CSV.createLabelTriples(), AuthResource.loginUser(), LabelsResource.postLabel(), VocabsResource.postVocabulary(), and LabelsResource.revisionSPARQLUPDATE().

◆ getUniversallyUniqueIdentifier2()

static String getUniversallyUniqueIdentifier2 ( )
static
15  {
16  UUID newUUID = UUID.randomUUID();
17  return newUUID.toString();
18  }

Referenced by UniqueIdentifier.getHashID().

v1.utils.uuid.UniqueIdentifier.getUniversallyUniqueIdentifier2
static String getUniversallyUniqueIdentifier2()
Definition: UniqueIdentifier.java:15