|
||||||||||
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.FavoriteQueryService
public class FavoriteQueryService
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 | |
---|---|
FavoriteQueryService()
|
Method Summary | |
---|---|
atg.svc.repository.beans.FavoriteQuery |
createFavoriteQuery()
Creates a new transient FavoriteQuery repository bean. |
atg.svc.repository.beans.FavoriteQuery |
createFavoriteQuery(java.lang.String pQueryId)
Creates a new transient FavoriteQuery repository bean. |
void |
deleteFavoriteQuery(java.lang.String pFavoriteQueryId)
|
atg.svc.repository.beans.FavoriteQuery |
edit(java.lang.String pFavoriteQueryId)
Gets an editable version of a favorite query given the repository id of the favorite query. |
java.util.Collection |
getFavoriteQueries()
Returns a list of personal and public favorite queries visible to the current user. |
java.util.Collection |
getFavoriteQueries(java.lang.String pProfileId)
Returns a list of personal and public favorite queries visible to the user. |
java.util.Collection |
getFavoriteQueriesByType(java.lang.String pType)
Returns a list of personal and public favorite queries of the specified type that are visible to the current user. |
java.util.Collection |
getFavoriteQueriesByType(java.lang.String pProfileId,
java.lang.String pType)
Returns a list of personal and public favorite queries of the specified type that are visible for the given user. |
atg.svc.repository.beans.FavoriteQuery |
getFavoriteQueryById(java.lang.String pFavoriteQueryId)
Finds a FavoriteQuery by it's repository id. |
java.util.Collection |
getFavoriteReviewQueries()
Returns a list of the personal and public favorite queries of type 'review' that are visible to the current user. |
java.util.Collection |
getFavoriteSolutionQueries()
Returns a list of the personal and public favorite queries of type 'solution' that are visible to the current user. |
java.util.Collection |
getPersonalFavoriteQueries()
A list of the user's favorite personal queries - may include queries that the user has been pushed to groups. |
java.util.Collection |
getPersonalFavoriteQueries(java.lang.String pProfileId)
|
java.util.Collection |
getPersonalFavoriteQueriesByType(java.lang.String pType)
|
java.util.Collection |
getPersonalFavoriteQueriesByType(java.lang.String pProfileId,
java.lang.String pType)
|
java.util.Collection |
getPublicFavoriteQueries()
|
java.util.Collection |
getPublicFavoriteQueries(java.lang.String pProfileId)
|
java.util.Collection |
getPublicFavoriteQueriesByType(java.lang.String pType)
|
java.util.Collection |
getPublicFavoriteQueriesByType(java.lang.String pProfileId,
java.lang.String pType)
|
QueryService |
getQueryService()
|
SessionService |
getSessionService()
|
UserOptionsService |
getUserOptionsService()
|
void |
saveFavoriteQuery(atg.svc.repository.beans.FavoriteQuery pFavoriteQuery)
Adds a query to a user's list of favorite searches. |
void |
setQueryService(QueryService pQueryService)
|
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 FavoriteQueryService()
Method Detail |
---|
public UserOptionsService getUserOptionsService()
public void setUserOptionsService(UserOptionsService pUserOptionsService)
public SessionService getSessionService()
public void setSessionService(SessionService pSessionService)
public QueryService getQueryService()
public void setQueryService(QueryService pQueryService)
public atg.svc.repository.beans.FavoriteQuery createFavoriteQuery() throws javax.ejb.CreateException
javax.ejb.CreateException
public atg.svc.repository.beans.FavoriteQuery createFavoriteQuery(java.lang.String pQueryId) throws javax.ejb.CreateException, ObjectNotFoundException
pQueryId
- The repository id of a KnowledgeQuery that we want to copy. Generally comes from a query in the KnowledgeSession.
javax.ejb.CreateException
ObjectNotFoundException
public atg.svc.repository.beans.FavoriteQuery edit(java.lang.String pFavoriteQueryId) throws ObjectNotFoundException
pFavoriteQueryId
- Id of the favorite query
ObjectNotFoundException
public atg.svc.repository.beans.FavoriteQuery getFavoriteQueryById(java.lang.String pFavoriteQueryId) throws ObjectNotFoundException
pFavoriteQueryId
- The repository id.
ObjectNotFoundException
- If the id is not found.public void saveFavoriteQuery(atg.svc.repository.beans.FavoriteQuery pFavoriteQuery) throws javax.ejb.CreateException, ObjectNotFoundException, PersistenceException, TransactionException, javax.ejb.FinderException
pFavoriteQuery
- Query to add.
javax.ejb.CreateException
- If the create fails.
ObjectNotFoundException
- If the save fails.
PersistenceException
- If the save fails.
TransactionException
javax.ejb.FinderException
public void deleteFavoriteQuery(java.lang.String pFavoriteQueryId) throws ObjectNotFoundException, PersistenceException
ObjectNotFoundException
PersistenceException
public java.util.Collection getFavoriteQueries()
public java.util.Collection getFavoriteQueries(java.lang.String pProfileId)
pProfileId
- profile id of the user we're looking up.
public java.util.Collection getPersonalFavoriteQueries()
public java.util.Collection getPersonalFavoriteQueries(java.lang.String pProfileId)
pProfileId
- profile id of the user we're looking up.
public java.util.Collection getPublicFavoriteQueries()
public java.util.Collection getPublicFavoriteQueries(java.lang.String pProfileId)
pProfileId
- profile id of the user we're looking up.
public java.util.Collection getFavoriteSolutionQueries()
public java.util.Collection getFavoriteReviewQueries()
public java.util.Collection getFavoriteQueriesByType(java.lang.String pType)
pType
- query type "solution" or "review"
public java.util.Collection getFavoriteQueriesByType(java.lang.String pProfileId, java.lang.String pType)
pProfileId
- profile id of the user we're looking up.pType
- query type "solution" or "review"
public java.util.Collection getPersonalFavoriteQueriesByType(java.lang.String pType)
pType
- query type "solution" or "review"
public java.util.Collection getPersonalFavoriteQueriesByType(java.lang.String pProfileId, java.lang.String pType)
pProfileId
- profile id of the user we're looking up.pType
- query type "solution" or "review"
public java.util.Collection getPublicFavoriteQueriesByType(java.lang.String pType)
pType
- query type "solution" or "review"
public java.util.Collection getPublicFavoriteQueriesByType(java.lang.String pProfileId, java.lang.String pType)
pProfileId
- profile id of the user we're looking up.pType
- query type "solution" or "review"
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |