|
||||||||||
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.KnowledgeBaseService
atg.svc.repository.service.SiteService
public class SiteService
Business methods for editing/reading/saving sites and site options.
Nested Class Summary | |
---|---|
protected class |
SiteService.LazyOptionsMap
A Map for SiteOptions that waits until get() or containsKey() is called to load the SiteOption value into the Map. |
Field Summary | |
---|---|
static java.lang.String |
ANS_OPTION
|
static java.lang.String |
CLASS_VERSION
|
static java.lang.String |
COMMA
|
static java.lang.String |
NUMBER_OF_MATCHING_STATEMENTS_RETURNED
|
static java.lang.String |
PER_ANS_OPTION
|
static java.lang.String |
WHOLE_FIELD_OPTION
|
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 | |
---|---|
SiteService()
|
Method Summary | |
---|---|
java.util.Collection |
findAllOptions()
|
protected atg.svc.repository.beans.SiteOption |
findOption(java.lang.String pName)
Gets a site option by the site id and option name. |
atg.svc.repository.beans.SiteOption |
findSiteOptionByName(java.lang.String pName)
Finds a SiteOption by the given name. |
java.lang.String[] |
getArrayValue(java.lang.String pName)
Gets a Site option as a list of values. |
boolean |
getBooleanValue(java.lang.String pName)
Gets a site option by name. |
java.lang.String |
getEmailSolutionLandingPageOption()
Gets the name of the admin option that holds the landing page URL for emailing solution links. |
java.lang.String |
getEmailSolutionLandingPageURL(java.util.Map pParams)
Gets the fully qualified URL for the document landing page with the given parameters attached as query parameters. |
int |
getIntegerValue(java.lang.String pName)
Gets a site option by name. |
boolean |
getIsEmailSolutionLandingPageConfigured()
Returns true if the document landing page option is not empty. |
java.util.Map |
getOptions()
Returns a Map that can be used to edit site options. |
atg.svc.repository.service.util.OptionUtils |
getOptionUtils()
Gets the common options utilities component. |
java.lang.String |
getSearchEnvironmentName(java.lang.String pSearchSiteName)
|
java.lang.String |
getSearchSiteName(java.lang.String pSearchSiteName)
|
atg.svc.repository.beans.Site |
getSite()
Gets a site based on the id set in the siteId property. |
atg.svc.repository.beans.Site |
getSiteById(java.lang.String pSiteId)
Gets a site by id. |
atg.svc.repository.beans.Site |
getSiteByName(java.lang.String pSiteId)
This method just creates a new bean and return the site object with the site name. |
SiteConfiguration |
getSiteConfiguration()
Returns the siteConfiguration. |
java.lang.String |
getStringValue(atg.svc.repository.beans.SiteOption pOption)
Gets the string value of the given site option. |
java.lang.String |
getStringValue(java.lang.String pName)
Gets a site option by site and name. |
protected void |
restoreDefaultValue(atg.svc.repository.beans.SiteOption pOption)
Restores the default value of the given option. |
void |
restoreDefaultValues(java.lang.String[] pOptionNames)
Restores the default options for the given set of site option names. |
void |
saveOptions(java.util.Collection pSiteOptions)
Saves a Collection of user options. |
void |
saveOptions(java.util.Map pSiteOptions)
Saves a Map of user options. |
void |
setEmailSolutionLandingPageOption(java.lang.String pEmailSolutionLandingPageOption)
Sets the name of the admin option that holds the landing page URL for emailing solution links. |
void |
setOptionUtils(atg.svc.repository.service.util.OptionUtils pOptionUtils)
Set the common options utilities component. |
void |
setSiteConfiguration(SiteConfiguration pSiteConfiguration)
Sets the siteConfiguration. |
Methods inherited from class atg.svc.repository.service.KnowledgeBaseService |
---|
getKnowledgeHomesFactory, getOptionBeanHomes, getOptionRepositoryHomes, getServiceSegmentBeanHomes, getServiceSegmentRepositoryHomes, getSolutionBeanHomes, getSolutionRepositoryHomes, getUserOptionBeanHomes, getUserOptionRepositoryHomes, setKnowledgeHomesFactory |
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
public static final java.lang.String NUMBER_OF_MATCHING_STATEMENTS_RETURNED
public static final java.lang.String ANS_OPTION
public static final java.lang.String COMMA
public static final java.lang.String WHOLE_FIELD_OPTION
public static final java.lang.String PER_ANS_OPTION
Constructor Detail |
---|
public SiteService()
Method Detail |
---|
public SiteConfiguration getSiteConfiguration()
public void setSiteConfiguration(SiteConfiguration pSiteConfiguration)
pSiteConfiguration
- public atg.svc.repository.service.util.OptionUtils getOptionUtils()
public void setOptionUtils(atg.svc.repository.service.util.OptionUtils pOptionUtils)
pOptionUtils
- The common options utilities component.public java.lang.String getEmailSolutionLandingPageOption()
public void setEmailSolutionLandingPageOption(java.lang.String pEmailSolutionLandingPageOption)
pEmailSolutionLandingPageOption
- The name of the admin option that holds the landing page URL for emailing solution links.public atg.svc.repository.beans.Site getSite() throws ObjectNotFoundException
ObjectNotFoundException
- If the site is not found.public atg.svc.repository.beans.Site getSiteByName(java.lang.String pSiteId) throws ObjectNotFoundException
pSiteId
- The site with the given id.
ObjectNotFoundException
- If the site is not found.public atg.svc.repository.beans.Site getSiteById(java.lang.String pSiteId) throws ObjectNotFoundException
pSiteId
- The site with the given id.
ObjectNotFoundException
- If the site is not found.public java.lang.String getSearchEnvironmentName(java.lang.String pSearchSiteName)
public java.lang.String getSearchSiteName(java.lang.String pSearchSiteName)
public java.util.Map getOptions()
public void saveOptions(java.util.Map pSiteOptions) throws PersistenceException
pSiteOptions
- The map of user options as SiteOption beans.
PersistenceException
- If the save fails.public void saveOptions(java.util.Collection pSiteOptions) throws PersistenceException
pSiteOptions
- The collection of user options as SiteOption beans.
PersistenceException
- If the save fails.public void restoreDefaultValues(java.lang.String[] pOptionNames) throws ObjectNotFoundException
ObjectNotFoundException
protected void restoreDefaultValue(atg.svc.repository.beans.SiteOption pOption)
pOption
- The option to restore the default value on.public boolean getBooleanValue(java.lang.String pName) throws ObjectNotFoundException
pName
- The name of option to find.
ObjectNotFoundException
- If the default option is not found for the given name.public int getIntegerValue(java.lang.String pName) throws ObjectNotFoundException
pName
- The name of option to find.
ObjectNotFoundException
- If the default option is not found for the given name.public java.lang.String getStringValue(java.lang.String pName) throws ObjectNotFoundException
pName
- The name of option to find.
ObjectNotFoundException
- If the SiteOption is not found by the given name.public java.lang.String getStringValue(atg.svc.repository.beans.SiteOption pOption)
pOption
- The SiteOption to get the value from.
public java.lang.String[] getArrayValue(java.lang.String pName) throws ObjectNotFoundException
pName
- The name of the option.
ObjectNotFoundException
public atg.svc.repository.beans.SiteOption findSiteOptionByName(java.lang.String pName) throws ObjectNotFoundException
pName
- The name of the SiteOption to find.
ObjectNotFoundException
- If the SiteOption was not found.protected atg.svc.repository.beans.SiteOption findOption(java.lang.String pName) throws ObjectNotFoundException
pName
- The name of the option.
ObjectNotFoundException
- If the SiteOption is not found.public java.util.Collection findAllOptions()
public java.lang.String getEmailSolutionLandingPageURL(java.util.Map pParams) throws ObjectNotFoundException
pParams
- The map of query parameters where the key is the parameter name and the value the parameter value.
ObjectNotFoundException
- If the admin option for the document landing page URL is not found in the repository.public boolean getIsEmailSolutionLandingPageConfigured() throws ObjectNotFoundException
ObjectNotFoundException
- If the admin option for the document landing page URL is not found in the repository.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |