public class UUIDNamePolicy<AU extends AppUser> extends GlobalNamePolicy<AU,UUIDNamePolicy>
GlobalNamePolicy
that assigns a random UUID for the AppUser
These can safely be anonymised without risk of re-issue so aresuitable for
ids sent to external providers.PROPERTY_PREFIX
Constructor and Description |
---|
UUIDNamePolicy(AppUserFactory<AU> factory) |
Modifier and Type | Method and Description |
---|---|
protected int |
defaultFieldLength()
default filed length when creating table.
|
java.lang.String |
getName(AU p)
Generate a unique global name for the uncommitted person.
|
java.lang.String |
getNameLabel()
Get a user presented label asking for the login name of the supported type.
|
anonymise, post_commit, pre_commit, setTemplateContent, userSet
active, addSuppress, addToHistorySpecification, addTranslations, customiseForm, customiseUpdateForm, getCanonicalName, getStringFinderFilter, modifyDefaultTableSpecification, normalizeName, setName, userVisible
findFromString, getAllNames, getDataCache, getRealm, getType, toString, validateName, verified
addDefaults, addFieldHelp, addOptional, addSelectors, getContext, getFactory, getLogger, getRecord, getRepository, postUpdate, preRegister, release
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addEraseFields
addFieldConstraints, addFormFields
public UUIDNamePolicy(AppUserFactory<AU> factory)
factory
- realm
- public java.lang.String getName(AU p)
GlobalNamePolicy
getName
in class GlobalNamePolicy<AU extends AppUser,UUIDNamePolicy>
p
- uncommitted person.protected int defaultFieldLength()
FieldNameFinder
defaultFieldLength
in class FieldNameFinder<AU extends AppUser,UUIDNamePolicy>
public java.lang.String getNameLabel()
AppUserNameFinder
getNameLabel
in class FieldNameFinder<AU extends AppUser,UUIDNamePolicy>