Interface IOffice365OneDriveServiceGroovy
-
- All Known Implementing Classes:
Office365OneDriveServiceGroovy
@Scriptable public interface IOffice365OneDriveServiceGroovy
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<Permission>
addPermission(String p_strCfgId, String p_strImpersonationGuid, String p_driveId, String p_itemId, PermissionRequest p_permissionRequest)
Add a permission to the given drive item.DriveItem
createFolder(String p_strCfgId, String p_strImpersonationGuid, String p_driveId, String p_itemId, String p_folderName)
Create a new folder in the given folder with the given folder name.org.apache.http.client.HttpClient
createHttpClient(String p_strCfgId, String p_strImpersonationGuid)
Returns the HttpClient instance for the given configuration ID.org.apache.olingo.client.api.ODataClient
createODataClient(String p_strCfgId, String p_strImpersonationGuid)
Returns the ODataClient instance for the given configuration ID.SharingLink
createShareLink(String p_strCfgId, String p_strImpersonationGuid, String p_driveId, String p_itemId)
Create a link to share the given drive item.String
getConfigurationGuid(String p_strCfgId)
Returns the internal configuration GUID for the given configuration ID.DriveItem
getDriveItemMetadata(String p_strCfgId, String p_strImpersonationGuid, String p_driveId, String p_itemId)
Returns the metda data of the given drive item.List<DriveItem>
getFolderContent(String p_strCfgId, String p_strImpersonationGuid, String p_driveId, String p_folderId)
Returns folder item instances.Permission
getPermission(String p_strCfgId, String p_strImpersonationGuid, String p_driveId, String p_itemId, String p_permissionId)
Get the information about an existing permission.List<Permission>
getPermissions(String p_strCfgId, String p_strImpersonationGuid, String p_driveId, String p_itemId)
Returns a list of permissions of the given drive item.Permission
updatePermission(String p_strCfgId, String p_strImpersonationGuid, String p_driveId, String p_itemId, String p_permissionId, String[] p_roles)
Update a permission or rather configure the roles of an existing permission.
-
-
-
Method Detail
-
getFolderContent
List<DriveItem> getFolderContent(String p_strCfgId, String p_strImpersonationGuid, String p_driveId, String p_folderId)
Returns folder item instances.- Parameters:
p_strCfgId
- The connector configuration ID (name of the configuration XML file).p_strImpersonationGuid
- If null, runs in current user context, otherwise in context of the given static user GUID which must be defined in the connector configuration.p_driveId
- The drive ID.p_folderId
- The folder ID.- Returns:
- A list of drive items.
-
getDriveItemMetadata
DriveItem getDriveItemMetadata(String p_strCfgId, String p_strImpersonationGuid, String p_driveId, String p_itemId)
Returns the metda data of the given drive item.- Parameters:
p_strCfgId
- The connector configuration ID (name of the configuration XML file).p_strImpersonationGuid
- If null, runs in current user context, otherwise in context of the given static user GUID which must be defined in the connector configuration.p_driveId
- The drive ID.p_itemId
- The folder ID.- Returns:
- The meta data of the given drive item.
-
createFolder
DriveItem createFolder(String p_strCfgId, String p_strImpersonationGuid, String p_driveId, String p_itemId, String p_folderName)
Create a new folder in the given folder with the given folder name.- Parameters:
p_strCfgId
- The connector configuration ID (name of the configuration XML file).p_strImpersonationGuid
- If null, runs in current user context, otherwise in context of the given static user GUID which must be defined in the connector configuration.p_driveId
- The drive ID.p_itemId
- The folder ID.p_folderName
- The name of the new folder.- Returns:
- The created folder.
-
getPermissions
List<Permission> getPermissions(String p_strCfgId, String p_strImpersonationGuid, String p_driveId, String p_itemId)
Returns a list of permissions of the given drive item.- Parameters:
p_strCfgId
- The connector configuration ID (name of the configuration XML file).p_strImpersonationGuid
- If null, runs in current user context, otherwise in context of the given static user GUID which must be defined in the connector configuration.p_driveId
- The drive ID.p_itemId
- The folder ID.- Returns:
- A list of the drive item's permissions.
-
addPermission
List<Permission> addPermission(String p_strCfgId, String p_strImpersonationGuid, String p_driveId, String p_itemId, PermissionRequest p_permissionRequest)
Add a permission to the given drive item.- Parameters:
p_strCfgId
- The connector configuration ID (name of the configuration XML file).p_strImpersonationGuid
- If null, runs in current user context, otherwise in context of the given static user GUID which must be defined in the connector configuration.p_driveId
- The drive ID.p_itemId
- The folder ID.p_permissionRequest
- The permisson request containing all information about the permission, which should be created.- Returns:
- A list of the drive item's permissions.
-
createShareLink
SharingLink createShareLink(String p_strCfgId, String p_strImpersonationGuid, String p_driveId, String p_itemId)
Create a link to share the given drive item.- Parameters:
p_strCfgId
- The connector configuration ID (name of the configuration XML file).p_strImpersonationGuid
- If null, runs in current user context, otherwise in context of the given static user GUID which must be defined in the connector configuration.p_driveId
- The drive ID.p_itemId
- The folder ID.- Returns:
- The created sharing link.
-
updatePermission
Permission updatePermission(String p_strCfgId, String p_strImpersonationGuid, String p_driveId, String p_itemId, String p_permissionId, String[] p_roles)
Update a permission or rather configure the roles of an existing permission.- Parameters:
p_strCfgId
- The connector configuration ID (name of the configuration XML file).p_strImpersonationGuid
- If null, runs in current user context, otherwise in context of the given static user GUID which must be defined in the connector configuration.p_driveId
- The drive ID.p_itemId
- The folder ID.p_permissionId
- The ID of the permission, which should be updated.p_roles
- A list of roles to set in the permission.- Returns:
- The updated permission.
-
getPermission
Permission getPermission(String p_strCfgId, String p_strImpersonationGuid, String p_driveId, String p_itemId, String p_permissionId)
Get the information about an existing permission.- Parameters:
p_strCfgId
- The connector configuration ID (name of the configuration XML file).p_strImpersonationGuid
- If null, runs in current user context, otherwise in context of the given static user GUID which must be defined in the connector configuration.p_driveId
- The drive ID.p_itemId
- The folder ID.p_permissionId
- The permission ID.- Returns:
- The requested permission.
-
getConfigurationGuid
String getConfigurationGuid(String p_strCfgId)
Returns the internal configuration GUID for the given configuration ID. The configuration GUID is required for using non-scriptable connector classes.- Parameters:
p_strCfgId
- The configuration ID (connector-id + "_" + configuration-name).- Returns:
- The internal configuration GUID.
-
createODataClient
org.apache.olingo.client.api.ODataClient createODataClient(String p_strCfgId, String p_strImpersonationGuid)
Returns the ODataClient instance for the given configuration ID. Can be used for direct OData calls to MS Office365.- Parameters:
p_strCfgId
- The connector configuration ID (name of the configuration XML file).p_strImpersonationGuid
- If null, runs in current user context, otherwise in context of the given static user GUID which must be defined in the connector configuration.- Returns:
- The OData client.
-
createHttpClient
org.apache.http.client.HttpClient createHttpClient(String p_strCfgId, String p_strImpersonationGuid)
Returns the HttpClient instance for the given configuration ID. Can be used for raw HTTP calls to MS Office365.- Parameters:
p_strCfgId
- The connector configuration ID (name of the configuration XML file).p_strImpersonationGuid
- If null, runs in current user context, otherwise in context of the given static user GUID which must be defined in the connector configuration.- Returns:
- The OData client.
-
-