| 
||||||||||
| 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.RecommendedReadingService
@Service(requiredProperties={"profileService","solutionService","optionService"})
public class RecommendedReadingService
| 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 | |
|---|---|
RecommendedReadingService()
 | 
|
| Method Summary | |
|---|---|
 void | 
checkMaximumRecordLimit(java.lang.String pProfileId)
This method check for the maximum record limit for recommend reading for a particular user.  | 
 atg.svc.repository.beans.RecommendedReading | 
createRecommendedReading()
Creates a new transient RecommendedReading repository bean.  | 
 void | 
deleteRecommendedReading(java.lang.String pRecommendedReadingId)
Deleted the specified recommended reading from repository.  | 
 atg.svc.repository.beans.RecommendedReading | 
edit(java.lang.String pRecommendedReadingId)
Gets an editable version of a recommended reading given the repository id of the recommendedReading .  | 
 atg.svc.repository.service.OptionService | 
getOptionService()
 | 
 ProfileService | 
getProfileService()
 | 
 java.util.Collection<atg.svc.repository.beans.RecommendedReading> | 
getRecommendedReading()
Returns a list of recommended reading visible to the current user.  | 
 atg.svc.repository.beans.RecommendedReading | 
getRecommendedReadingById(java.lang.String pRecommendedReadingId)
Finds a RecommendedReading by it's repository id.  | 
 java.util.Collection<atg.svc.repository.beans.RecommendedReading> | 
getRecommendedReadingByIdAndType(java.lang.String pProfileId,
                                 atg.svc.repository.beans.RecommendedReadingType pType)
Returns a list recommended reading of the specified type that are visible for the given user.  | 
 java.util.Collection<atg.svc.repository.beans.RecommendedReading> | 
getRecommendedReadingByIdAndType(java.lang.String pProfileId,
                                 java.lang.String pType)
Returns a list recommended reading of the specified type that are visible for the given user.  | 
 java.util.Collection<atg.svc.repository.beans.RecommendedReading> | 
getRecommendedReadingByType(atg.svc.repository.beans.RecommendedReadingType pType)
Returns a list of recommended reading of type 'PDFDocument' or 'document' or 'solution' that are visible to the current user.  | 
 java.util.Collection<atg.svc.repository.beans.RecommendedReading> | 
getRecommendedReadingByType(java.lang.String pType)
Returns a list of recommended reading of type 'PDFDocument' or 'document' or 'solution' that are visible to the current user.  | 
 java.util.Collection<atg.svc.repository.beans.RecommendedReading> | 
getRecommendedReadingDocument()
Returns a list of recommended reading of type 'document' that are visible to the current user.  | 
 java.util.Collection<atg.svc.repository.beans.RecommendedReading> | 
getRecommendedReadingDocument(java.lang.String pProfileId)
Returns a list of recommended reading of type 'document' that are visible to the specified user.  | 
 java.util.Collection<atg.svc.repository.beans.RecommendedReading> | 
getRecommendedReadingPDFDocument()
Returns a list of recommended reading of type 'PDFDocument' that are visible to the current user.  | 
 java.util.Collection<atg.svc.repository.beans.RecommendedReading> | 
getRecommendedReadingPDFDocument(java.lang.String pProfileId)
Returns a list of recommended reading of type 'PDFDocument' that are visible to the specifed user.  | 
 java.util.Collection<atg.svc.repository.beans.RecommendedReading> | 
getRecommendedReadingsBySolutionId(java.lang.String pSolutionId)
Gets the collection of recommended readings by their solution id.  | 
 java.util.Collection<atg.svc.repository.beans.RecommendedReading> | 
getRecommendedReadingSolution()
Returns a list of recommended reading of type 'solution' that are visible to the current user.  | 
 java.util.Collection<atg.svc.repository.beans.RecommendedReading> | 
getRecommendedReadingSolution(java.lang.String pProfileId)
Returns a list of recommended reading of type 'solution' that are visible specified user.  | 
 SolutionService | 
getSolutionService()
 | 
 void | 
saveRecommendedReading(atg.svc.repository.beans.RecommendedReading pRecommendedReading)
Adds a recommended reading .  | 
 void | 
setOptionService(atg.svc.repository.service.OptionService pOptionService)
 | 
 void | 
setProfileService(ProfileService pProfileService)
 | 
 void | 
