- 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.
-
Method Summary
Acquire a onedrive-datasink from through the object resolver
Response
Acquires all available drives of a given group
Response[]
Acquires all microsoft groups that the user has access to
-
Method Details
-
getOneDriveDatasink
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
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
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]