public class MultiNameFinder<AU extends AppUser,X extends MultiNameFinder> extends AppUserNameFinder<AU,X>
AppUserNameFinder
where multiple name mappings are held in a seperate table
Configuration parameters:
MultiNameFactory
to hold the namesModifier and Type | Field and Description |
---|---|
protected static java.lang.String |
PROPERTY_PREFIX |
Constructor and Description |
---|
MultiNameFinder(AppUserFactory<AU> factory,
java.lang.String realm) |
Modifier and Type | Method and Description |
---|---|
boolean |
active()
Checks if sufficient database fields exist to use this
AppUserNameFinder
An inactive finder still modifies the table specification but won't be retreivable as a realm. |
java.util.Set<java.lang.String> |
getAllNames(AU user)
Get all of the defined names for this realm.
|
java.lang.String |
getCanonicalName(AU object)
Get a canonical name of an object in a format that can be parsed by the
ParseFactory.findFromString(String) method. |
java.lang.String |
getNameLabel()
Get a user presented label asking for the login name of the supported type.
|
SQLFilter<AU> |
getStringFinderFilter(java.lang.Class<? super AU> target,
java.lang.String name)
get a filter than locates the target object from a String.
|
void |
setName(AU user,
java.lang.String name)
Set the name of an object for this realm (If supported)
|
findFromString, getDataCache, getRealm, getType, toString, userVisible, validateName, verified
addDefaults, addFieldHelp, addOptional, addSelectors, addSuppress, addTranslations, customiseForm, customiseUpdateForm, getContext, getFactory, getLogger, getRecord, getRepository, modifyDefaultTableSpecification, postUpdate, preRegister, release
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addFieldConstraints, addFormFields
protected static final java.lang.String PROPERTY_PREFIX
public MultiNameFinder(AppUserFactory<AU> factory, java.lang.String realm)
factory
- realm
- public java.lang.String getCanonicalName(AU object)
ParseFactory
ParseFactory.findFromString(String)
method.public java.lang.String getNameLabel()
AppUserNameFinder
getNameLabel
in class AppUserNameFinder<AU extends AppUser,X extends MultiNameFinder>
public SQLFilter<AU> getStringFinderFilter(java.lang.Class<? super AU> target, java.lang.String name)
AppUserNameFinder
AppUserNameFinder.findFromString(String)
getStringFinderFilter
in class AppUserNameFinder<AU extends AppUser,X extends MultiNameFinder>
public boolean active()
AppUserNameFinder
AppUserNameFinder
An inactive finder still modifies the table specification but won't be retreivable as a realm.active
in class AppUserNameFinder<AU extends AppUser,X extends MultiNameFinder>
public void setName(AU user, java.lang.String name)
AppUserNameFinder
setName
in class AppUserNameFinder<AU extends AppUser,X extends MultiNameFinder>
public java.util.Set<java.lang.String> getAllNames(AU user)
AppUserNameFinder
getAllNames
in class AppUserNameFinder<AU extends AppUser,X extends MultiNameFinder>