|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LocaleService
Service to find translated assets and work with Dimensions, DimensionSets and DimensionFilters.
| Method Summary | |
|---|---|
com.fatwire.assetapi.data.AssetId |
findTranslation(com.fatwire.assetapi.data.AssetId id,
com.fatwire.mda.DimensionFilterInstance filter)
Look up the translation for the asset specified, with the dimension filter. |
com.fatwire.assetapi.data.AssetId |
findTranslation(com.fatwire.assetapi.data.AssetId id,
long preferredDimension,
com.fatwire.mda.DimensionSetInstance dimset)
Finds the translation for the preferred dimension and dimensionset. |
com.fatwire.assetapi.data.AssetId |
findTranslation(com.fatwire.assetapi.data.AssetId id,
long preferredDimension,
long dimensionSetId)
Look up the translation for the asset specified, in the locale specified. |
com.fatwire.assetapi.data.AssetId |
findTranslation(com.fatwire.assetapi.data.AssetId id,
long preferredDimension,
String dimensionSetName)
Look up the translation for the asset specified, in the locale specified. |
com.fatwire.assetapi.data.AssetId |
findTranslation(com.fatwire.assetapi.data.AssetId id,
String site,
long preferredDimension)
Look up the translation for the asset specified, in the locale specified. |
com.fatwire.assetapi.data.AssetId |
findTranslation(String c,
String cid,
String site,
String preferredLocaleDimensionId)
Look up the translation for the asset specified, in the locale specified. |
com.fatwire.assetapi.data.AssetId |
getDimensionAssetIdForName(String name)
Get the AssetId of the dimension asset for the name specified |
com.fatwire.mda.DimensionFilterInstance |
getDimensionFilter(String site)
Looks up the DimensionFilter based on the current browser settings and site configuration, as well as request parameters. |
com.fatwire.mda.Dimension |
getDimensionForName(String name)
Get the AssetId of the dimension asset for the name specified |
long |
getDimensionIdForName(String name)
Get the id of the dimension asset for the name specified |
com.fatwire.mda.DimensionSetInstance |
getDimensionSet(String name)
Looksup the DimensionSetInstance for the given name. |
com.fatwire.mda.Dimension |
getLocaleForAsset(com.fatwire.assetapi.data.AssetId id)
Return the dimension of the input asset that corresponds to its locale. |
String |
getNameForDimensionId(long dimensionid)
Shorthand function to get the name given a dimension ID specified. |
com.fatwire.mda.DimensionSetInstance |
locateDimensionSetInstanceForSite(String site)
Returns the DimensionSetInstance for the site |
| Method Detail |
|---|
com.fatwire.mda.DimensionSetInstance locateDimensionSetInstanceForSite(String site)
site - the name of the site
com.fatwire.mda.DimensionFilterInstance getDimensionFilter(String site)
site -
com.fatwire.assetapi.data.AssetId findTranslation(com.fatwire.assetapi.data.AssetId id,
com.fatwire.mda.DimensionFilterInstance filter)
id - asset id of asset to look upfilter - the dimensionset to use
com.fatwire.assetapi.data.AssetId findTranslation(String c,
String cid,
String site,
String preferredLocaleDimensionId)
c - asset type of asset to look upcid - asset id of asset to look upsite - name of sitepreferredLocaleDimensionId - id of locale desired
com.fatwire.assetapi.data.AssetId findTranslation(com.fatwire.assetapi.data.AssetId id,
String site,
long preferredDimension)
id - id of asset to look upsite - name of sitepreferredDimension - id of locale desired
com.fatwire.assetapi.data.AssetId findTranslation(com.fatwire.assetapi.data.AssetId id,
long preferredDimension,
long dimensionSetId)
id - id of asset to look uppreferredDimension - id of locale desireddimensionSetId - dimension set to use to find the translation
com.fatwire.assetapi.data.AssetId findTranslation(com.fatwire.assetapi.data.AssetId id,
long preferredDimension,
String dimensionSetName)
id - id of asset to look uppreferredDimension - id of locale desireddimensionSetName - the name of the dimension set to use to find the
translation
com.fatwire.assetapi.data.AssetId findTranslation(com.fatwire.assetapi.data.AssetId id,
long preferredDimension,
com.fatwire.mda.DimensionSetInstance dimset)
id - preferredDimension - dimset -
IllegalStateExceptioncom.fatwire.mda.DimensionSetInstance getDimensionSet(String name)
name -
com.fatwire.mda.Dimension getLocaleForAsset(com.fatwire.assetapi.data.AssetId id)
id - asset
long getDimensionIdForName(String name)
name - dimension name, or locale like en_US
com.fatwire.assetapi.data.AssetId getDimensionAssetIdForName(String name)
name - dimension name, or locale like en_US
com.fatwire.mda.Dimension getDimensionForName(String name)
name - dimension name, or locale like en_US
String getNameForDimensionId(long dimensionid)
dimensionid - ID of a locale. Note the dimension group is not
verified
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||