setSolutionService(SolutionService pSolutionService)
 | 
| 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 RecommendedReadingService()
| Method Detail | 
|---|
public ProfileService getProfileService()
public void setProfileService(ProfileService pProfileService)
public SolutionService getSolutionService()
public void setSolutionService(SolutionService pSolutionService)
public atg.svc.repository.service.OptionService getOptionService()
public void setOptionService(atg.svc.repository.service.OptionService pOptionService)
public atg.svc.repository.beans.RecommendedReading createRecommendedReading()
                                                                     throws javax.ejb.CreateException
javax.ejb.CreateException
public atg.svc.repository.beans.RecommendedReading edit(java.lang.String pRecommendedReadingId)
                                                 throws ObjectNotFoundException
pRecommendedReadingId - Id of the recommended reading
ObjectNotFoundException
public atg.svc.repository.beans.RecommendedReading getRecommendedReadingById(java.lang.String pRecommendedReadingId)
                                                                      throws ObjectNotFoundException
pRecommendedReadingId - The repository id.
ObjectNotFoundException - If the id is not found.
public void saveRecommendedReading(atg.svc.repository.beans.RecommendedReading pRecommendedReading)
                            throws SvcException
pRecommendedReading - user's profile recommendedReading should be added to.
javax.ejb.CreateException - If the create fails.
ObjectNotFoundException - If the save fails.
PersistenceException - If the save fails.
SvcException
public void checkMaximumRecordLimit(java.lang.String pProfileId)
                             throws SvcException
pProfileId - user's profile recommendedReading should be checked for
ObjectNotFoundException
atg.svc.repository.service.exception.SvcException
SvcException
public void deleteRecommendedReading(java.lang.String pRecommendedReadingId)
                              throws ObjectNotFoundException,
                                     PersistenceException
pRecommendedReadingId - - recommendedReading id.
ObjectNotFoundException
PersistenceException
public java.util.Collection<atg.svc.repository.beans.RecommendedReading> getRecommendedReading()
                                                                                        throws SvcException
RecommendedReading visible to the current user
SvcExceptionpublic java.util.Collection<atg.svc.repository.beans.RecommendedReading> getRecommendedReadingSolution()
public java.util.Collection<atg.svc.repository.beans.RecommendedReading> getRecommendedReadingSolution(java.lang.String pProfileId)
pProfileId - profile id of the user we're looking up.
public java.util.Collection<atg.svc.repository.beans.RecommendedReading> getRecommendedReadingDocument()
public java.util.Collection<atg.svc.repository.beans.RecommendedReading> getRecommendedReadingDocument(java.lang.String pProfileId)
pProfileId - profile id of the user we're looking up.
public java.util.Collection<atg.svc.repository.beans.RecommendedReading> getRecommendedReadingPDFDocument()
public java.util.Collection<atg.svc.repository.beans.RecommendedReading> getRecommendedReadingPDFDocument(java.lang.String pProfileId)
pProfileId - profile id of the user we're looking up.
public java.util.Collection<atg.svc.repository.beans.RecommendedReading> getRecommendedReadingByType(atg.svc.repository.beans.RecommendedReadingType pType)
pType - - recommendedReading type.'PDFDocument' or 'document' or 'solution'
public java.util.Collection<atg.svc.repository.beans.RecommendedReading> getRecommendedReadingByType(java.lang.String pType)
pType - - RecommendedReadingType.'PDFDocument' or 'document' or 'solution'
public java.util.Collection<atg.svc.repository.beans.RecommendedReading> getRecommendedReadingByIdAndType(java.lang.String pProfileId,
                                                                                                          atg.svc.repository.beans.RecommendedReadingType pType)
pProfileId - profile id of the user we're looking up.pType - "solution" or "document" or 'PDFDocument'
public java.util.Collection<atg.svc.repository.beans.RecommendedReading> getRecommendedReadingByIdAndType(java.lang.String pProfileId,
                                                                                                          java.lang.String pType)
pProfileId - profile id of the user we're looking up.pType - type  "solution" or "document" or 'PDFDocument'
public java.util.Collection<atg.svc.repository.beans.RecommendedReading> getRecommendedReadingsBySolutionId(java.lang.String pSolutionId)
                                                                                                     throws javax.ejb.FinderException
pSolutionId - The id of the solution.
javax.ejb.FinderException - If the finder fails.
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||