public class PreviewContext extends Object
| Constructor and Description | 
|---|
PreviewContext()  | 
| Modifier and Type | Method and Description | 
|---|---|
static Date | 
getPreviewDate(COM.FutureTense.Interfaces.ICS ics,
              Date cutoff)
Returns the value of the preview date based on the provided date and the
 setting for the xcelerate property cs.sitepreview. 
 | 
static Date | 
getPreviewDateFromCSVar(COM.FutureTense.Interfaces.ICS ics,
                       String varName)
Returns the value of the preview date based on the cs variable and the
 setting for the xcelerate property cs.sitepreview. 
 | 
static Date | 
getPreviewDateFromSession(COM.FutureTense.Interfaces.ICS ics,
                         String ssvarName)
Returns the value of the preview date based on the session variable and
 the setting for the xcelerate property cs.sitepreview. 
 | 
static boolean | 
isSitePreviewDelivery(COM.FutureTense.Interfaces.ICS ics)  | 
static boolean | 
isSitePreviewEnabled(COM.FutureTense.Interfaces.ICS ics)
Checks if start/enddate checking is enabled. 
 | 
public static Date getPreviewDateFromSession(COM.FutureTense.Interfaces.ICS ics, String ssvarName)
ics - Content Server context objectssvarName - server session variable namepublic static Date getPreviewDateFromCSVar(COM.FutureTense.Interfaces.ICS ics, String varName)
ics - Content Server context objectvarName - variable namepublic static Date getPreviewDate(COM.FutureTense.Interfaces.ICS ics, Date cutoff)
ics - Content Server context objectcutoff - cut-off datepublic static boolean isSitePreviewEnabled(COM.FutureTense.Interfaces.ICS ics)
ics - Content Server context objectpublic static boolean isSitePreviewDelivery(COM.FutureTense.Interfaces.ICS ics)
ics - Content Server context objectCopyright © 2016–2017. All rights reserved.