public interface LocaleService
Modifier and Type | Method and Description |
---|---|
com.fatwire.assetapi.data.AssetId |
findTranslation(com.fatwire.assetapi.data.AssetId id,
com.fatwire.mda.DimensionFilterInstance filter)
Deprecated.
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)
Deprecated.
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)
Deprecated.
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)
Deprecated.
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)
Deprecated.
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)
Deprecated.
Look up the translation for the asset specified, in the locale specified.
|
com.fatwire.assetapi.data.AssetId |
getDimensionAssetIdForName(String name)
Deprecated.
Get the AssetId of the dimension asset for the name specified
|
com.fatwire.mda.DimensionFilterInstance |
getDimensionFilter(String site)
Deprecated.
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)
Deprecated.
Get the AssetId of the dimension asset for the name specified
|
long |
getDimensionIdForName(String name)
Deprecated.
Get the id of the dimension asset for the name specified
|
com.fatwire.mda.DimensionSetInstance |
getDimensionSet(String name)
Deprecated.
Looksup the DimensionSetInstance for the given name.
|
com.fatwire.mda.Dimension |
getLocaleForAsset(com.fatwire.assetapi.data.AssetId id)
Deprecated.
Return the dimension of the input asset that corresponds to its locale.
|
String |
getNameForDimensionId(long dimensionid)
Deprecated.
Shorthand function to get the name given a dimension ID specified.
|
com.fatwire.mda.DimensionSetInstance |
locateDimensionSetInstanceForSite(String site)
Deprecated.
Returns the DimensionSetInstance for the site
|
com.fatwire.mda.DimensionSetInstance locateDimensionSetInstanceForSite(String site)
site
- the name of the sitecom.fatwire.mda.DimensionFilterInstance getDimensionFilter(String site)
site
- name of the sitecom.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 usecom.fatwire.assetapi.data.AssetId findTranslation(String c, String cid, String site, String preferredLocaleDimensionId)
If the desired translation is not available, null will be returned.
If a dimension set for the site has been configured that returns the asset other than the preferred locale, that is considered to be fine and not really the problem of the end user. In other words, a dimension set may dictate that a "backup" language can be returned to the user.
Null, however, is a valid option.
c
- asset type of asset to look upcid
- asset id of asset to look upsite
- name of sitepreferredLocaleDimensionId
- id of locale desiredcom.fatwire.assetapi.data.AssetId findTranslation(com.fatwire.assetapi.data.AssetId id, String site, long preferredDimension)
If the desired translation is not available, null will be returned.
If a dimension set for the site has been configured that returns the asset other than the preferred locale, that is considered to be fine and not really the problem of the end user. In other words, a dimension set may dictate that a "backup" language can be returned to the user.
Null, however, is a valid option.
id
- id of asset to look upsite
- name of sitepreferredDimension
- id of locale desiredcom.fatwire.assetapi.data.AssetId findTranslation(com.fatwire.assetapi.data.AssetId id, long preferredDimension, long dimensionSetId)
If the desired translation is not available, null will be returned.
If a dimension set for the site has been configured that returns the asset other than the preferred locale, that is considered to be fine and not really the problem of the end user. In other words, a dimension set may dictate that a "backup" language can be returned to the user.
Null, however, is a valid option.
id
- id of asset to look uppreferredDimension
- id of locale desireddimensionSetId
- dimension set to use to find the translationcom.fatwire.assetapi.data.AssetId findTranslation(com.fatwire.assetapi.data.AssetId id, long preferredDimension, String dimensionSetName)
If the desired translation is not available, null will be returned.
If a dimension set has been configured that returns the asset other than the preferred locale, that is considered to be fine and not really the problem of the end user. In other words, a dimension set may dictate that a "backup" language can be returned to the user.
Null, however, is a valid option.
id
- id of asset to look uppreferredDimension
- id of locale desireddimensionSetName
- the name of the dimension set to use to find the
translationcom.fatwire.assetapi.data.AssetId findTranslation(com.fatwire.assetapi.data.AssetId id, long preferredDimension, com.fatwire.mda.DimensionSetInstance dimset)
id
- asset idpreferredDimension
- id of preferred localedimset
- dimension set instanceIllegalStateException
- exception thrown if illegal state is reachedcom.fatwire.mda.DimensionSetInstance getDimensionSet(String name)
name
- dimension namecom.fatwire.mda.Dimension getLocaleForAsset(com.fatwire.assetapi.data.AssetId id)
id
- assetlong getDimensionIdForName(String name)
name
- dimension name, or locale like en_UScom.fatwire.assetapi.data.AssetId getDimensionAssetIdForName(String name)
name
- dimension name, or locale like en_UScom.fatwire.mda.Dimension getDimensionForName(String name)
name
- dimension name, or locale like en_USString getNameForDimensionId(long dimensionid)
dimensionid
- ID of a locale. Note the dimension group is not
verifiedCopyright © 2010–2017. All rights reserved.