|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.VariableArgumentApplicationLoggingImpl atg.nucleus.GenericService atg.userprofiling.RepositoryProfileItemFinder
public class RepositoryProfileItemFinder
Finds profile repository items by querying the profile repository.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Fields inherited from class atg.nucleus.GenericService |
---|
SERVICE_INFO_KEY |
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
---|
DEFAULT_LOG_TRACE_STATUS |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
---|---|
RepositoryProfileItemFinder()
|
Method Summary | |
---|---|
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. |
MutableRepository |
getProfileRepository()
Returns the profile repository. |
ProfileTools |
getProfileTools()
Returns the profile tools. |
PropertyManager |
getPropertyManager()
Returns the property manager. |
void |
setProfileRepository(MutableRepository pProfileRepository)
Sets the profile repository. |
void |
setProfileTools(ProfileTools pProfileTools)
Sets the profile tools. |
void |
setPropertyManager(PropertyManager pPropertyManager)
Sets the property manager. |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public RepositoryProfileItemFinder()
Method Detail |
---|
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 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 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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |