|
||||||||||
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.projects.store.collections.validator.SiteValidator
public class SiteValidator
SiteValidator validates an item based on its sites/siteGroup/siteIds properties. siteGroup and sites properties could be configured for promotional items, and siteIds property could be configured for products.
A Set of the (repository) items site ids and siteGroups site ids is constructed and compared to the site ids of the current sites mShareableTypeId siteGroup site ids. If any sites from the items Set match then the item will be returned.
*
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
protected boolean |
mIncludeDisabledSites
property: includeDisabledSites |
protected boolean |
mIncludeInactiveSites
property: includeInactiveSites |
protected java.lang.String |
mShareableTypeId
property: shareableTypeId |
protected atg.multisite.SiteGroupManager |
mSiteGroupManager
property: siteGroupManager |
protected java.lang.String |
mSiteGroupPropertyName
property: siteGroupPropertyName |
protected java.lang.String |
mSiteIdsPropertyName
property: SiteIdsPropertyName |
protected atg.multisite.SiteManager |
mSiteManager
property: siteManager |
protected java.lang.String |
mSitesPropertyName
property: sitesPropertyName |
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 | |
---|---|
SiteValidator()
|
Method Summary | |
---|---|
java.lang.String |
getShareableTypeId()
|
atg.multisite.SiteGroupManager |
getSiteGroupManager()
|
java.lang.String |
getSiteGroupPropertyName()
|
protected java.util.Set<java.lang.String> |
getSiteGroupSiteIds(atg.repository.RepositoryItem pItem)
Gets the siteIds from all pItems siteGroups and returns them in a Set. |
protected java.util.Set<java.lang.String> |
getSiteIds(atg.repository.RepositoryItem pItem)
Gets the siteIds property from the passed in RepositoryItem and returns them in a Set. |
java.lang.String |
getSiteIdsPropertyName()
|
atg.multisite.SiteManager |
getSiteManager()
|
java.lang.String |
getSitesPropertyName()
|
boolean |
isIncludeDisabledSites()
|
boolean |
isIncludeInactiveSites()
|
void |
setIncludeDisabledSites(boolean pIncludeDisabledSites)
|
void |
setIncludeInactiveSites(boolean pIncludeInactiveSites)
|
void |
setShareableTypeId(java.lang.String pShareableTypeId)
|
void |
setSiteGroupManager(atg.multisite.SiteGroupManager pSiteGroupManager)
|
void |
setSiteGroupPropertyName(java.lang.String pSiteGroupPropertyName)
|
void |
setSiteIdsPropertyName(java.lang.String pSiteIdsPropertyName)
|
void |
setSiteManager(atg.multisite.SiteManager pSiteManager)
|
void |
setSitesPropertyName(java.lang.String pSitesPropertyName)
|
boolean |
validateObject(java.lang.Object pObject)
This method validates the passed in object (repository items) based on whether or not any of its items sites/siteGroups.sites exist in the current mShareableTypeId siteGroup. |
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
protected java.lang.String mShareableTypeId
protected java.lang.String mSiteIdsPropertyName
protected java.lang.String mSitesPropertyName
protected java.lang.String mSiteGroupPropertyName
protected atg.multisite.SiteGroupManager mSiteGroupManager
protected atg.multisite.SiteManager mSiteManager
protected boolean mIncludeDisabledSites
protected boolean mIncludeInactiveSites
Constructor Detail |
---|
public SiteValidator()
Method Detail |
---|
public java.lang.String getShareableTypeId()
public void setShareableTypeId(java.lang.String pShareableTypeId)
pShareableTypeId
- SharableTypeId to setpublic java.lang.String getSiteIdsPropertyName()
public void setSiteIdsPropertyName(java.lang.String pSiteIdsPropertyName)
pSitesPropertyName
- value to setpublic java.lang.String getSitesPropertyName()
public void setSitesPropertyName(java.lang.String pSitesPropertyName)
pSitesPropertyName
- value to setpublic java.lang.String getSiteGroupPropertyName()
public void setSiteGroupPropertyName(java.lang.String pSiteGroupPropertyName)
pSiteGroupPropertyName
- value to setpublic atg.multisite.SiteGroupManager getSiteGroupManager()
SiteGroupManager
to be used when determining sharing sites.public void setSiteGroupManager(atg.multisite.SiteGroupManager pSiteGroupManager)
pSiteGroupManager
- value to setpublic atg.multisite.SiteManager getSiteManager()
SiteManager
to be used when determining active sites.public void setSiteManager(atg.multisite.SiteManager pSiteManager)
pSiteManager
- value to setpublic boolean isIncludeDisabledSites()
public void setIncludeDisabledSites(boolean pIncludeDisabledSites)
pIncludeDisabledSites
- whether or not to filter out items that exist only
on disabled sitespublic boolean isIncludeInactiveSites()
public void setIncludeInactiveSites(boolean pIncludeInactiveSites)
pIncludeInactiveSites
- whether or not to filter out items that exist only
on inactive sitespublic boolean validateObject(java.lang.Object pObject)
validateObject
in interface atg.service.collections.validator.CollectionObjectValidator
object
- to validate
protected java.util.Set<java.lang.String> getSiteIds(atg.repository.RepositoryItem pItem)
pItem
- A RepositoryItem
protected java.util.Set<java.lang.String> getSiteGroupSiteIds(atg.repository.RepositoryItem pItem)
pItem
- A RepositoryItem
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |