|
||||||||||
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.remote.multisite.service.validation.CountryLanguageCodeValidator
public class CountryLanguageCodeValidator
This validator ensures a site's country and language codes are valid.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
protected InternationalStoreSitePropertiesManager |
mStoreSitePropertiesManager
|
protected static java.lang.String |
RESOURCE_NAME
|
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 | |
---|---|
CountryLanguageCodeValidator()
|
Method Summary | |
---|---|
java.util.ResourceBundle |
getResourceBundle()
|
atg.multisite.SiteManager |
getSiteManager()
Gets the siteManager. |
InternationalStoreSitePropertiesManager |
getStoreSitePropertiesManager()
|
void |
setSiteManager(atg.multisite.SiteManager pSiteManager)
Sets the siteManager. |
void |
setStoreSitePropertiesManager(InternationalStoreSitePropertiesManager pStoreSitePropertiesManager)
|
void |
validate(atg.remote.assetmanager.editor.service.AssetEditorInfo pEditorInfo,
java.util.Collection pUpdates)
|
void |
validateCountryLanguageCombination(atg.remote.assetmanager.editor.service.AssetEditorInfo pEditorInfo,
java.lang.String pCountryCode,
java.lang.String pLanguageCode)
Ensure that the country/language codes can be combined to create a valid locale. |
void |
validateDefaultLanguageCodeValue(atg.remote.assetmanager.editor.service.AssetEditorInfo pEditorInfo,
java.lang.String pLanguageCode)
Ensure the defaultLanguage is a valid language code. |
void |
validateSiteLanguages(atg.remote.assetmanager.editor.service.AssetEditorInfo pEditorInfo,
java.util.List<java.lang.String> pLanguageCodes,
java.lang.String pPropName)
Ensure the language defined in the site's languages property are valid language codes. |
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 java.lang.String CLASS_VERSION
protected static final java.lang.String RESOURCE_NAME
protected InternationalStoreSitePropertiesManager mStoreSitePropertiesManager
Constructor Detail |
---|
public CountryLanguageCodeValidator()
Method Detail |
---|
public void setSiteManager(atg.multisite.SiteManager pSiteManager)
pSiteManager
- The siteManager object.public atg.multisite.SiteManager getSiteManager()
public InternationalStoreSitePropertiesManager getStoreSitePropertiesManager()
public void setStoreSitePropertiesManager(InternationalStoreSitePropertiesManager pStoreSitePropertiesManager)
StoreSitePropertiesManager
- the StoreSitePropertiesManager to setpublic java.util.ResourceBundle getResourceBundle()
public void validate(atg.remote.assetmanager.editor.service.AssetEditorInfo pEditorInfo, java.util.Collection pUpdates)
validate
in interface atg.remote.multisite.service.validation.SiteAssetServiceValidator
pEditorInfo
- Information object for the current editor.pUpdates
- Collection of PropertyEditorAssetViewUpdate objects.public void validateCountryLanguageCombination(atg.remote.assetmanager.editor.service.AssetEditorInfo pEditorInfo, java.lang.String pCountryCode, java.lang.String pLanguageCode)
pEditorInfo
- The asset editor requesting the updatepCountryCode
- The country code to be validated.pLanguageCode
- The language code to be validated.public void validateDefaultLanguageCodeValue(atg.remote.assetmanager.editor.service.AssetEditorInfo pEditorInfo, java.lang.String pLanguageCode)
pEditorInfo
- Information object for the current editor.pLanguageCode
- The language code to be validated.public void validateSiteLanguages(atg.remote.assetmanager.editor.service.AssetEditorInfo pEditorInfo, java.util.List<java.lang.String> pLanguageCodes, java.lang.String pPropName)
pEditorInfo
- Information object for the current editor.pLanguageCode
- The language codes to be validated.pPropName
- The name of the site 'languages' property.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |