Interface GuidGenerator

All Known Implementing Classes:
RandomGuidGenerator

public interface GuidGenerator
  • Field Details

  • Method Details

    • freshStatementId

      String freshStatementId(String entityId)
      Generates a fresh statement id. This consists of a first part with the entity id of the item the statement belongs to, the separator $, plus a random hash of the form /^\{?[A-Z\d]{8}-[A-Z\d]{4}-[A-Z\d]{4}-[A-Z\d]{4}-[A-Z\d]{12}\}?\z/
      Parameters:
      entityId - the entity the statement belongs to
      Returns:
      a fresh UUID in the required format.