alfresco-js-api
Version:
JavaScript client library for the Alfresco REST API
168 lines (115 loc) • 7.32 kB
Markdown
//localhost/alfresco/api/-default-/public/alfresco/versions/1*
Method | HTTP request | Description
------------- | ------------- | -------------
[**getNetwork**](NetworksApi.md
[**getNetworkForPerson**](NetworksApi.md
[**listNetworksForPerson**](NetworksApi.md
<a name="getNetwork"></a>
> PersonNetworkEntry getNetwork(networkId, opts)
Get a network
Returns information for a network **networkId**.
### Example
```javascript
var networkId = "networkId_example"; // {String} The identifier of a network.
var opts = {
'fields': ["fields_example"] /* {[String]} A list of field names.
You can use this parameter to restrict the fields
returned within a response if, for example, you want to save on overall bandwidth.
The list applies to a returned individual
entity or entries within a collection.
If the API method also supports the **include**
parameter, then the fields specified in the **include**
parameter are returned in addition to those specified in the **fields** parameter. */
};
this.alfrescoJsApi.core.networksApi.getNetwork(networkId, opts).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
```
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**networkId** | **String**| The identifier of a network. |
**fields** | [**[String]**](String.md)| A list of field names.
You can use this parameter to restrict the fields
returned within a response if, for example, you want to save on overall bandwidth.
The list applies to a returned individual
entity or entries within a collection.
If the API method also supports the **include**
parameter, then the fields specified in the **include**
parameter are returned in addition to those specified in the **fields** parameter.
| [optional]
[**PersonNetworkEntry**](PersonNetworkEntry.md)
[ ](../README.md
- **Content-Type**: application/json
- **Accept**: application/json
<a name="getNetworkForPerson"></a>
> PersonNetworkEntry getNetworkForPerson(personId, networkId, opts)
Get network information
Gets network information on a single network specified by **networkId** for **personId**. You can use the `-me-&
```javascript
var personId = "personId_example"; // String | The identifier of a person.
var networkId = "networkId_example"; // String | The identifier of a network.
var opts = {
'fields': ["fields_example"], // [String] | A list of field names. You can use this parameter to restrict the fields returned within a response if, for example, you want to save on overall bandwidth. The list applies to a returned individual entity or entries within a collection. If the API method also supports the **include** parameter, then the fields specified in the **include** parameter are returned in addition to those specified in the **fields** parameter.
};
this.alfrescoJsApi.core.networksApi.getNetworkForPerson(personId, networkId, opts).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
```
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**personId** | **String**| The identifier of a person. |
**networkId** | **String**| The identifier of a network. |
**fields** | [**[String]**](String.md)| A list of field names. You can use this parameter to restrict the fields returned within a response if, for example, you want to save on overall bandwidth. The list applies to a returned individual entity or entries within a collection. If the API method also supports the **include** parameter, then the fields specified in the **include** parameter are returned in addition to those specified in the **fields** parameter. | [optional]
[**PersonNetworkEntry**](PersonNetworkEntry.md)
[ ](../README.md
- **Content-Type**: application/json
- **Accept**: application/json
<a name="listNetworksForPerson"></a>
> PersonNetworkPaging listNetworksForPerson(personId, opts)
List network membership
Gets a list of network memberships for person **personId**. You can use the `-me-&
```javascript
var personId = "personId_example"; // String | The identifier of a person.
var opts = {
'skipCount': 56, // Number | The number of entities that exist in the collection before those included in this list.
'maxItems': 56, // Number | The maximum number of items to return in the list.
'fields': ["fields_example"], // [String] | A list of field names. You can use this parameter to restrict the fields returned within a response if, for example, you want to save on overall bandwidth. The list applies to a returned individual entity or entries within a collection. If the API method also supports the **include** parameter, then the fields specified in the **include** parameter are returned in addition to those specified in the **fields** parameter.
};
this.alfrescoJsApi.core.networksApi.listNetworksForPerson(personId, opts).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
```
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**personId** | **String**| The identifier of a person. |
**skipCount** | **Number**| The number of entities that exist in the collection before those included in this list. | [optional]
**maxItems** | **Number**| The maximum number of items to return in the list. | [optional]
**fields** | [**[String]**](String.md)| A list of field names. You can use this parameter to restrict the fields returned within a response if, for example, you want to save on overall bandwidth. The list applies to a returned individual entity or entries within a collection. If the API method also supports the **include** parameter, then the fields specified in the **include** parameter are returned in addition to those specified in the **fields** parameter. | [optional]
[**PersonNetworkPaging**](PersonNetworkPaging.md)
[ ](../README.md
- **Content-Type**: application/json
- **Accept**: application/json
All URIs are relative to *https: