Package sdk

Class ODSL


public class ODSL
extends Object
  • Constructor Details

    • ODSL

      public ODSL()
  • Method Details

    • clean

      public void clean()
      Create a new context
    • login

      public String login()
      Log into OpenDataDSL - You will log in using your AAD credentials
      Returns:
      The security token generated from the login
    • setStage

      public void setStage​(String stage)
    • getContext

      public OpenDSLContext getContext()
      Get the ODSL context
      Returns:
      The context
    • get

      public Var get​(String service, String source, String id)
      Get a resource from the supplied service - simple form
      Parameters:
      service - The service to read from, e.g. object, data etc.
      source - The source of the resource, usually private or public
      id - The id of the resource
      Returns:
      The resource as a Var - this can be cast to whatever the returned resource is
    • get

      public Var get​(String service, ServiceGetRequest request)
      Get a resource from a service using a request object
      Parameters:
      service - The service to read from, e.g. object, data etc.
      request - The get request object
      Returns:
      The resource as a Var - this can be cast to whatever the returned resource is
    • list

      public List<Var> list​(String service, String source, String filter)
    • list

      public List<Var> list​(String service, ServiceGetListRequest request)
    • update

      public void update​(String service, String source, Var var)
    • update

      public void update​(String service, String source, Var var, String options)
    • update

      public void update​(String service, ServiceSaveRequest request)
    • createFilter

      public String createFilter​(String filter)
    • messaging

      public Messaging messaging()
    • RTD

      public RTD RTD()