|
||||||||||
| 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.FavoritesService
public class FavoritesService
| 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 | |
|---|---|
FavoritesService()
|
|
| Method Summary | |
|---|---|
atg.svc.repository.beans.Favorites |
createFavorites()
Creates a new transient Favorites repository bean. |
void |
deleteFavorite(java.lang.String pFavoritesId)
Delete the specified favorites from repository. |
atg.svc.repository.beans.Favorites |
edit(java.lang.String pFavoritesId)
Gets an editable version of a favorite given the repository id of the favorite . |
java.util.Collection |
getFavorites()
Returns a list of favorites visible to the current user. |
java.util.Collection |
getFavorites(java.lang.String pProfileId)
Returns a list of favorite visible to the user. |
atg.svc.repository.beans.Favorites |
getFavoritesById(java.lang.String pFavoritesId)
Finds a Favorites by it's repository id. |
java.util.Collection |
getFavoritesByIdAndType(java.lang.String pProfileId,
atg.svc.repository.beans.FavoritesType pType)
Returns a list favorite of the specified type that are visible for the given user. |
java.util.Collection |
getFavoritesByIdAndType(java.lang.String pProfileId,
java.lang.String pType)
Returns a list favorite of the specified type that are visible for the given user. |
java.util.Collection |
getFavoritesBySolutionId(java.lang.String pSolutionId)
Gets the collection of Favorites for the given solution id. |
java.util.Collection |
getFavoritesByType(atg.svc.repository.beans.FavoritesType pType)
Returns a list of favorite of type 'PDFDocument' or 'document' or 'solution' that are visible to the current user. |
java.util.Collection |
getFavoritesByType(java.lang.String pType)
Returns a list of favorite of type 'PDFDocument' or 'document' or 'solution' that are visible to the current user. |
java.util.Collection |
getFavoritesDocument()
Returns a list of favorite of type 'document' that are visible to the current user. |
java.util.Collection |
getFavoritesDocument(java.lang.String pProfileId)
Returns a list of favorite of type 'document' that are visible to the specified user. |
java.util.Collection |
getFavoritesPDFDocument()
Returns a list of favorite of type 'PDFDocument' that are visible to the current user. |
java.util.Collection |
getFavoritesPDFDocument(java.lang.String pProfileId)
Returns a list of favorite of type 'PDFDocument' that are visible to the specifed user. |
java.util.Collection |
getFavoritesSolution()
Returns a list of favorite of type 'solution' that are visible to the current user. |
java.util.Collection |
getFavoritesSolution(java.lang.String pProfileId)
Returns a list of favorite of type 'solution' that are visible specified user. |
int |
getMaxDisplayedTitleLength()
Gets the maximum length to display the title. |
ProfileService |
getProfileService()
|
UserOptionsService |
getUserOptionsService()
|
boolean |
isRecordAlreadyExists(atg.svc.repository.beans.Favorites pFavorites)
Checks if record already created for the specified solution id, context id , group id and URL |
void |
saveFavorites(atg.svc.repository.beans.Favorites pFavorites)
If the user already has saved the maximum number of favorites, removes oldest favorites. |
void |
setMaxDisplayedTitleLength(int pMaxDisplayedTitleLength)
Sets the maximum length to display the title. |
void |
setProfileService(ProfileService pProfileService)
|
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 FavoritesService()
| Method Detail |
|---|
public UserOptionsService getUserOptionsService()
public void setUserOptionsService(UserOptionsService pUserOptionsService)
public ProfileService getProfileService()
public void setProfileService(ProfileService pProfileService)
public int getMaxDisplayedTitleLength()
public void setMaxDisplayedTitleLength(int pMaxDisplayedTitleLength)
pMaxDisplayedTitleLength - The maximum length to display the title.
public atg.svc.repository.beans.Favorites createFavorites()
throws javax.ejb.CreateException
javax.ejb.CreateException
public atg.svc.repository.beans.Favorites edit(java.lang.String pFavoritesId)
throws ObjectNotFoundException
pFavoritesId - Id of the favorite
ObjectNotFoundException
public atg.svc.repository.beans.Favorites getFavoritesById(java.lang.String pFavoritesId)
throws ObjectNotFoundException
pFavoritesId - The repository id.
ObjectNotFoundException - If the id is not found.
public void saveFavorites(atg.svc.repository.beans.Favorites pFavorites)
throws javax.ejb.CreateException,
ObjectNotFoundException,
PersistenceException,
TransactionException,
javax.ejb.FinderException,
DuplicateRecordException
pFavorites - that should added for the user
javax.ejb.CreateException - If the create fails.
ObjectNotFoundException - If the save fails.
PersistenceException - If the save fails.
TransactionException
javax.ejb.FinderException
DuplicateRecordExceptionpublic boolean isRecordAlreadyExists(atg.svc.repository.beans.Favorites pFavorites)
pFavorites -
public void deleteFavorite(java.lang.String pFavoritesId)
throws ObjectNotFoundException,
PersistenceException
pFavoritesId - - favorite id.
ObjectNotFoundException
PersistenceExceptionpublic java.util.Collection getFavorites()
public java.util.Collection getFavorites(java.lang.String pProfileId)
pProfileId - profile id of the user we're looking up.
public java.util.Collection getFavoritesSolution()
public java.util.Collection getFavoritesSolution(java.lang.String pProfileId)
pProfileId - profile id of the user we're looking up.
public java.util.Collection getFavoritesDocument()
public java.util.Collection getFavoritesDocument(java.lang.String pProfileId)
pProfileId - profile id of the user we're looking up.
public java.util.Collection getFavoritesPDFDocument()
public java.util.Collection getFavoritesPDFDocument(java.lang.String pProfileId)
pProfileId - profile id of the user we're looking up.
public java.util.Collection getFavoritesByType(atg.svc.repository.beans.FavoritesType pType)
pType - - favorite type.'PDFDocument' or 'document' or 'solution'
public java.util.Collection getFavoritesByType(java.lang.String pType)
pType - - favorite type.'PDFDocument' or 'document' or 'solution'
public java.util.Collection getFavoritesByIdAndType(java.lang.String pProfileId,
atg.svc.repository.beans.FavoritesType pType)
pProfileId - profile id of the user we're looking up.pType - type "solution" or "document" or 'PDFDocument'
public java.util.Collection getFavoritesByIdAndType(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 getFavoritesBySolutionId(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 | |||||||||