Interface PersistentIdGenerator
-
- All Superinterfaces:
java.io.Serializable
public interface PersistentIdGenerator extends java.io.SerializableGenerates a unique consistent Id based on the principal.- Since:
- 3.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.lang.Stringgenerate(java.lang.String principal, java.lang.String service)Generates a PersistentId based on some algorithm plus the principal.default java.lang.Stringgenerate(java.lang.String principal, Service service)Generates a PersistentId based on some algorithm plus the principal.default java.lang.Stringgenerate(Principal principal)Generate string.java.lang.Stringgenerate(Principal principal, Service service)Generates a PersistentId based on some algorithm plus the principal.
-
-
-
Method Detail
-
generate
java.lang.String generate(java.lang.String principal, java.lang.String service)Generates a PersistentId based on some algorithm plus the principal.- Parameters:
principal- the principal to generate the id for.service- the service for which the id may be generated.- Returns:
- the generated persistent id.
-
generate
java.lang.String generate(Principal principal, Service service)
Generates a PersistentId based on some algorithm plus the principal.- Parameters:
principal- the principal to generate the id for.service- the service for which the id may be generated.- Returns:
- the generated persistent id.
-
generate
default java.lang.String generate(java.lang.String principal, Service service)Generates a PersistentId based on some algorithm plus the principal.- Parameters:
principal- the principal to generate the id for.service- the service for which the id may be generated.- Returns:
- the generated persistent id.
-
generate
default java.lang.String generate(Principal principal)
Generate string.- Parameters:
principal- the principal- Returns:
- the string
-
-