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 names| Modifier 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, verifiedaddDefaults, addFieldHelp, addOptional, addSelectors, addSuppress, addTranslations, customiseForm, customiseUpdateForm, getContext, getFactory, getLogger, getRecord, getRepository, modifyDefaultTableSpecification, postUpdate, preRegister, releaseclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddFieldConstraints, addFormFieldsprotected 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)
ParseFactoryParseFactory.findFromString(String) method.public java.lang.String getNameLabel()
AppUserNameFindergetNameLabel in class AppUserNameFinder<AU extends AppUser,X extends MultiNameFinder>public SQLFilter<AU> getStringFinderFilter(java.lang.Class<? super AU> target, java.lang.String name)
AppUserNameFinderAppUserNameFinder.findFromString(String)getStringFinderFilter in class AppUserNameFinder<AU extends AppUser,X extends MultiNameFinder>public boolean active()
AppUserNameFinderAppUserNameFinder
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)
AppUserNameFindersetName in class AppUserNameFinder<AU extends AppUser,X extends MultiNameFinder>public java.util.Set<java.lang.String> getAllNames(AU user)
AppUserNameFindergetAllNames in class AppUserNameFinder<AU extends AppUser,X extends MultiNameFinder>