Class SessionInfo
- java.lang.Object
-
- All Implemented Interfaces:
IConfigurableObject
,INotScriptFriendly
,ISupportsDeprecation
,IDiffableObject
,IAvatar
,IEntityLifeCycleEvent
,IPersistable
,IServiceProvider
,ITaggableObject
,IDependencyScannableObject
,IEntityDefinition
,IPersistableObject<java.lang.String>
,IDesignTimeSecurable
,IDesignTimeSecurableEntity
,IRunTimeSecurable
,IRunTimeSecurableEntity
,ISecurable
,IVisibilitySecurable
,IVisibilitySecurableEntity
,IAspectContainer
,INamedObject
,java.io.Serializable
@ThingworxExtensionApiClass(since={6,6}, canInstantiate=true) public class SessionInfo extends Resource
- See Also:
- Serialized Form
-
-
Field Summary
-
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
Constructors Constructor Description SessionInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InfoTable
GetActiveUsers(java.lang.Double maxItems)
Service Category: UserInfo Service Description: Get the currently logged in users.java.lang.String
GetCurrentUser()
Service Category: UserInfo Service Description: Get the currently logged in user.InfoTable
GetCurrentUserExtensionProperties()
Service Category: UserInfo Service Description: Get the properties for the currently logged in user.InfoTable
GetCurrentUserGroups()
Service Category: UserInfo Service Description: Get the groups for the currently logged in user.java.lang.String
GetCurrentUserHomeMashup()
Service Category: UserInfo Service Description: Get the currently logged in user's home mashup.java.lang.String
GetCurrentUserLanguage()
Service Category: UserInfo Service Description: Get the currently logged in user's preferred language.InfoTable
GetCurrentUserOrganizationalUnits()
Service Category: UserInfo Service Description: Get the organizational units for the currently logged in user.InfoTable
GetCurrentUserOrganizations()
Service Category: UserInfo Service Description: Get the organizations for the currently logged in user.InfoTable
GetDesignTimeCollectionPermissions()
Service Category: Permissions Service Description: Get the design time permissions for the current user.InfoTable
GetGlobalSessionValues()
Service Category: SessionInfo Service Description: Get global session values.void
SetGlobalSessionBooleanValue(java.lang.String name, java.lang.Boolean value)
Service Category: SessionInfo Service Description: Set value for specified boolean global session property.void
SetGlobalSessionDateTimeValue(java.lang.String name, org.joda.time.DateTime value)
Service Category: SessionInfo Service Description: Set value for specified datetime global session property.void
SetGlobalSessionInfoTableValue(java.lang.String name, InfoTable value)
Service Category: SessionInfo Service Description: Set value for specified InfoTable global session property.void
SetGlobalSessionJSONValue(java.lang.String name, org.json.JSONObject value)
Service Category: SessionInfo Service Description: Set value for specified JSON global session property.void
SetGlobalSessionLocationValue(java.lang.String name, Location value)
Service Category: SessionInfo Service Description: Set value for specified location global session property.void
SetGlobalSessionNumberValue(java.lang.String name, java.lang.Double value)
Service Category: SessionInfo Service Description: Set value for specified number global session property.void
SetGlobalSessionStringValue(java.lang.String name, java.lang.String value)
Service Category: SessionInfo Service Description: Set value for specified string global session property.void
SetGlobalSessionXMLValue(java.lang.String name, org.w3c.dom.Document value)
Service Category: SessionInfo Service Description: Set value for specified XML global session property.-
Methods inherited from class com.thingworx.resources.Resource
getEntityType
-
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.deprecation.ISupportsDeprecation
getDeprecated, isDeprecated, isDeprecatedBefore, since
-
-
-
-
Method Detail
-
GetCurrentUser
@ThingworxExtensionApiMethod(since={6,6}) public java.lang.String GetCurrentUser() throws java.lang.Exception
- Service Category:
- UserInfo
- Service Description:
- Get the currently logged in user.
- Returns:
- result Currently logged in user - STRING
- Throws:
java.lang.Exception
- If an error occurs
-
GetCurrentUserHomeMashup
@ThingworxExtensionApiMethod(since={6,6}) public java.lang.String GetCurrentUserHomeMashup() throws java.lang.Exception
- Service Category:
- UserInfo
- Service Description:
- Get the currently logged in user's home mashup.
- Returns:
- result Home mashup for the currently logged in user - MASHUPNAME
- Throws:
java.lang.Exception
- If an error occurs
-
GetCurrentUserLanguage
@ThingworxExtensionApiMethod(since={6,6}) public java.lang.String GetCurrentUserLanguage() throws java.lang.Exception
- Service Category:
- UserInfo
- Service Description:
- Get the currently logged in user's preferred language.
- Returns:
- Language Preferred language - STRING
- Throws:
java.lang.Exception
- If an error occurs
-
GetActiveUsers
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetActiveUsers(java.lang.Double maxItems) throws java.lang.Exception
- Service Category:
- UserInfo
- Service Description:
- Get the currently logged in users.
- Parameters:
maxItems
- Maximum number of items to return - NUMBER- Returns:
- result The currently logged in users - INFOTABLE - Aspects {dataShape:UserStatus}
- Throws:
java.lang.Exception
- If an error occurs
-
GetCurrentUserExtensionProperties
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetCurrentUserExtensionProperties() throws java.lang.Exception
- Service Category:
- UserInfo
- Service Description:
- Get the properties for the currently logged in user.
- Returns:
- result Currently logged in user properties - INFOTABLE
- Throws:
java.lang.Exception
- If an error occurs
-
GetCurrentUserGroups
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetCurrentUserGroups() throws java.lang.Exception
- Service Category:
- UserInfo
- Service Description:
- Get the groups for the currently logged in user.
- Returns:
- result Groups for the currently logged in user - INFOTABLE - Aspects {dataShape:EntityList}
- Throws:
java.lang.Exception
- If an error occurs
-
GetCurrentUserOrganizations
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetCurrentUserOrganizations() throws java.lang.Exception
- Service Category:
- UserInfo
- Service Description:
- Get the organizations for the currently logged in user.
- Returns:
- result Organizations for the currently logged in user - INFOTABLE - Aspects {dataShape:EntityList}
- Throws:
java.lang.Exception
- If an error occurs
-
GetCurrentUserOrganizationalUnits
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetCurrentUserOrganizationalUnits() throws java.lang.Exception
- Service Category:
- UserInfo
- Service Description:
- Get the organizational units for the currently logged in user.
- Returns:
- result Organizations for the currently logged in user - INFOTABLE - Aspects {dataShape:EntityList}
- Throws:
java.lang.Exception
- If an error occurs
-
GetGlobalSessionValues
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetGlobalSessionValues() throws java.lang.Exception
- Service Category:
- SessionInfo
- Service Description:
- Get global session values.
- Returns:
- result Parameter value - INFOTABLE
- Throws:
java.lang.Exception
- If an error occurs
-
GetDesignTimeCollectionPermissions
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetDesignTimeCollectionPermissions() throws java.lang.Exception
- Service Category:
- Permissions
- Service Description:
- Get the design time permissions for the current user.
- Returns:
- result Design time permissions for the current user - INFOTABLE - Aspects {dataShape:DesignTimePermissions}
- Throws:
java.lang.Exception
- If an error occurs
-
SetGlobalSessionStringValue
@ThingworxExtensionApiMethod(since={6,6}) public void SetGlobalSessionStringValue(java.lang.String name, java.lang.String value) throws java.lang.Exception
- Service Category:
- SessionInfo
- Service Description:
- Set value for specified string global session property.
- Parameters:
name
- Parameter name - STRINGvalue
- Parameter value - STRING- Throws:
java.lang.Exception
- If an error occurs
-
SetGlobalSessionBooleanValue
@ThingworxExtensionApiMethod(since={6,6}) public void SetGlobalSessionBooleanValue(java.lang.String name, java.lang.Boolean value) throws java.lang.Exception
- Service Category:
- SessionInfo
- Service Description:
- Set value for specified boolean global session property.
- Parameters:
name
- Parameter name - STRINGvalue
- Parameter value - BOOLEAN- Throws:
java.lang.Exception
- If an error occurs
-
SetGlobalSessionLocationValue
@ThingworxExtensionApiMethod(since={6,6}) public void SetGlobalSessionLocationValue(java.lang.String name, Location value) throws java.lang.Exception
- Service Category:
- SessionInfo
- Service Description:
- Set value for specified location global session property.
- Parameters:
name
- Parameter name - STRINGvalue
- Parameter value - LOCATION- Throws:
java.lang.Exception
- If an error occurs
-
SetGlobalSessionDateTimeValue
@ThingworxExtensionApiMethod(since={6,6}) public void SetGlobalSessionDateTimeValue(java.lang.String name, org.joda.time.DateTime value) throws java.lang.Exception
- Service Category:
- SessionInfo
- Service Description:
- Set value for specified datetime global session property.
- Parameters:
name
- Parameter name - STRINGvalue
- Parameter value - DATETIME- Throws:
java.lang.Exception
- If an error occurs
-
SetGlobalSessionNumberValue
@ThingworxExtensionApiMethod(since={6,6}) public void SetGlobalSessionNumberValue(java.lang.String name, java.lang.Double value) throws java.lang.Exception
- Service Category:
- SessionInfo
- Service Description:
- Set value for specified number global session property.
- Parameters:
name
- Parameter name - STRINGvalue
- Parameter value - NUMBER- Throws:
java.lang.Exception
- If an error occurs
-
SetGlobalSessionJSONValue
@ThingworxExtensionApiMethod(since={6,6}) public void SetGlobalSessionJSONValue(java.lang.String name, org.json.JSONObject value) throws java.lang.Exception
- Service Category:
- SessionInfo
- Service Description:
- Set value for specified JSON global session property.
- Parameters:
name
- Parameter name - STRINGvalue
- Parameter value - JSON- Throws:
java.lang.Exception
- If an error occurs
-
SetGlobalSessionXMLValue
@ThingworxExtensionApiMethod(since={6,6}) public void SetGlobalSessionXMLValue(java.lang.String name, org.w3c.dom.Document value) throws java.lang.Exception
- Service Category:
- SessionInfo
- Service Description:
- Set value for specified XML global session property.
- Parameters:
name
- Parameter name - STRINGvalue
- Parameter value - XML- Throws:
java.lang.Exception
- If an error occurs
-
SetGlobalSessionInfoTableValue
@ThingworxExtensionApiMethod(since={6,6}) public void SetGlobalSessionInfoTableValue(java.lang.String name, InfoTable value) throws java.lang.Exception
- Service Category:
- SessionInfo
- Service Description:
- Set value for specified InfoTable global session property.
- Parameters:
name
- Parameter name - STRINGvalue
- Parameter value - INFOTABLE- Throws:
java.lang.Exception
- If an error occurs
-
-