Method GetDocumentShares
GetDocumentShares(String, String)
Returns a list of document share informations
Declaration
List<DocumentShareContract> GetDocumentShares(string connectionId, string tempAccessDefinitionFilter)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | The connection id to identify your connection. See also ConnectionId |
System.String | tempAccessDefinitionFilter | Optional: The temporary access definition filter. Consists of three parts divided by #: <FileExtension>#<DossierId>#<UserId>. Default: |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<DocumentShareContract> | A list of document share informations |
Remarks
Each user may see the informations of all document shares
Examples
POST http://YourServerName/InfoShare/Json/Document/GetDocumentShares
Example for returns a list of document share informations.{
"connectionId": "1fbe116a-20a9-4378-b198-6cf3283f0238",
"tempAccessDefinitionFilter": ""
}
Response:
{
"GetDocumentSharesResult": [{
"Id": "9a8200bd-82db-e911-a946-00155d290a08",
"SecurityHandlerDocuments": [{
"AllowedAccessOperations": ["01002010-38a7-11d8-a902-0050bf427e8f", "01002014-38a7-11d8-a902-0050bf427e8f",
"01002074-38a7-11d8-a902-0050bf427e8f", "01002081-38a7-11d8-a902-0050bf427e8f",
"01002080-38a7-11d8-a902-0050bf427e8f", "01002016-38a7-11d8-a902-0050bf427e8f"],
"CreateDate": "2019-09-20T08:43:38",
"CreatorUser": "2cd4ad99-bacf-e911-a939-00155d290a08",
"EndDate": "2019-09-20T23:59:59",
"Id": "ac8200bd-82db-e911-a946-00155d290a08",
"LastChangeDate": "2019-09-20T08:43:38",
"LastChangeUser": "2cd4ad99-bacf-e911-a939-00155d290a08",
"Name": null,
"SearchableObjects": [{
"Id": "d98200bd-82db-e911-a946-00155d290a08",
"ObjectId": "7d58533d-75db-e911-a946-00155d290a08",
"ObjectTypeId": "86bc60b4-86c3-4fd6-beef-50af23a0ac9c",
"StoreId": "3bb6448c-b9cf-e911-a939-00155d290a08" }],
"StartDate": "2019-09-20T00:00:00" }],
"SubjectId": "2cd4ad99-bacf-e911-a939-00155d290a08",
"TempAccessDefinitionName": "##DocShare##Freigabe Test" }]
}
Exceptions
Type | Condition |
---|---|
ServiceException | The connection id {connectionId} isn't valid or has expired (10008) |
ServiceException | Document share not found {0} {documentShareId} (10104) |
ServiceException | Verification code is needed: Verification code not yet verified (10152) |