public final class FilterAssetsByDate extends Object
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 and Description |
---|
FilterAssetsByDate() |
Modifier and Type | Method and Description |
---|---|
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.
|
public static boolean isValidOnDate(COM.FutureTense.Interfaces.ICS ics, com.fatwire.assetapi.data.AssetId id, Date date)
ics
- contextid
- input assetdate
- override datepublic 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 assetidspublic 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 formatpublic 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 nullpublic static Date parseJdbcDate(String string)
string
- jdbc date string in the form yyyy-MM-dd HH:mm:ssIllegalArgumentException
- on failureCopyright © 2016–2017. All rights reserved.