Interface OneDriveService

All Superinterfaces:
BasicDatasinkService
All Known Implementing Classes:
DummyOneDriveServiceImpl
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

public interface OneDriveService extends BasicDatasinkService
  • Method Details

    • getOneDriveDatasink

      OneDriveDatasink getOneDriveDatasink(String query, TerminalSession session) throws IllegalArgumentException
      Acquire a onedrive-datasink from through the object resolver
      Parameters:
      query - that describes an onedrive-datasink
      session - refers to a terminal-session
      Returns:
      OneDriveDatasink if found
      Throws:
      IllegalArgumentException - if no matching datasink is found or multiple datasinks match
    • groupGetMyGroups

      Response[] groupGetMyGroups(OneDriveDatasink oneDriveDatasink, Optional<String> optionalAccessToken) throws IOException
      Acquires all microsoft groups that the user has access to
      Parameters:
      oneDriveDatasink - which configures tenant-id, app-key, app-secret, OAuthApi and access token
      optionalAccessToken - if set to != null this access token is used instead of the default one of oneDriveDatasink
      Returns:
      Response[] that holds onedrive-group objects that refer to the onedrive graph api call "https://graph.microsoft.com/v1.0/groups/[group-id]"
      Throws:
      IOException - is thrown if an api call fails with code != [200|201]
    • groupGetDrivesOf

      Response groupGetDrivesOf(OneDriveDatasink oneDriveDatasink, String groupId, Optional<String> optionalAccessToken) throws IOException
      Acquires all available drives of a given group
      Parameters:
      oneDriveDatasink - which configures tenant-id, app-key, app-secret, OAuthApi and access token
      groupId - refers to the onedrive-group which will be queried
      optionalAccessToken - if set to != null this access token is used instead of the default one of oneDriveDatasink
      Returns:
      Response that holds all available onedrive-drive objects of the given group
      Throws:
      IOException - is thrown if an api call fails with code != [200|201]