Class SessionInfo

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 SessionInfo extends Resource
See Also:
  • Constructor Details

    • SessionInfo

      public SessionInfo()
  • Method Details

    • GetCurrentUser

      @ThingworxExtensionApiMethod(since={6,6}) public String GetCurrentUser() throws Exception
      Service Category:
      UserInfo
      Service Description:
      Get the currently logged in user.
      Returns:
      result Currently logged in user - STRING
      Throws:
      Exception - If an error occurs
    • GetCurrentUserHomeMashup

      @ThingworxExtensionApiMethod(since={6,6}) public String GetCurrentUserHomeMashup() throws 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:
      Exception - If an error occurs
    • GetCurrentUserLanguage

      @ThingworxExtensionApiMethod(since={6,6}) public String GetCurrentUserLanguage() throws Exception
      Service Category:
      UserInfo
      Service Description:
      Get the currently logged in user's preferred language.
      Returns:
      Language Preferred language - STRING
      Throws:
      Exception - If an error occurs
    • GetActiveUsers

      @ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetActiveUsers(Double maxItems) throws 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:
      Exception - If an error occurs
    • GetCurrentUserExtensionProperties

      @ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetCurrentUserExtensionProperties() throws Exception
      Service Category:
      UserInfo
      Service Description:
      Get the properties for the currently logged in user.
      Returns:
      result Currently logged in user properties - INFOTABLE
      Throws:
      Exception - If an error occurs
    • GetCurrentUserGroups

      @ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetCurrentUserGroups() throws 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:
      Exception - If an error occurs
    • GetCurrentUserOrganizations

      @ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetCurrentUserOrganizations() throws 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:
      Exception - If an error occurs
    • GetCurrentUserOrganizationalUnits

      @ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetCurrentUserOrganizationalUnits() throws 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:
      Exception - If an error occurs
    • GetGlobalSessionValues

      @ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetGlobalSessionValues() throws Exception
      Service Category:
      SessionInfo
      Service Description:
      Get global session values.
      Returns:
      result Parameter value - INFOTABLE
      Throws:
      Exception - If an error occurs
    • GetDesignTimeCollectionPermissions

      @ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetDesignTimeCollectionPermissions() throws 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:
      Exception - If an error occurs
    • SetGlobalSessionStringValue

      @ThingworxExtensionApiMethod(since={6,6}) public void SetGlobalSessionStringValue(String name, String value) throws Exception
      Service Category:
      SessionInfo
      Service Description:
      Set value for specified string global session property.
      Parameters:
      name - Parameter name - STRING
      value - Parameter value - STRING
      Throws:
      Exception - If an error occurs
    • SetGlobalSessionBooleanValue

      @ThingworxExtensionApiMethod(since={6,6}) public void SetGlobalSessionBooleanValue(String name, Boolean value) throws Exception
      Service Category:
      SessionInfo
      Service Description:
      Set value for specified boolean global session property.
      Parameters:
      name - Parameter name - STRING
      value - Parameter value - BOOLEAN
      Throws:
      Exception - If an error occurs
    • SetGlobalSessionLocationValue

      @ThingworxExtensionApiMethod(since={6,6}) public void SetGlobalSessionLocationValue(String name, Location value) throws Exception
      Service Category:
      SessionInfo
      Service Description:
      Set value for specified location global session property.
      Parameters:
      name - Parameter name - STRING
      value - Parameter value - LOCATION
      Throws:
      Exception - If an error occurs
    • SetGlobalSessionDateTimeValue

      @ThingworxExtensionApiMethod(since={6,6}) public void SetGlobalSessionDateTimeValue(String name, org.joda.time.DateTime value) throws Exception
      Service Category:
      SessionInfo
      Service Description:
      Set value for specified datetime global session property.
      Parameters:
      name - Parameter name - STRING
      value - Parameter value - DATETIME
      Throws:
      Exception - If an error occurs
    • SetGlobalSessionNumberValue

      @ThingworxExtensionApiMethod(since={6,6}) public void SetGlobalSessionNumberValue(String name, Double value) throws Exception
      Service Category:
      SessionInfo
      Service Description:
      Set value for specified number global session property.
      Parameters:
      name - Parameter name - STRING
      value - Parameter value - NUMBER
      Throws:
      Exception - If an error occurs
    • SetGlobalSessionJSONValue

      @ThingworxExtensionApiMethod(since={6,6}) public void SetGlobalSessionJSONValue(String name, org.json.JSONObject value) throws Exception
      Service Category:
      SessionInfo
      Service Description:
      Set value for specified JSON global session property.
      Parameters:
      name - Parameter name - STRING
      value - Parameter value - JSON
      Throws:
      Exception - If an error occurs
    • SetGlobalSessionXMLValue

      @ThingworxExtensionApiMethod(since={6,6}) public void SetGlobalSessionXMLValue(String name, Document value) throws Exception
      Service Category:
      SessionInfo
      Service Description:
      Set value for specified XML global session property.
      Parameters:
      name - Parameter name - STRING
      value - Parameter value - XML
      Throws:
      Exception - If an error occurs
    • SetGlobalSessionInfoTableValue

      @ThingworxExtensionApiMethod(since={6,6}) public void SetGlobalSessionInfoTableValue(String name, InfoTable value) throws Exception
      Service Category:
      SessionInfo
      Service Description:
      Set value for specified InfoTable global session property.
      Parameters:
      name - Parameter name - STRING
      value - Parameter value - INFOTABLE
      Throws:
      Exception - If an error occurs