atg.svc.repository.service
Class ServiceFactory

java.lang.Object
  extended by atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
      extended by atg.nucleus.GenericService
          extended by atg.svc.repository.service.ServiceFactory
All Implemented Interfaces:
atg.naming.NameContextBindingListener, atg.naming.NameContextElement, atg.naming.NameResolver, atg.nucleus.AdminableService, atg.nucleus.logging.ApplicationLogging, atg.nucleus.logging.ApplicationLoggingSender, atg.nucleus.logging.TraceApplicationLogging, atg.nucleus.logging.VariableArgumentApplicationLogging, atg.nucleus.naming.ComponentNameResolver, atg.nucleus.Service, atg.nucleus.ServiceListener, java.util.EventListener

public class ServiceFactory
extends atg.nucleus.GenericService

Factory for business logic services. Non-nucleus component classes can use this class to get an instance of a business logic component. The business components are configured in the properties file.
 
Example usage:
SolutionService solutionService = ServiceFactory.getInstance().getSolutionService();
 


Field Summary
static java.lang.String CLASS_VERSION
           
 
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
ServiceFactory()
           
 
Method Summary
 FavoriteQueryService getFavoriteQueryService()
          Gets the FavoriteQueryService business component.
 FavoritesService getFavoritesService()
          Gets the FavoritesService business component.
 atg.svc.i18n.I18nTools getI18nTools()
           
static ServiceFactory getInstance()
          Gets the global instance of this factory.
static ServiceFactory getInstance(java.lang.String pComponent)
          Gets the ServiceFactory component at the given path.
 LogicalOrganizationService getLogicalOrganizationService()
           
 atg.svc.repository.service.util.OptionUtils getOptionUtils()
          Gets the OptionUtils component.
 OrganizationValueService getOrganizationValueService()
           
 ProfileService getProfileService()
          Gets the ProfileService business component.
 QueryService getQueryService()
          Gets the QueryService business component.
 RecentTicketsService getRecentTicketsService()
          Gets the RecentTicketsService business component.
 RecommendedAnswerService getRecommendedAnswerService()
           
 RecommendedReadingService getRecommendedReadingService()
          Gets the RecommendedReadingService business component.
 SegmentedOptionService getSegmentedOptionService()
           
 SegmentService getSegmentService()
          Gets the SegmentService business component.
 SessionService getSessionService()
          Gets the SessionService business component.
 SiteService getSiteService()
          Gets the SiteService business component.
 SolutionMetadataService getSolutionMetadataService()
           
 SolutionScoringService getSolutionScoringService()
          Gets the SolutionScoringService business component.
 SolutionService getSolutionService()
          Gets the SolutionService business component.
 StateHolderService getStateHolderService()
          Gets the state holder business component.
 atg.searchadmin.repository.service.TopicService getTopicService()
          Gets the TopicService business component.
 TransactionalFragmentService getTransactionalFragmentService()
          Gets the configured TransactionalFragmentService component.
 UIService getUiService()
          Gets the UIService business component.
 UserOptionsService getUserOptionsService()
          Gets the UserOptionsService business component.
 ViewedAnswerService getViewedAnswerService()
           
 void setFavoriteQueryService(FavoriteQueryService pFavoriteQueryService)
          Sets the FavoriteQueryService business component.
 void setFavoritesService(FavoritesService pFavoritesService)
          Sets the FavoritesService business component.
 void setI18nTools(atg.svc.i18n.I18nTools pI18nTools)
           
 void setLogicalOrganizationService(LogicalOrganizationService pLogicalOrganizationService)
           
 void setOptionUtils(atg.svc.repository.service.util.OptionUtils pOptionUtils)
          Sets the OptionUtils component.
 void setOrganizationValueService(OrganizationValueService pOrganizationValueService)
           
 void setProfileService(ProfileService pProfileService)
          Sets the ProfileService business component.
 void setQueryService(QueryService pQueryService)
          Sets the QueryService business component.
 void setRecentTicketsService(RecentTicketsService pRecentTicketsService)
          Sets the RecentTicketsService business component.
 void setRecommendedAnswerService(RecommendedAnswerService pRecommendedAnswerService)
           
 void setRecommendedReadingService(RecommendedReadingService pRecommendedReadingService)
          Sets the RecommendedReadingService business component.
 void setSegmentedOptionService(SegmentedOptionService pSegmentedOptionService)
           
 void setSegmentService(SegmentService pSegmentService)
          Sets the SegmentService business component.
 void setSessionService(SessionService pSessionService)
          Sets the SessionService business component.
 void setSiteService(SiteService pSiteService)
          Sets the SiteService business component.
 void setSolutionMetadataService(SolutionMetadataService pSolutionMetadataService)
           
 void setSolutionScoringService(SolutionScoringService pSolutionScoringService)
          Sets the SolutionScoringService business component.
 void setSolutionService(SolutionService pSolutionService)
          Sets the SolutionService business component.
 void setStateHolderService(StateHolderService pStateHolderService)
          Sets the state holder business component.
 void setTopicService(atg.searchadmin.repository.service.TopicService pTopicService)
          Sets the TopicService business component.
 void setTransactionalFragmentService(TransactionalFragmentService pTransactionalFragmentService)
          Sets the configured TransactionalFragmentService component.
 void setUiService(UIService pUIService)
          Sets the UIService business component.
 void setUserOptionsService(UserOptionsService pUserOptionsService)
          Sets the UserOptionsService business component.
 void setViewedAnswerService(ViewedAnswerService pViewedAnswerService)
           
 
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

