|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.fatwire.gst.foundation.facade.runtag.asset.FilterAssetsByDate
public final class FilterAssetsByDate
Filters assets via startdate/enddate.
NOTE: This class calls a public yet internal function inside the JSP tag. No guarantees can therefore exist as to its compatibility across patch versions. The core function, however, is exceptionally slow to begin with, so caution should be exercised when using this function.
Constructor Summary | |
---|---|
FilterAssetsByDate()
|
Method Summary | |
---|---|
static com.fatwire.assetapi.data.AssetId[] |
filter(COM.FutureTense.Interfaces.ICS ics,
Date date,
com.fatwire.assetapi.data.AssetId... id)
Filter a array of asset, checking to see if they're valid on the given date. |
static Collection<com.fatwire.assetapi.data.AssetId> |
filter(COM.FutureTense.Interfaces.ICS ics,
Date date,
Collection<com.fatwire.assetapi.data.AssetId> list)
Filter a collection of assets, checking to see if they're valid on the given date. |
static boolean |
isDateWithinRange(Date startDate,
Date effectiveDate,
Date endDate)
Method to check to see if a date falls between two dates. |
static boolean |
isDateWithinRange(String startDateJdbc,
Date effectiveDate,
String endDateJdbc)
Method to check to see if a date falls between two dates. |
static boolean |
isValidOnDate(COM.FutureTense.Interfaces.ICS ics,
com.fatwire.assetapi.data.AssetId id,
Date date)
Filter a single asset, checking to see if it's valid on the given date. |
static Date |
parseJdbcDate(String string)
Given an input string in JDBC form, parse it and return a date object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FilterAssetsByDate()
Method Detail |
---|
public static boolean isValidOnDate(COM.FutureTense.Interfaces.ICS ics, com.fatwire.assetapi.data.AssetId id, Date date)
ics
- contextid
- input assetdate
- override date
public static com.fatwire.assetapi.data.AssetId[] filter(COM.FutureTense.Interfaces.ICS ics, Date date, com.fatwire.assetapi.data.AssetId... id)
ics
- contextdate
- override dateid
- array of assetids
public static Collection<com.fatwire.assetapi.data.AssetId> filter(COM.FutureTense.Interfaces.ICS ics, Date date, Collection<com.fatwire.assetapi.data.AssetId> list)
ics
- ics contextdate
- override datelist
- Collection of assetids.
public static boolean isDateWithinRange(String startDateJdbc, Date effectiveDate, String endDateJdbc)
startDateJdbc
- start date in jdbc format or nulleffectiveDate
- comparison date or null to use current dateendDateJdbc
- end date in jdbc format
public static boolean isDateWithinRange(Date startDate, Date effectiveDate, Date endDate)
startDate
- start date or nulleffectiveDate
- comparison date or null to use current dateendDate
- end date or null
public static Date parseJdbcDate(String string)
string
- jdbc date string in the form yyyy-MM-dd HH:mm:ss
IllegalArgumentException
- on failure
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |