Class DummyOneDriveServiceImpl
java.lang.Object
net.datenwerke.rs.onedrive.service.onedrive.DummyOneDriveServiceImpl
- All Implemented Interfaces:
BasicDatasinkService,OneDriveService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoExportIntoDatasink(Object data, User user, DatasinkDefinition datasinkDefinition, DatasinkConfiguration config) getOneDriveDatasink(String query, TerminalSession session) Acquire a onedrive-datasink from through the object resolverResponsegroupGetDrivesOf(OneDriveDatasink oneDriveDatasink, String groupId, Optional<String> optionalAccessToken) Acquires all available drives of a given groupResponse[]groupGetMyGroups(OneDriveDatasink oneDriveDatasink, Optional<String> optionalAccessToken) Acquires all microsoft groups that the user has access to
-
Constructor Details
-
DummyOneDriveServiceImpl
public DummyOneDriveServiceImpl()
-
-
Method Details
-
getDefaultDatasink
- Specified by:
getDefaultDatasinkin interfaceBasicDatasinkService
-
getDatasinkPropertyName
- Specified by:
getDatasinkPropertyNamein interfaceBasicDatasinkService
-
getStorageType
- Specified by:
getStorageTypein interfaceBasicDatasinkService
-
getSchedulingStorageType
- Specified by:
getSchedulingStorageTypein interfaceBasicDatasinkService
-
doExportIntoDatasink
public void doExportIntoDatasink(Object data, User user, DatasinkDefinition datasinkDefinition, DatasinkConfiguration config) throws DatasinkExportException - Specified by:
doExportIntoDatasinkin interfaceBasicDatasinkService- Throws:
DatasinkExportException
-
getOneDriveDatasink
public OneDriveDatasink getOneDriveDatasink(String query, TerminalSession session) throws IllegalArgumentException Description copied from interface:OneDriveServiceAcquire a onedrive-datasink from through the object resolver- Specified by:
getOneDriveDatasinkin interfaceOneDriveService- Parameters:
query- that describes an onedrive-datasinksession- refers to a terminal-session- Returns:
- OneDriveDatasink if found
- Throws:
IllegalArgumentException- if no matching datasink is found or multiple datasinks match
-
groupGetMyGroups
public Response[] groupGetMyGroups(OneDriveDatasink oneDriveDatasink, Optional<String> optionalAccessToken) throws IOException Description copied from interface:OneDriveServiceAcquires all microsoft groups that the user has access to- Specified by:
groupGetMyGroupsin interfaceOneDriveService- Parameters:
oneDriveDatasink- which configures tenant-id, app-key, app-secret, OAuthApi and access tokenoptionalAccessToken- 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
public Response groupGetDrivesOf(OneDriveDatasink oneDriveDatasink, String groupId, Optional<String> optionalAccessToken) throws IOException Description copied from interface:OneDriveServiceAcquires all available drives of a given group- Specified by:
groupGetDrivesOfin interfaceOneDriveService- Parameters:
oneDriveDatasink- which configures tenant-id, app-key, app-secret, OAuthApi and access tokengroupId- refers to the onedrive-group which will be queriedoptionalAccessToken- 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]
-