|
||||||||||
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
@Service(requiredProperties={"optionService","sessionService","queryService","uIService"}) 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.lang.String |
getAllowedToManagePublicQueriesAccessRight()
|
java.lang.String |
getAllowedToViewPublicQueriesAccessRight()
|
java.util.Collection<atg.svc.repository.beans.FavoriteQuery> |
getFavoriteQueries()
Returns a list of personal and public favorite queries visible to the current user. |
java.util.Collection<atg.svc.repository.beans.FavoriteQuery> |
getFavoriteQueries(java.lang.String pProfileId)
Returns a list of personal and public favorite queries visible to the user. |
java.util.Collection<atg.svc.repository.beans.FavoriteQuery> |
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<atg.svc.repository.beans.FavoriteQuery> |
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<atg.svc.repository.beans.FavoriteQuery> |
getFavoriteReviewQueries()
Returns a list of the personal and public favorite queries of type 'review' that are visible to the current user. |
java.util.Collection<atg.svc.repository.beans.FavoriteQuery> |
getFavoriteSolutionQueries()
Returns a list of the personal and public favorite queries of type 'solution' that are visible to the current user. |
atg.svc.repository.service.OptionService |
getOptionService()
|
java.util.Collection<atg.svc.repository.beans.FavoriteQuery> |
getPersonalFavoriteQueries()
A list of the user's favorite personal queries - may include queries that the user has been pushed to groups. |
java.util.Collection<atg.svc.repository.beans.FavoriteQuery> |
getPersonalFavoriteQueries(java.lang.String pProfileId)
|
java.util.Collection<atg.svc.repository.beans.FavoriteQuery> |
getPersonalFavoriteQueriesByType(java.lang.String pType)
|
java.util.Collection<atg.svc.repository.beans.FavoriteQuery> |
getPersonalFavoriteQueriesByType(java.lang.String pProfileId,
java.lang.String pType)
|
java.util.Collection<atg.svc.repository.beans.FavoriteQuery> |
getPublicFavoriteQueries()
|
java.util.Collection<atg.svc.repository.beans.FavoriteQuery> |
getPublicFavoriteQueries(java.lang.String pProfileId)
|
java.util.Collection<atg.svc.repository.beans.FavoriteQuery> |
getPublicFavoriteQueriesByType(java.lang.String pType)
|
java.util.Collection<atg.svc.repository.beans.FavoriteQuery> |
getPublicFavoriteQueriesByType(java.lang.String pProfileId,
java.lang.String pType)
|
QueryService |
getQueryService()
|
SessionService |
getSessionService()
|
UIService |
getUiService()
|
boolean |
isAllowedToManagePublicQueries()
|
boolean |
isAllowedToViewPublicQueries()
|
void |
saveFavoriteQuery(atg.svc.repository.beans.FavoriteQuery pFavoriteQuery)
Adds a query to a user's list of favorite searches. |
void |
setAllowedToManagePublicQueriesAccessRight(java.lang.String pAllowedToManagePublicQueriesAccessRight)
|
void |
setAllowedToViewPublicQueriesAccessRight(java.lang.String pAllowedToViewPublicQueriesAccessRight)
|
void |
setOptionService(atg.svc.repository.service.OptionService pOptionService)
|
void |
setQueryService(QueryService pQueryService)
|
void |
setSessionService(SessionService pSessionService)
|
void |
setUiService(UIService pUiService)
|
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, 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 FavoriteQueryService()
Method Detail |
---|
public atg.svc.repository.service.OptionService getOptionService()
public void setOptionService(atg.svc.repository.service.OptionService pOptionService)
public SessionService getSessionService()
public void setSessionService(SessionService pSessionService)
public QueryService getQueryService()
public void setQueryService(QueryService pQueryService)
public java.lang.String getAllowedToViewPublicQueriesAccessRight()
public void setAllowedToViewPublicQueriesAccessRight(java.lang.String pAllowedToViewPublicQueriesAccessRight)
public java.lang.String getAllowedToManagePublicQueriesAccessRight()
public void setAllowedToManagePublicQueriesAccessRight(java.lang.String pAllowedToManagePublicQueriesAccessRight)
public UIService getUiService()
public void setUiService(UIService pUiService)
public boolean isAllowedToViewPublicQueries()
public boolean isAllowedToManagePublicQueries()
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<atg.svc.repository.beans.FavoriteQuery> getFavoriteQueries()
public java.util.Collection<atg.svc.repository.beans.FavoriteQuery> getFavoriteQueries(java.lang.String pProfileId)
pProfileId
- profile id of the user we're looking up.
public java.util.Collection<atg.svc.repository.beans.FavoriteQuery> getPersonalFavoriteQueries()
public java.util.Collection<atg.svc.repository.beans.FavoriteQuery> getPersonalFavoriteQueries(java.lang.String pProfileId)
pProfileId
- profile id of the user we're looking up.
public java.util.Collection<atg.svc.repository.beans.FavoriteQuery> getPublicFavoriteQueries()
public java.util.Collection<atg.svc.repository.beans.FavoriteQuery> getPublicFavoriteQueries(java.lang.String pProfileId)
pProfileId
- profile id of the user we're looking up.
public java.util.Collection<atg.svc.repository.beans.FavoriteQuery> getFavoriteSolutionQueries()
public java.util.Collection<atg.svc.repository.beans.FavoriteQuery> getFavoriteReviewQueries()
public java.util.Collection<atg.svc.repository.beans.FavoriteQuery> getFavoriteQueriesByType(java.lang.String pType)
pType
- query type "solution" or "review"
public java.util.Collection<atg.svc.repository.beans.FavoriteQuery> 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<atg.svc.repository.beans.FavoriteQuery> getPersonalFavoriteQueriesByType(java.lang.String pType)
pType
- query type "solution" or "review"
public java.util.Collection<atg.svc.repository.beans.FavoriteQuery> 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<atg.svc.repository.beans.FavoriteQuery> getPublicFavoriteQueriesByType(java.lang.String pType)
pType
- query type "solution" or "review"
public java.util.Collection<atg.svc.repository.beans.FavoriteQuery> 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 |