Class RuntimeLocalizationFunctions
java.lang.Object
com.thingworx.types.NamedObject
com.thingworx.persistence.common.PersistableNamedObject
com.thingworx.entities.RootEntity
com.thingworx.entities.ServiceProviderEntity
com.thingworx.entities.ExtensibleRootEntity
com.thingworx.resources.Resource
com.thingworx.resources.localization.RuntimeLocalizationFunctions
- All Implemented Interfaces:
IConfigurableObject,INotScriptFriendly,ISupportsDeprecation,IDiffableObject,IAvatar,IEntityLifeCycleEvent,IPersistable,IServiceProvider,ITaggableObject,IDependencyScannableObject,IEntityDefinition,IPersistableObject<String>,IDesignTimeSecurable,IDesignTimeSecurableEntity,IRunTimeSecurable,IRunTimeSecurableEntity,ISecurable,IVisibilitySecurable,IVisibilitySecurableEntity,IAspectContainer,INamedObject,Serializable
@ThingworxExtensionApiClass(since={6,6},
canInstantiate=true)
public class RuntimeLocalizationFunctions
extends Resource
- See Also:
-
Field Summary
Fields inherited from class com.thingworx.entities.RootEntity
BASIC_PROPERTY_DEFINITIONS, EXCLUDED_ENTITY_TYPES_IN_PROJECTFields inherited from class com.thingworx.types.NamedObject
NAME_COMPARATOR -
Constructor Summary
ConstructorsConstructorDescriptionInitializes this instace with default values. -
Method Summary
Modifier and TypeMethodDescriptionExportLocalizationTables(String prefix) Service Category: Localization Service Description: Export localization tables, optionally with a token name filter.GetEffectiveToken(String token) Service Category: Localization Service Description: Return a token based on language setting for current user.GetEffectiveTokenForLanguage(String language, String token) Service Category: Localization Service Description: Return a token for a specific language.Service Category: Localization Service Description: Return a list of effective tokens based on language setting for current user.Service Category: Localization Service Description: Return a list of tokens with the provided names.GetEffectiveTokensForLanguage(String language) Service Category: Localization Service Description: Return a table of tokens and values, given an ordered list of language preferences.GetEffectiveTokensForLanguageByName(String language, InfoTable names) Service Category: Localization Service Description: Return a list of tokens with the provided names, given an ordered list of language preferences.Service Category: Localization Service Description: Return a list of languages defined on this system.SearchDefaultLocalizationTokens(String searchExpression) Service Category: Localization Service Description: Return a list of Default tokens matching search expression.Methods inherited from class com.thingworx.resources.Resource
getEntityTypeMethods inherited from class com.thingworx.entities.ServiceProviderEntity
getInstancePublicServiceDefinitions, getInstanceServiceDefinition, getInstanceServiceDefinitions, initializeEntity, preInitializeEntity, processAPIServiceRequest, processServiceRequestMethods inherited from class com.thingworx.entities.RootEntity
AddConfigurationTableDefinition, AddConfigurationTableDefinition, addDesignTimePermission, AddDesignTimePermission, addRunTimePermission, AddRunTimePermission, AddTags, addVisibilityPermission, AddVisibilityPermission, CheckDesignTimePermission, CheckDesignTimePermissionForGroup, CheckDesignTimePermissionForUser, CheckPermission, CheckPermissionForGroup, CheckPermissionForUser, cleanupEntity, DeleteAllConfigurationTableRows, DeleteConfigurationTable, DeleteConfigurationTableRows, DeleteConfigurationTableRows, deleteDesignTimePermission, DeleteDesignTimePermission, deleteRunTimePermission, DeleteRunTimePermission, deleteVisibilityPermission, DeleteVisibilityPermission, dispose, getAspects, GetAvatar, getAvatarContent, GetAvatarURL, GetConfigurationChangeHistory, getConfigurationSetting, getConfigurationTable, GetConfigurationTable, GetConfigurationTableDefinition, GetConfigurationTableRow, GetConfigurationTables, GetDescription, getDesignTimePermissions, GetDesignTimePermissions, GetDesignTimePermissionsAsJSON, getDocumentationContent, getEntityTypeAsString, GetEventDefinition, GetEventDefinitions, GetHomeMashup, GetIncomingDependencies, GetIncomingDependenciesAsNetwork, GetInstanceMetadataAsJSON, GetInstanceMetadataWithPermissionsAsJSON, GetLastModifiedDate, GetMetadata, GetMetadataAsJSON, GetMetadataWithPermissionsAsJSON, GetOutgoingDependencies, GetOutgoingDependenciesAsNetwork, getOwner, GetOwner, GetPermissionsForCurrentUser, GetPermissionsForGroup, GetPermissionsForUser, GetProjectName, GetPropertyDefinition, GetPropertyDefinitions, getRunTimePermissions, GetRunTimePermissions, GetRunTimePermissionsAsJSON, GetServiceDefinition, GetServiceDefinitions, getStringConfigurationSetting, getStringConfigurationSettingWithDefault, GetSummaryInformation, getTags, GetTags, GetTagsAsInfoTable, getVisibilityPermissions, GetVisibilityPermissions, GetVisibilityPermissionsAsJSON, HasIncomingDependencies, HasOutgoingDependencies, isEditable, isEditableExtensionObject, isEditableSystemObject, isExtensionObject, IsMultiRowTable, isOwner, isSystemObject, isThemeObject, isVisible, isVisible, ListDeprecatedUsage, persistDesignTimePermissions, persistRunTimePermissions, persistVisibilityPermissions, RemoveTags, SaveConfigurationTables, SetAvatar, setConfigurationSetting, SetConfigurationTable, SetConfigurationTableRows, SetDescription, setDesignTimePermissions, SetDesignTimePermissionsAsJSON, setDocumentationContent, setExtensionObject, SetHomeMashup, setLastModifiedDate, SetMultiRowConfigurationTable, setOwner, SetOwner, SetProjectName, setRunTimePermissions, SetRunTimePermissionsAsJSON, setStringConfigurationSetting, SetTags, setVisibilityPermissions, SetVisibilityPermissionsAsJSON, toJSON, toJSONDefinition, UpdateProjectDependencies, validateConfigurationMethods inherited from class com.thingworx.persistence.common.PersistableNamedObject
getID, hasID, isTransientMethods inherited from class com.thingworx.types.NamedObject
getDescription, getName, setDescription, setName, toValueCollectionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.thingworx.types.INamedObject
getDescription, getNameMethods inherited from interface com.thingworx.entities.interfaces.IPersistable
getID, hasIDMethods inherited from interface com.thingworx.security.permissions.ISecurable
getID, getNameMethods inherited from interface com.thingworx.deprecation.ISupportsDeprecation
getDeprecated, isDeprecated, isDeprecatedBefore, since
-
Constructor Details
-
RuntimeLocalizationFunctions
public RuntimeLocalizationFunctions()Initializes this instace with default values.
-
-
Method Details
-
SearchDefaultLocalizationTokens
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable SearchDefaultLocalizationTokens(String searchExpression) throws Exception - Service Category:
- Localization
- Service Description:
- Return a list of Default tokens matching search expression.
- Parameters:
searchExpression- search pattern - STRING- Returns:
- result Localization tokens - INFOTABLE - Aspects {dataShape:LocalizationToken}
- Throws:
Exception- if an error occurs
-
GetEffectiveTokens
- Service Category:
- Localization
- Service Description:
- Return a list of effective tokens based on language setting for current user.
- Returns:
- result Localization tokens - INFOTABLE - Aspects {dataShape:LocalizationToken}
- Throws:
Exception- if an error occurs
-
GetEffectiveTokensForLanguage
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetEffectiveTokensForLanguage(String language) throws Exception - Service Category:
- Localization
- Service Description:
- Return a table of tokens and values, given an ordered list of language preferences.
- Parameters:
language- Language code - STRING- Returns:
- result Localization tokens and values - INFOTABLE - Aspects {dataShape:LocalizationToken}
- Throws:
Exception- if an error occurs
-
ExportLocalizationTables
@ThingworxExtensionApiMethod(since={6,6}) public Document ExportLocalizationTables(String prefix) throws Exception - Service Category:
- Localization
- Service Description:
- Export localization tables, optionally with a token name filter.
- Parameters:
prefix- Token prefix - STRING- Returns:
- result Localization tokens - XML
- Throws:
Exception- if an error occurs
-
GetEffectiveToken
@ThingworxExtensionApiMethod(since={6,6}) public String GetEffectiveToken(String token) throws Exception - Service Category:
- Localization
- Service Description:
- Return a token based on language setting for current user.
- Parameters:
token- Token - STRING- Returns:
- result Localization tokens - STRING
- Throws:
Exception- if an error occurs
-
GetEffectiveTokenForLanguage
@ThingworxExtensionApiMethod(since={6,6}) public String GetEffectiveTokenForLanguage(String language, String token) throws Exception - Service Category:
- Localization
- Service Description:
- Return a token for a specific language.
- Parameters:
language- Language code - STRINGtoken- Token - STRING- Returns:
- result Localization tokens - STRING
- Throws:
Exception- if an error occurs
-
GetLanguages
- Service Category:
- Localization
- Service Description:
- Return a list of languages defined on this system.
Get a list of configured languages along with useful properties of each.
- Returns:
- InfoTable, one row per language, with properties name, description, avatar, common name, native name.
- Throws:
Exception
-
GetEffectiveTokensByName
@ThingworxExtensionApiMethod(since={9,3}) public InfoTable GetEffectiveTokensByName(InfoTable names) throws Exception - Service Category:
- Localization
- Service Description:
- Return a list of tokens with the provided names.
- Parameters:
names- Localization token names - INFOTABLE- Returns:
- result Localization tokens - INFOTABLE - Aspects {dataShape:LocalizationToken}
- Throws:
Exception- if an error occurs
-
GetEffectiveTokensForLanguageByName
@ThingworxExtensionApiMethod(since={9,3}) public InfoTable GetEffectiveTokensForLanguageByName(String language, InfoTable names) throws Exception - Service Category:
- Localization
- Service Description:
- Return a list of tokens with the provided names, given an ordered list of language preferences.
- Parameters:
language- Language code - STRINGnames- Localization token names - INFOTABLE- Returns:
- result Localization tokens - INFOTABLE - Aspects {dataShape:LocalizationToken}
- Throws:
Exception- if an error occurs
-