|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectatg.nucleus.GenericService
atg.svc.repository.service.BaseService
atg.svc.repository.service.KnowledgeBaseService
atg.svc.repository.service.QOAAService
public class QOAAService
Maintains the solution scoring. Also supports the retrieval of the the pre-defined solution lists
Questions Others Are Asking (QOAA)
Top Solutions
Hot Solutions
| Field Summary | |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
| Fields inherited from class atg.svc.repository.service.BaseService |
|---|
mBeanHomes, mBeanHomesName, mRepositoryHomes, mRepositoryHomesName |
| Fields inherited from class atg.nucleus.GenericService |
|---|
SERVICE_INFO_KEY |
| 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 | |
|---|---|
QOAAService()
|
|
| Method Summary | |
|---|---|
QOAA |
create(java.lang.String pSolutionId)
Creates a new QOAA bean for the specified solution. |
void |
delete(java.lang.String pSolutionId)
Deletes a QOAA object to the repository. |
QOAA |
edit(java.lang.String pSolutionId)
Gets an editable version of a QOAA given the solution's id. |
protected java.util.List |
filterSolutions(java.util.Collection pIn,
java.util.Collection pTopicIds,
java.util.Collection pSolutionClassIds,
boolean pRetSolns,
int pBatchSize)
Filter relevant solutions by topic and/or solution class |
QOAA |
findBySolutionId(java.lang.String pSolutionId)
Finds a solution relevance object by the solution's repository id. |
java.util.Collection |
findQOAAByRange(int pStartingIndex,
int pBatchSize)
Used by SolutionScoringService to retrieve QOAA to return. |
java.util.Collection |
getQOAAByScore(int pMaxCount)
Gets the Questions Others are Asking List ordered by score returning up to maxCnt. |
atg.svc.repository.service.util.SolutionSecurityUtils |
getSolutionSecurityUtils()
|
SolutionService |
getSolutionService()
|
void |
save(QOAA pQOAA)
Saves a QOAA object to the repository. |
void |
setSolutionSecurityUtils(atg.svc.repository.service.util.SolutionSecurityUtils pSolutionSecurityUtils)
|
void |
setSolutionService(SolutionService pSolutionService)
|
| Methods inherited from class atg.svc.repository.service.KnowledgeBaseService |
|---|
getBeanHomes, getRepositoryHomes |
| Methods inherited from class atg.svc.repository.service.BaseService |
|---|
getBaseBeanHomes, getBaseRepositoryHomes, getBeanHomesName, getRepositoryHomesName, getRepositoryService, getToday, setBeanHomesName, setRepositoryHomesName, setRepositoryService |
| Methods inherited from class atg.nucleus.GenericService |
|---|
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingWarning, setServiceInfo, startService, stopService |
| 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 QOAAService()
| Method Detail |
|---|
public atg.svc.repository.service.util.SolutionSecurityUtils getSolutionSecurityUtils()
public void setSolutionSecurityUtils(atg.svc.repository.service.util.SolutionSecurityUtils pSolutionSecurityUtils)
pSolutionSecurityUtils - The solutionSecurityUtils to set.public SolutionService getSolutionService()
public void setSolutionService(SolutionService pSolutionService)
pSolutionService - The solutionService to set.
public QOAA create(java.lang.String pSolutionId)
throws javax.ejb.CreateException,
ObjectNotFoundException
save to persist the QOAA
object.
pSolutionId - Id of the Solution RepImpl object
javax.ejb.CreateException - If the create fails.
ObjectNotFoundException - when the solution is not found.
public void delete(java.lang.String pSolutionId)
throws ObjectNotFoundException,
PersistenceException
pSolutionId - id of solution.
ObjectNotFoundException - If the repository item represented by the QOAA bean is not found.
PersistenceException - If the delete operation fails.
public QOAA edit(java.lang.String pSolutionId)
throws ObjectNotFoundException,
javax.ejb.CreateException
pSolutionId - A Solution RepId
ObjectNotFoundException - when the solution is not found
javax.ejb.CreateException - If the create for solution relevance object fails.
public java.util.Collection getQOAAByScore(int pMaxCount)
throws javax.ejb.FinderException
pMaxCount - Maximum number of QOAA to return
Questions Others are Asking objects
that have a link to the solution and
the solution relevance object
javax.ejb.FinderException - When an error occurs
public java.util.Collection findQOAAByRange(int pStartingIndex,
int pBatchSize)
throws javax.ejb.FinderException
SolutionScoringService.getQOAAList()
javax.ejb.FinderExceptionpublic QOAA findBySolutionId(java.lang.String pSolutionId)
pSolutionId - The repository id of Solution object
protected java.util.List filterSolutions(java.util.Collection pIn,
java.util.Collection pTopicIds,
java.util.Collection pSolutionClassIds,
boolean pRetSolns,
int pBatchSize)
pIn - Collection of QOAA objects to filterpTopicIds - Topic ids (String) to filter by - solution must reference at least one topic. If null or empty, not constrained by topicpSolutionClassIds - - Solution Class ids (String) to filter by - solution must use one of these solution class. If null or empty, not filtered by solution classpRetSolns - if true, returns a filtered list of Solution else returns a filtered list of SolutionRelevance
public void save(QOAA pQOAA)
throws ObjectNotFoundException,
PersistenceException
pQOAA - The QOAA to save.
ObjectNotFoundException - If the repository item represented by the QOAA bean is not found.
PersistenceException - If the save operation fails.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||