public class RepositoryProfileItemFinder extends GenericService
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
SERVICE_INFO_KEY
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
RepositoryProfileItemFinder() |
Modifier and Type | Method and Description |
---|---|
Query |
createRealmQuery(QueryBuilder pQueryBuilder)
create a realm query
|
RepositoryItem[] |
findByEmail(java.lang.String pEmail,
java.lang.String pProfileType)
Returns all RepositoryItems which represent profiles with the
given email address, null if no such items are found.
|
protected RepositoryItem[] |
findByEmail(java.lang.String pEmail,
java.lang.String pProfileType,
Repository pRepository)
Returns all RepositoryItems which represent profiles with the
given email address, null if no such items are found.
|
RepositoryItem |
findByLogin(java.lang.String pLogin,
java.lang.String pPassword,
java.lang.String pProfileType)
Returns the RepositoryItem which represents the profile with the
given login and password, null if it's not found.
|
RepositoryItem |
findByLogin(java.lang.String pLogin,
java.lang.String pPassword,
java.lang.String pProfileType,
Repository pRepository)
Returns the RepositoryItem which represents the profile with the
given login and password, null if it's not found.
|
RepositoryItem[] |
findByName(java.lang.String pFirstName,
java.lang.String pLastName,
java.lang.String pProfileType)
Returns all RepositoryItems which represent profiles with the
given first and last names, null if no such items are found.
|
protected RepositoryItem[] |
findByName(java.lang.String pFirstName,
java.lang.String pLastName,
java.lang.String pProfileType,
Repository pRepository)
Returns all RepositoryItems which represent profiles with the
given first and last names, null if no such items are found.
|
Query |
generateEmailQuery(java.lang.String pEmail,
QueryBuilder pQueryBuilder)
Returns the Query which will be executed to find the profiles
with the given email address.
|
Query |
generateLoginQuery(java.lang.String pLogin,
java.lang.String pPassword,
QueryBuilder pQueryBuilder)
Returns the Query which will be executed to find the profile with
the given login and password.
|
Query |
generateNameQuery(java.lang.String pFirstName,
java.lang.String pLastName,
QueryBuilder pQueryBuilder)
Returns the Query which will be executed to find the profiles
with the given first and last names.
|
protected java.lang.String |
getEmailPropertyName()
Returns the name of the email property to use in the email query,
looking it up in the PropertyManager.
|
protected java.lang.String |
getFirstNamePropertyName()
Returns the name of the first name property to use in the name
query, looking it up in the PropertyManager.
|
protected java.lang.String |
getLastNamePropertyName()
Returns the name of the last name property to use in the name
query, looking it up in the PropertyManager.
|
protected java.lang.String |
getLoginPropertyName()
Returns the name of the login property to use in the login query,
looking it up in the PropertyManager.
|
protected java.lang.String |
getPasswordPropertyName()
Returns the name of the password property to use in the login
query, looking it up in the PropertyManager.
|
ProfileRealmManager |
getProfileRealmManager()
get ProfileRealmManager
|
MutableRepository |
getProfileRepository()
Returns the profile repository.
|
ProfileTools |
getProfileTools()
Returns the profile tools.
|
PropertyManager |
getPropertyManager()
Returns the property manager.
|
void |
setProfileRealmManager(ProfileRealmManager pProfileRealmManager)
set ProfileRealmManager
|
void |
setProfileRepository(MutableRepository pProfileRepository)
Sets the profile repository.
|
void |
setProfileTools(ProfileTools pProfileTools)
Sets the profile tools.
|
void |
setPropertyManager(PropertyManager pPropertyManager)
Sets the property manager.
|
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public MutableRepository getProfileRepository()
public void setProfileRepository(MutableRepository pProfileRepository)
public ProfileTools getProfileTools()
public void setProfileTools(ProfileTools pProfileTools)
public PropertyManager getPropertyManager()
public void setPropertyManager(PropertyManager pPropertyManager)
public void setProfileRealmManager(ProfileRealmManager pProfileRealmManager)
pProfileRealmManager
- the ProfileRealmManagerpublic ProfileRealmManager getProfileRealmManager()
public RepositoryItem findByLogin(java.lang.String pLogin, java.lang.String pPassword, java.lang.String pProfileType)
pLogin
- the user's loginpPassword
- the user's password; if null, the search is only
performed using the loginpProfileType
- the name of the profiles' item descriptorpublic RepositoryItem findByLogin(java.lang.String pLogin, java.lang.String pPassword, java.lang.String pProfileType, Repository pRepository)
pLogin
- the user's loginpPassword
- the user's password; if null, the search is only
performed using the loginpProfileType
- the name of the profiles' item descriptorpRepository
- the repository to searchpublic RepositoryItem[] findByName(java.lang.String pFirstName, java.lang.String pLastName, java.lang.String pProfileType)
pFirstName
- the user's first namepLastName
- the user's last namepProfileType
- the name of the profiles' item descriptorprotected RepositoryItem[] findByName(java.lang.String pFirstName, java.lang.String pLastName, java.lang.String pProfileType, Repository pRepository)
pFirstName
- the user's first namepLastName
- the user's last namepProfileType
- the name of the profiles' item descriptorpRepository
- the repository to searchpublic RepositoryItem[] findByEmail(java.lang.String pEmail, java.lang.String pProfileType)
pEmail
- the user's email addresspProfileType
- the name of the profiles' item descriptorprotected RepositoryItem[] findByEmail(java.lang.String pEmail, java.lang.String pProfileType, Repository pRepository)
pEmail
- the user's email addresspProfileType
- the name of the profiles' item descriptorpRepository
- the repository to searchpublic Query generateLoginQuery(java.lang.String pLogin, java.lang.String pPassword, QueryBuilder pQueryBuilder) throws RepositoryException
(login ==
pLogin) AND (password == pPassword)
. If the password is
null then just (login == pLogin)
is returned.RepositoryException
- if there is a problem constructing
the querypublic Query createRealmQuery(QueryBuilder pQueryBuilder) throws RepositoryException
RepositoryException
public Query generateNameQuery(java.lang.String pFirstName, java.lang.String pLastName, QueryBuilder pQueryBuilder) throws RepositoryException
(firstName == pFirstName) AND (lastName ==
pLastName)
. If the firstName is null then just
(lastName == pLastName)
is returned. If the
lastName is null then just (firstName == pFirstName)
is returned.RepositoryException
- if there is a problem constructing
the querypublic Query generateEmailQuery(java.lang.String pEmail, QueryBuilder pQueryBuilder) throws RepositoryException
(email == pEmail)
.RepositoryException
- if there is a problem constructing
the queryprotected java.lang.String getLoginPropertyName()
protected java.lang.String getPasswordPropertyName()
protected java.lang.String getFirstNamePropertyName()
protected java.lang.String getLastNamePropertyName()
protected java.lang.String getEmailPropertyName()