|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectatg.nucleus.logging.VariableArgumentApplicationLoggingImpl
atg.nucleus.GenericService
atg.svc.repository.service.BaseService
atg.svc.repository.service.SharedService
atg.svc.repository.service.ProfileService
public class ProfileService
Business methods for KnowledgeSession
objects.
A Session is a problem solving session and it captures a history of the
following events; search, browse, view answer
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 | |
---|---|
ProfileService()
|
Method Summary | |
---|---|
void |
clearProfile()
Clears all Service-related profile attributes including problems, knowledge sessions and all favorite queries. |
void |
clearProfile(java.lang.String pProfile)
Clears all Service-related profile attributes including problems, knowledge sessions and all favorite queries. |
atg.userprofiling.ProfileTools |
getExternalProfileTools()
Returns the externalProfileTools. |
atg.repository.RepositoryItem |
getExternalUserById(java.lang.String pUserId)
Gets an external user of the given type with the given id. |
FavoriteQueryService |
getFavoriteQueryService()
|
java.util.Collection |
getFavorites()
Returns the Collection of the Favorites of the currently logged in users. |
java.util.Collection |
getFavorites(java.lang.String pProfile)
Returns the Collection of the Favorites of specified users. |
FavoritesService |
getFavoritesService()
|
java.util.List |
getLastVisitQueries()
Returns the N most recent searches performed during the last visit. |
java.util.List |
getLastVisitQueries(atg.userprofiling.Profile pProfile)
Returns the N most recent searches performed during the last visit. |
java.util.List |
getLastVisitViewedAnswers()
Returns the N most recent answers viewed by the currently logged in user during the last session. |
java.util.List |
getLastVisitViewedAnswers(atg.userprofiling.Profile pProfile)
Returns the N most recent answers viewed by the user during the last visit. |
int |
getMaxRecentSessions()
|
atg.svc.repository.beans.KnowledgeQuery |
getMostRecentQuery()
Returns the most recent qurery performed. |
java.lang.String |
getOrganizationNameById(java.lang.String pOrgId)
Gets the name of an organization item from the current user's profile repository given the id. |
java.lang.String |
getOrganizationViewName()
|
atg.userprofiling.ProfileTools |
getProfileTools()
Gets the ProfileTools component. |
QueryService |
getQueryService()
|
java.util.List |
getRecentQueries()
Returns the N most recent seraches performed by the currently logged in user in SelfService. |
java.util.List |
getRecentQueries(atg.userprofiling.Profile pProfile)
Returns the N most recent searches performed by the user. |
java.util.List |
getRecentQueries(atg.userprofiling.Profile pProfile,
java.lang.String pOptionName)
Returns the N most recent searches performed by the user. |
java.util.List |
getRecentQueriesForAgent()
Returns the N most recent seraches performed by the currently logged in user in Agent WorkSpace. |
java.util.Collection |
getRecentTickets()
Returns the Collection of the Recent Tickets of the currently logged in users. |
java.util.Collection |
getRecentTickets(java.lang.String pProfile)
Returns the Collection of the Recent Tickets of specified users. |
java.util.Collection |
getRecentTickets(java.lang.String pProfile,
atg.svc.repository.beans.RecentTicketsType pRecentTicketsType)
Returns the Collection of the Recent Tickets of specified users. |
java.util.Collection |
getRecentTickets(java.lang.String pProfile,
java.lang.String pRecentTicketsType)
Returns the Collection of the Recent Tickets of specified users. |
RecentTicketsService |
getRecentTicketsService()
|
java.util.Collection |
getRecentTicketsViewed()
Returns the Collection of the Recent Tickets -viewed the currently logged in users. |
java.util.Collection |
getRecentTicketsWorked()
Returns the Collection of the Recent Tickets - Worked the currently logged in users. |
java.util.List |
getRecentViewedAnswers()
Returns the N most recent answers viewed by the currently logged in user using SelfService option. |
java.util.List |
getRecentViewedAnswers(atg.userprofiling.Profile pProfile)
Returns the N most recent answers viewed by the user. |
java.util.List |
getRecentViewedAnswers(atg.userprofiling.Profile pProfile,
java.lang.String pOptionName)
Returns the N most recent answers viewed by the user. |
java.util.List |
getRecentViewedAnswersForAgent()
Returns the N most recent answers viewed by the currently logged in user using Agent option. |
java.util.Collection |
getRecommendedReading()
Returns the Collection of the RecommendedReading of the currently logged in users. |
RecommendedReadingService |
getRecommendedReadingService()
|
SessionService |
getSessionService()
|
atg.repository.RepositoryItem |
getUserById(java.lang.String pUserId)
Gets a user of the given type with the given id. |
UserOptionsService |
getUserOptionsService()
|
void |
setExternalProfileTools(atg.userprofiling.ProfileTools pExternalProfileTools)
Sets the externalProfileTools. |
void |
setFavoriteQueryService(FavoriteQueryService pFavoriteQueryService)
|
void |
setFavoritesService(FavoritesService pFavoritesService)
|
void |
setMaxRecentSessions(int pMaxRecentSessions)
|
void |
setOrganizationViewName(java.lang.String pOrganizationViewName)
|
void |
setProfileTools(atg.userprofiling.ProfileTools pProfileTools)
Sets the ProfileTools component. |
void |
setQueryService(QueryService pQueryService)
|
void |
setRecentTicketsService(RecentTicketsService pRecentTicketsService)
|
void |
setRecommendedReadingService(RecommendedReadingService pRecommendedReadingService)
|
void |
setSessionService(SessionService pSessionService)
|
void |
setUserOptionsService(UserOptionsService pUserOptionsService)
|
Methods inherited from class atg.svc.repository.service.SharedService |
---|
getServiceSharedBeanHomes, getServiceSharedBeanHomesName, getServiceSharedRepositoryHomes, getServiceSharedRepositoryHomesName, setServiceSharedBeanHomesName, setServiceSharedRepositoryHomesName |
Methods inherited from class atg.svc.repository.service.BaseService |
---|
getRepositoryService, getToday, setRepositoryService |
Methods inherited from class atg.nucleus.GenericService |
---|
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService |
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 final java.lang.String CLASS_VERSION
Constructor Detail |
---|
public ProfileService()
Method Detail |
---|
public UserOptionsService getUserOptionsService()
public void setUserOptionsService(UserOptionsService pUserOptionsService)
public SessionService getSessionService()
public void setSessionService(SessionService pSessionService)
public FavoriteQueryService getFavoriteQueryService()
public void setFavoriteQueryService(FavoriteQueryService pFavoriteQueryService)
public QueryService getQueryService()
public void setQueryService(QueryService pQueryService)
public int getMaxRecentSessions()
public void setMaxRecentSessions(int pMaxRecentSessions)
public FavoritesService getFavoritesService()
public void setFavoritesService(FavoritesService pFavoritesService)
public RecommendedReadingService getRecommendedReadingService()
public void setRecommendedReadingService(RecommendedReadingService pRecommendedReadingService)
public RecentTicketsService getRecentTicketsService()
public void setRecentTicketsService(RecentTicketsService pRecentTicketsService)
public java.lang.String getOrganizationViewName()
public void setOrganizationViewName(java.lang.String pOrganizationViewName)
public java.util.Collection getFavorites()
public java.util.Collection getFavorites(java.lang.String pProfile)
pProfile
- user profile to retrieve favorites
public java.util.Collection getRecommendedReading()
#getRecommendedReading(String)
public java.util.Collection getRecentTickets()
public java.util.Collection getRecentTickets(java.lang.String pProfile)
pProfile
- user profile to retrieve Recent Tickets
public java.util.Collection getRecentTickets(java.lang.String pProfile, atg.svc.repository.beans.RecentTicketsType pRecentTicketsType)
pProfile
- user profile to retrieve Recent TicketspRecentTicketsType
- - "viewed" or "worked"
public java.util.Collection getRecentTickets(java.lang.String pProfile, java.lang.String pRecentTicketsType)
pProfile
- user profile to retrieve Recent TicketspRecentTicketsType
- - "viewed" or "worked"
public java.util.Collection getRecentTicketsViewed()
public java.util.Collection getRecentTicketsWorked()
public atg.userprofiling.ProfileTools getProfileTools()
public void setProfileTools(atg.userprofiling.ProfileTools pProfileTools)
pProfileTools
- The ProfileTools component.public atg.userprofiling.ProfileTools getExternalProfileTools()
public void setExternalProfileTools(atg.userprofiling.ProfileTools pExternalProfileTools)
pExternalProfileTools
- public atg.svc.repository.beans.KnowledgeQuery getMostRecentQuery()
KnowledgeQuery
or null if no previous queries have been performed.public java.util.List getRecentQueriesForAgent()
KnowledgeQuery
objects ordered from most recent to least recent.getRecentQueries(Profile)
public java.util.List getRecentQueries()
KnowledgeQuery
objects ordered from most recent to least recent.getRecentQueries(Profile)
public java.util.List getRecentQueries(atg.userprofiling.Profile pProfile)
pProfile
- user profile to retrieve recent searches for
public java.util.List getRecentQueries(atg.userprofiling.Profile pProfile, java.lang.String pOptionName)
pProfile
- user profile to retrieve recent searches forpOptionName
- name of the option to limit query
public java.util.List getLastVisitQueries()
getLastVisitQueries(Profile)
public java.util.List getLastVisitQueries(atg.userprofiling.Profile pProfile)
pProfile
- user profile to retrieve recent searches for
public java.util.List getRecentViewedAnswersForAgent()
#getRecentViewedAnswersForAgent(Profile)
public java.util.List getRecentViewedAnswers()
getRecentViewedAnswers(Profile)
public java.util.List getRecentViewedAnswers(atg.userprofiling.Profile pProfile)
pProfile
- user profile to retrieve recent searches for
public java.util.List getRecentViewedAnswers(atg.userprofiling.Profile pProfile, java.lang.String pOptionName)
pProfile
- user profile to retrieve recent searches forpOptionName
- name of the option to limit query
public java.util.List getLastVisitViewedAnswers()
getLastVisitViewedAnswers(Profile)
public java.util.List getLastVisitViewedAnswers(atg.userprofiling.Profile pProfile)
pProfile
- user profile to retrieve recent searches for
public void clearProfile() throws ObjectNotFoundException, PersistenceException
ObjectNotFoundException
PersistenceException
public void clearProfile(java.lang.String pProfile) throws ObjectNotFoundException, PersistenceException
ObjectNotFoundException
PersistenceException
public java.lang.String getOrganizationNameById(java.lang.String pOrgId) throws ObjectNotFoundException
pOrgId
- The repository id of the organization.
ObjectNotFoundException
- If the item cannot be found in the repository.public atg.repository.RepositoryItem getUserById(java.lang.String pUserId) throws ObjectNotFoundException
pUserId
- The repository id of the user
ObjectNotFoundException
- If no user is found with the given type and idpublic atg.repository.RepositoryItem getExternalUserById(java.lang.String pUserId) throws ObjectNotFoundException
pUserId
- The repository id of the user
ObjectNotFoundException
- If no user is found with the given type and id
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |