更新現有資產集的集定義。
語法
IpsUser
IpsAdmin
IpsCompanyAdmin
ImagePortalAdmin
ImagePortalContrib
ImagePortalContribUser
Input(setAssetDefinitionParam)
名稱 | 類型 | 必要 | 說明 |
---|---|---|---|
公司句柄 | xsd:string |
是 | 具有資產集的公司的句柄。 |
資產句柄 | xsd:string |
是 | 資產集句柄 |
setDefinition | xsd:string |
是 | 定義字串。 參見下面。 |
輸出(setAssetSetDefinitionReturn)
IPS API不會為此操作返迴響應。
setDefinition函式
指定 setDefinition
替代函式串聯。 在目錄查找或發佈時解決這些問題。 替代字串的格式 ${<substitution_func>}
,並包括以下內容:
參數清單中的處理文字必須用括弧括起來 ([])
。 在解析期間,替換字串外的文本將複製到輸出字串。
替代函式 | 返回資產 |
---|---|
getFilePath([ asset_handle ]) | 主檔案路徑。 |
getCatalogd([ asset_handle ]) | 目錄ID。 |
getMetaData([ asset_handle ],[ 元資料_欄位_句柄 ]) | 元資料值。 |
getThumbCatalogId([ asset_handle ]) | 目錄ID。 應用於基於影像的資產(影像、調整後的視圖、圖層視圖)。 對於其他資產,返回拇指資產的目錄ID(如果有)。 如果沒有拇指資產與資產關聯,則函式返回空字串。 |
setDefinition示例
此媒體集定義字串:
${getCatalogId([a|1664|22|1664])};${getCatalogId([a|1664|22|1664])};
1,${getFilePath([a|1036|19|144])};${getCatalogId([a|452|1|433])};2;
${getMetadata([a|1036|19|144], [m|1|ASSET|SharedDateField])}
在查找或發佈時解析為以下內容:
jcompany/myRenderSet;jcompany/myRenderSet;
1,jcompany/Videos/N08275_flv.flv;jcompany/myimg-1;2;20090703 10:05:53
請求
<setAssetSetDefinitionParam xmlns="http://www.scene7.com/IpsApi/xsd/2009-07-31">
<companyHandle>c|1</companyHandle>
<assetHandle>a|1802|44|1802</assetHandle>
<setDefinition>${getCatalogId([a|1553|1|1176])};${getCatalogId([a|1553|1|1176])};1;img1,
${getCatalogId([a|632|1|452])};${getCatalogId([a|632|1|452])};1,${getCatalogId([a|1664|22|1664])};
${getCatalogId([a|1664|22|1664])};1,${getFilePath([a|1036|19|144])};${getCatalogId([ a|452|1|433])};
2;${getMetadata([a1036|19|144], [m|1|ASSET|SharedDateField])}</setDefinition>
</setAssetSetDefinitionParam>
回答
無。