Package com.thingworx.ux.media
Class MediaEntity
- All Implemented Interfaces:
ISupportsAccessModifier
,IConfigurableObject
,INotScriptFriendly
,ISupportsDeprecation
,IDiffableObject
,IAvatar
,IEntityLifeCycleEvent
,IPersistable
,IServiceProvider
,ITaggableObject
,IDependencyScannableObject
,IEntityDefinition
,IPersistableObject<String>
,IDesignTimeSecurable
,IDesignTimeSecurableEntity
,IRunTimeSecurable
,IRunTimeSecurableEntity
,ISecurable
,IVisibilitySecurable
,IVisibilitySecurableEntity
,ISSOResourceProvider
,IAspectContainer
,INamedObject
,Serializable
@ThingworxExtensionApiClass(since={6,6},
canInstantiate=true)
public class MediaEntity
extends ServiceProviderEntity
implements ISSOResourceProvider, ISupportsAccessModifier
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static org.slf4j.Logger
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from class com.thingworx.entities.RootEntity
BASIC_PROPERTY_DEFINITIONS, EXCLUDED_ENTITY_TYPES_IN_PROJECT
Fields inherited from class com.thingworx.types.NamedObject
NAME_COMPARATOR
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic MediaEntity
fromJSON
(org.json.JSONObject jsonObject) Deprecated.getImage()
byte[]
GetImage()
Service Category: Images Service Description: Get the content as an image.Service Category: Images Service Description: Get the mime type.GetProxyUrl
(String targetUrl, Boolean isAbsoluteTargetUrl) Deprecated.GetProxyUrl
(String targetUrl, Boolean isAbsoluteTargetUrl, Boolean clientFollowsRedirect) Service Category: Images Service Description: Get a URL to proxy content relative to the configured origin server.Methods inherited from class com.thingworx.entities.ServiceProviderEntity
getInstancePublicServiceDefinitions, getInstanceServiceDefinition, getInstanceServiceDefinitions, initializeEntity, preInitializeEntity, processAPIServiceRequest, processServiceRequest
Methods 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, validateConfiguration
Methods inherited from class com.thingworx.persistence.common.PersistableNamedObject
getID, hasID, isTransient
Methods inherited from class com.thingworx.types.NamedObject
getDescription, getName, setDescription, setName, toValueCollection
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.thingworx.types.INamedObject
getDescription, getName
Methods inherited from interface com.thingworx.entities.interfaces.IPersistable
getID, hasID
Methods inherited from interface com.thingworx.security.permissions.ISecurable
getID, getName
Methods inherited from interface com.thingworx.accesscontrol.ISupportsAccessModifier
getAccessModifier, getAccessModifierScope, getExemptList, hasAccessModifier, isInternalAccess, isPrivateAccess, isRestrictedAccess
Methods inherited from interface com.thingworx.deprecation.ISupportsDeprecation
getDeprecated, isDeprecated, isDeprecatedBefore, since
-
Field Details
-
logger
public static org.slf4j.Logger logger -
CONFIG_TABLE_CONTENT_SOURCE_CONNECTION_INFO
- See Also:
-
DYNAMIC_CONTENT
- See Also:
-
URL
- See Also:
-
TEST_URL
- See Also:
-
NO_CACHE_HEADER_CHECKBOX
- See Also:
-
CACHE_HEADER_NAME
- See Also:
-
NO_CACHE_HEADER_VALUE
- See Also:
-
IGNORE_SSL_ERRORS
- See Also:
-
SSL_CONFIG_TABLE
- See Also:
-
SSL_KEYSTORE_PATH
- See Also:
-
SSL_KEYSTORE_PASSWORD
- See Also:
-
SSL_TRUSTSTORE_PATH
- See Also:
-
SSL_TRUSTSTORE_PASSWORD
- See Also:
-
SESSION_USER_QUERY_PARAMETER
- See Also:
-
POST_PROXY_HEADERS_TO_FORWARD
- See Also:
-
SESSION_USER_CONFIGURATION_TABLE
- See Also:
-
TIMEOUT
- See Also:
-
USER_ID
- See Also:
-
PASSWORD
- See Also:
-
AUTHORIZATION_SERVER_ID
- See Also:
-
AUTHENTICATION_TYPE
- See Also:
-
AUTHENTICATION_TYPE_NONE
- See Also:
-
AUTHENTICATION_TYPE_BASIC
- See Also:
-
AUTHENTICATION_TYPE_SSO
- See Also:
-
AUTHENTICATION_TYPE_OAUTH_M2M
- See Also:
-
AUTHENTICATION_TYPE_SESSION_USER
- See Also:
-
CONFIGURATION_SCOPE_TABLE_NAME
- See Also:
-
FLOW_CONNECTOR_CONFIGURATION
- See Also:
-
FLOW_CONNECTION_NAME
- See Also:
-
SCOPE
- See Also:
-
-
Constructor Details
-
MediaEntity
public MediaEntity()
-
-
Method Details
-
getImage
- Throws:
Exception
- If an error occurs
-
GetImage
- Service Category:
- Images
- Service Description:
- Get the content as an image.
- Returns:
- result Image content - IMAGE
- Throws:
Exception
- If an error occurs
-
GetMimeType
- Service Category:
- Images
- Service Description:
- Get the mime type.
- Returns:
- result Image mime type - STRING
- Throws:
Exception
- If an error occurs
-
getEntityType
@ThingworxExtensionApiMethod(since={6,6}) public RelationshipTypes.ThingworxRelationshipTypes getEntityType()Description copied from class:RootEntity
Returns the type of this entity.
- Specified by:
getEntityType
in classRootEntity
- Returns:
- the entity type
-
GetProxyUrl
@ThingworxExtensionApiMethod(since={7,4}, deprecatedSince={8,5}) @Deprecated public String GetProxyUrl(String targetUrl, Boolean isAbsoluteTargetUrl) throws Exception Deprecated.As of release 8.5.0, replaced byGetProxyUrl(String, Boolean, Boolean)
- Parameters:
targetUrl
- Actual URL of content to stream. Must be under the configured origin serverisAbsoluteTargetUrl
- Is the provided target URL an absolute URL or relative.- Returns:
- proxy URL to remote content
- Throws:
Exception
-
GetProxyUrl
@ThingworxExtensionApiMethod(since={8,5}) public String GetProxyUrl(String targetUrl, Boolean isAbsoluteTargetUrl, Boolean clientFollowsRedirect) throws Exception - Service Category:
- Images
- Service Description:
- Get a URL to proxy content relative to the configured origin server.
- Parameters:
targetUrl
- Actual URL of content to stream. Must be under the configured origin server - STRINGisAbsoluteTargetUrl
- Is the provided target URL an absolute URL or relative. - BOOLEANclientFollowsRedirect
- If the response of the proxied URL is of redirect type, then whether the client should call the redirected url or media entity.Set this flag value to true if client should follow the redirect rather than Media Entity - BOOLEAN- Returns:
- result proxy URL to remote content - STRING
- Throws:
Exception
- If an error occurs
-
fromJSON
@Deprecated @ThingworxExtensionApiMethod(since={6,6}, deprecatedSince={8,4}) public static MediaEntity fromJSON(org.json.JSONObject jsonObject) throws Exception Deprecated.- Throws:
Exception
- If an error occurs
-
GetProxyUrl(String, Boolean, Boolean)