CLASS_VERSION

public static final java.lang.String CLASS_VERSION
See Also:
Constant Field Values
Constructor Detail

ServiceFactory

public ServiceFactory()
Method Detail

getInstance

public static ServiceFactory getInstance()
Gets the global instance of this factory. All of the service components are accessed by the instance that is returned from this method.

Returns:
The ServiceFactory component.

getInstance

public static ServiceFactory getInstance(java.lang.String pComponent)
Gets the ServiceFactory component at the given path.

Parameters:
pComponent - The component to resolve.
Returns:
The ServiceFactory component specified by the given path.
Throws:
atg.core.exception.ContainerRuntimeException - If the component cannot be resolved.

getOptionUtils

public atg.svc.repository.service.util.OptionUtils getOptionUtils()
Gets the OptionUtils component.

Returns:
The OptionUtils component.

setOptionUtils

public void setOptionUtils(atg.svc.repository.service.util.OptionUtils pOptionUtils)
Sets the OptionUtils component.

Parameters:
pOptionUtils - The OptionUtils component.

getProfileService

public ProfileService getProfileService()
Gets the ProfileService business component.

Returns:
The ProfileService business component.

setProfileService

public void setProfileService(ProfileService pProfileService)
Sets the ProfileService business component.

Parameters:
pProfileService - The ProfileService business component.

getSegmentService

public SegmentService getSegmentService()
Gets the SegmentService business component.

Returns:
The SegmentService business component.

setSegmentService

public void setSegmentService(SegmentService pSegmentService)
Sets the SegmentService business component.

Parameters:
pSegmentService - The SegmentService business component.

getSessionService

public SessionService getSessionService()
Gets the SessionService business component.

Returns:
The SessionService business component.

setSessionService

public void setSessionService(SessionService pSessionService)
Sets the SessionService business component.

Parameters:
pSessionService - The SessionService business component.

getSiteService

public SiteService getSiteService()
Gets the SiteService business component.

Returns:
The SiteService business component.

setSiteService

public void setSiteService(SiteService pSiteService)
Sets the SiteService business component.

Parameters:
pSiteService - The SiteService business component.

getSolutionScoringService

public SolutionScoringService getSolutionScoringService()
Gets the SolutionScoringService business component.

Returns:
The SolutionScoringService business component.

setSolutionScoringService

public void setSolutionScoringService(SolutionScoringService pSolutionScoringService)
Sets the SolutionScoringService business component.

Parameters:
pSolutionScoringService - The SolutionScoringService business component.

getSolutionService

public SolutionService getSolutionService()
Gets the SolutionService business component.

Returns:
The SolutionService business component.

setSolutionService

public void setSolutionService(SolutionService pSolutionService)
Sets the SolutionService business component.

Parameters:
pSolutionService - The SolutionService business component.

getTopicService

public atg.searchadmin.repository.service.TopicService getTopicService()
Gets the TopicService business component.

Returns:
The TopicService business component.

setTopicService

public void setTopicService(atg.searchadmin.repository.service.TopicService pTopicService)
Sets the TopicService business component.

Parameters:
pTopicService - The TopicService business component.

getUserOptionsService

public UserOptionsService getUserOptionsService()
Gets the UserOptionsService business component.

