|
||||||||||
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.FrameworkProfileService
atg.svc.repository.service.ProfileService
@Service(requiredProperties={"optionService","sessionService","favoriteQueryService","queryService","foravoritesService","recommendedReadingService"}) 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. |
FavoriteQueryService |
getFavoriteQueryService()
|
java.util.Collection<atg.svc.repository.beans.Favorites> |
getFavorites()
Returns the Collection of the Favorites of the currently logged in users. |
java.util.Collection<atg.svc.repository.beans.Favorites> |
getFavorites(java.lang.String pProfile)
Returns the Collection of the Favorites of specified users. |
FavoritesService |
getFavoritesService()
|
java.util.List<atg.svc.repository.beans.KnowledgeQuery> |
getLastVisitQueries()
Returns the N most recent searches performed during the last visit. |
java.util.List<atg.svc.repository.beans.KnowledgeQuery> |
getLastVisitQueries(atg.userprofiling.Profile pProfile)
Returns the N most recent searches performed during the last visit. |
java.util.List<ViewedAnswer> |
getLastVisitViewedAnswers()
Returns the N most recent answers viewed by the currently logged in user during the last session. |
java.util.List<ViewedAnswer> |
getLastVisitViewedAnswers(atg.userprofiling.Profile pProfile)
Returns the N most recent answers viewed by the user during the last visit. |
int |
getMaxRecentSessions()
maxRecentSessions limits the number of recent sessions we iterate thru when building recent searches, recent viewed answers and recent topics. |
atg.svc.repository.beans.KnowledgeQuery |
getMostRecentQuery()
Returns the most recent qurery performed. |
atg.svc.repository.service.OptionService |
getOptionService()
|
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()
"organization" item descriptor name |
QueryService |
getQueryService()
|
java.util.List<atg.svc.repository.beans.KnowledgeQuery> |
getRecentQueries()
Returns the N most recent seraches performed by the currently logged in user in SelfService. |
java.util.List<atg.svc.repository.beans.KnowledgeQuery> |
getRecentQueries(atg.userprofiling.Profile pProfile)
Returns the N most recent searches performed by the user. |
java.util.List<atg.svc.repository.beans.KnowledgeQuery> |
getRecentQueries(atg.userprofiling.Profile pProfile,
java.lang.String pOptionName)
Returns the N most recent searches performed by the user. |
java.util.List<atg.svc.repository.beans.KnowledgeQuery> |
getRecentQueriesForAgent()
Returns the N most recent seraches performed by the currently logged in user in Agent WorkSpace. |
java.util.List<ViewedAnswer> |
getRecentViewedAnswers()
Returns the N most recent answers viewed by the currently logged in user using SelfService option. |
java.util.List<ViewedAnswer> |
getRecentViewedAnswers(atg.userprofiling.Profile pProfile)
Returns the N most recent answers viewed by the user. |
java.util.List<ViewedAnswer> |
getRecentViewedAnswers(atg.userprofiling.Profile pProfile,
java.lang.String pOptionName)
Returns the N most recent answers viewed by the user. |
java.util.List<ViewedAnswer> |
getRecentViewedAnswersForAgent()
Returns the N most recent answers viewed by the currently logged in user using Agent option. |
java.util.Collection<atg.svc.repository.beans.RecommendedReading> |
getRecommendedReading()
Returns the Collection of the RecommendedReading of the currently logged in users. |
RecommendedReadingService |
getRecommendedReadingService()
|
SessionService |
getSessionService()
|
void |
setFavoriteQueryService(FavoriteQueryService pFavoriteQueryService)
|
void |
setFavoritesService(FavoritesService pFavoritesService)
|
void |
setMaxRecentSessions(int pMaxRecentSessions)
maxRecentSessions limits the number of recent sessions we iterate thru when building recent searches, recent viewed answers and recent topics. |
void |
setOptionService(atg.svc.repository.service.OptionService pOptionService)
|
void |
setOrganizationViewName(java.lang.String pOrganizationViewName)
"organization" item descriptor name |
void |
setQueryService(QueryService pQueryService)
|
void |
setRecommendedReadingService(RecommendedReadingService pRecommendedReadingService)
|
void |
setSessionService(SessionService pSessionService)
|
Methods inherited from class atg.svc.repository.service.FrameworkProfileService |
---|
getExternalProfileTools, getExternalUserById, getProfileTools, getRecentTickets, getRecentTickets, getRecentTickets, getRecentTickets, getRecentTicketsService, getRecentTicketsViewed, getRecentTicketsWorked, getUserById, setExternalProfileTools, setProfileTools, setRecentTicketsService |
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, 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 |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, 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 atg.svc.repository.service.OptionService getOptionService()
OptionService
public void setOptionService(atg.svc.repository.service.OptionService pOptionService)
OptionService
public SessionService getSessionService()
SessionService
public void setSessionService(SessionService pSessionService)
SessionService
public FavoriteQueryService getFavoriteQueryService()
FavoriteQueryService
public void setFavoriteQueryService(FavoriteQueryService pFavoriteQueryService)
FavoriteQueryService
public QueryService getQueryService()
QueryService
public void setQueryService(QueryService pQueryService)
QueryService
public FavoritesService getFavoritesService()
FavoritesService
public void setFavoritesService(FavoritesService pFavoritesService)
FavoritesService
public RecommendedReadingService getRecommendedReadingService()
RecommendedReadingService
public void setRecommendedReadingService(RecommendedReadingService pRecommendedReadingService)
RecommendedReadingService
public int getMaxRecentSessions()
public void setMaxRecentSessions(int pMaxRecentSessions)
public java.lang.String getOrganizationViewName()
public void setOrganizationViewName(java.lang.String pOrganizationViewName)
public java.util.Collection<atg.svc.repository.beans.Favorites> getFavorites()
public java.util.Collection<atg.svc.repository.beans.Favorites> getFavorites(java.lang.String pProfile)
pProfile
- user profile to retrieve favorites
public java.util.Collection<atg.svc.repository.beans.RecommendedReading> getRecommendedReading() throws SvcException
SvcException
public atg.svc.repository.beans.KnowledgeQuery getMostRecentQuery()
KnowledgeQuery
or null if no previous queries have been performed.public java.util.List<atg.svc.repository.beans.KnowledgeQuery> getRecentQueriesForAgent()
KnowledgeQuery
objects ordered from most recent to least recent.getRecentQueries(Profile)
public java.util.List<atg.svc.repository.beans.KnowledgeQuery> getRecentQueries()
KnowledgeQuery
objects ordered from most recent to least recent.getRecentQueries(Profile)
public java.util.List<atg.svc.repository.beans.KnowledgeQuery> getRecentQueries(atg.userprofiling.Profile pProfile)
pProfile
- user profile to retrieve recent searches for
public java.util.List<atg.svc.repository.beans.KnowledgeQuery> 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<atg.svc.repository.beans.KnowledgeQuery> getLastVisitQueries()
getLastVisitQueries(Profile)
public java.util.List<atg.svc.repository.beans.KnowledgeQuery> getLastVisitQueries(atg.userprofiling.Profile pProfile)
pProfile
- user profile to retrieve recent searches for
public java.util.List<ViewedAnswer> getRecentViewedAnswersForAgent()
public java.util.List<ViewedAnswer> getRecentViewedAnswers()
getRecentViewedAnswers(Profile)
public java.util.List<ViewedAnswer> getRecentViewedAnswers(atg.userprofiling.Profile pProfile)
pProfile
- user profile to retrieve recent searches for
public java.util.List<ViewedAnswer> 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<ViewedAnswer> getLastVisitViewedAnswers()
getLastVisitViewedAnswers(Profile)
public java.util.List<ViewedAnswer> 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |