public final class AssetIdUtils extends Object
| Modifier and Type | Method and Description | 
|---|---|
static com.fatwire.assetapi.data.AssetId | 
createAssetId(String c,
             long cid)
Creates an AssetId from c and cid parameters. 
 | 
static com.fatwire.assetapi.data.AssetId | 
createAssetId(String c,
             String cid)
Creates an AssetId from c and cid parameters. 
 | 
static com.fatwire.assetapi.data.AssetId | 
currentId(COM.FutureTense.Interfaces.ICS ics)
Creates an AssetId out of 'c' and 'cid' variables on ICS context. 
 | 
static com.fatwire.assetapi.data.AssetId | 
currentPageId(COM.FutureTense.Interfaces.ICS ics)
Creates an AssetId out of 'p' variable on ICS context with type 'Page'. 
 | 
static com.fatwire.assetapi.data.AssetId | 
fromString(String s)
Convert a string in the form assettype:assetid into an AssetId object. 
 | 
static String | 
toString(com.fatwire.assetapi.data.AssetId id)
Converts an AssetId into a String of the form assettype:id. 
 | 
public static com.fatwire.assetapi.data.AssetId fromString(String s)
s - string in the form assettype:assetidIllegalArgumentException - if input is badpublic static String toString(com.fatwire.assetapi.data.AssetId id)
id - asset idpublic static com.fatwire.assetapi.data.AssetId currentId(COM.FutureTense.Interfaces.ICS ics)
ics - Content Server context objectIllegalArgumentException - if c or cid is blank.public static com.fatwire.assetapi.data.AssetId currentPageId(COM.FutureTense.Interfaces.ICS ics)
ics - Content Server context objectIllegalArgumentException - if p is blank.public static com.fatwire.assetapi.data.AssetId createAssetId(String c, String cid)
c - the assetypecid - the assetid, must be a String representing a long valueIllegalArgumentException - if c or cid is blank.public static com.fatwire.assetapi.data.AssetId createAssetId(String c, long cid)
c - the assetype.cid - the assetid.IllegalArgumentException - is c is blankCopyright © 2016–2017. All rights reserved.