Returns:
The UserOptionsService business component.

setUserOptionsService

public void setUserOptionsService(UserOptionsService pUserOptionsService)
Sets the UserOptionsService business component.

Parameters:
pUserOptionsService - The UserOptionsService business component.

getFavoriteQueryService

public FavoriteQueryService getFavoriteQueryService()
Gets the FavoriteQueryService business component.

Returns:
The FavoriteQueryService business component.

setFavoriteQueryService

public void setFavoriteQueryService(FavoriteQueryService pFavoriteQueryService)
Sets the FavoriteQueryService business component.

Parameters:
pFavoriteQueryService - The FavoriteQueryService business component.

getStateHolderService

public StateHolderService getStateHolderService()
Gets the state holder business component.

Returns:
The state holder business component.

setStateHolderService

public void setStateHolderService(StateHolderService pStateHolderService)
Sets the state holder business component.

Parameters:
pStateHolderService - The state holder business component.

getUiService

public UIService getUiService()
Gets the UIService business component.

Returns:
The UIService business component.

setUiService

public void setUiService(UIService pUIService)
Sets the UIService business component.

Parameters:
pUIService - The UIService business component.

getQueryService

public QueryService getQueryService()
Gets the QueryService business component.

Returns:
The QueryService business component.

setQueryService

public void setQueryService(QueryService pQueryService)
Sets the QueryService business component.

Parameters:
pQueryService - The QueryService business component.

getFavoritesService

public FavoritesService getFavoritesService()
Gets the FavoritesService business component.

Returns:
The FavoritesService business component.

setFavoritesService

public void setFavoritesService(FavoritesService pFavoritesService)
Sets the FavoritesService business component.

Parameters:
pFavoritesService - The FavoritesService business component.

getRecommendedReadingService

public RecommendedReadingService getRecommendedReadingService()
Gets the RecommendedReadingService business component.

Returns:
RecommendedReadingService The RecommendedReadingService business component.

setRecommendedReadingService

public void setRecommendedReadingService(RecommendedReadingService pRecommendedReadingService)
Sets the RecommendedReadingService business component.

Parameters:
pRecommendedReadingService - The RecommendedReadingService business component.

getRecommendedAnswerService

public RecommendedAnswerService getRecommendedAnswerService()

setRecommendedAnswerService

public void setRecommendedAnswerService(RecommendedAnswerService pRecommendedAnswerService)

getRecentTicketsService

public RecentTicketsService getRecentTicketsService()
Gets the RecentTicketsService business component.

Returns:
RecentTicketsService The RecentTicketsService business component.

setRecentTicketsService

public void setRecentTicketsService(RecentTicketsService pRecentTicketsService)
Sets the RecentTicketsService business component.

Parameters:
pRecentTicketsService - The RecentTicketsService business component.

getTransactionalFragmentService

public TransactionalFragmentService getTransactionalFragmentService()
Gets the configured TransactionalFragmentService component.

Returns:
The configured TransactionalFragmentService component.

setTransactionalFragmentService

public void setTransactionalFragmentService(TransactionalFragmentService pTransactionalFragmentService)
Sets the configured TransactionalFragmentService component.

Parameters:
pTransactionalFragmentService - The configured TransactionalFragmentService component.

getViewedAnswerService

public ViewedAnswerService getViewedAnswerService()

setViewedAnswerService

public void setViewedAnswerService(ViewedAnswerService pViewedAnswerService)

getSegmentedOptionService

public SegmentedOptionService getSegmentedOptionService()

setSegmentedOptionService

public void setSegmentedOptionService(SegmentedOptionService pSegmentedOptionService)

getSolutionMetadataService

public SolutionMetadataService getSolutionMetadataService()

setSolutionMetadataService

public void setSolutionMetadataService(SolutionMetadataService pSolutionMetadataService)

getOrganizationValueService

public OrganizationValueService getOrganizationValueService()

setOrganizationValueService

public void setOrganizationValueService(OrganizationValueService pOrganizationValueService)

getI18nTools

public atg.svc.i18n.I18nTools getI18nTools()

setI18nTools

public void setI18nTools(atg.svc.i18n.I18nTools pI18nTools)

getLogicalOrganizationService

public LogicalOrganizationService getLogicalOrganizationService()

setLogicalOrganizationService

public void setLogicalOrganizationService(LogicalOrganizationService pLogicalOrganizationService)