alfresco-js-api
Version:
JavaScript client library for the Alfresco REST API
603 lines (406 loc) • 27.7 kB
Markdown
//localhost/alfresco/api/-default-/public/gs/versions/1*
Method | HTTP request | Description
------------- | ------------- | -------------
[**combinedInstructions**](ClassificationGuidesApi.md
[**createClassificationGuide**](ClassificationGuidesApi.md
[**createSubtopic**](ClassificationGuidesApi.md
[**createTopic**](ClassificationGuidesApi.md
[**deleteClassificationGuide**](ClassificationGuidesApi.md
[**deleteTopic**](ClassificationGuidesApi.md
[**listClassificationGuides**](ClassificationGuidesApi.md
[**listSubtopics**](ClassificationGuidesApi.md
[**listTopics**](ClassificationGuidesApi.md
[**showClassificationGuideById**](ClassificationGuidesApi.md
[**showTopicById**](ClassificationGuidesApi.md
[**updateClassificationGuide**](ClassificationGuidesApi.md
[**updateTopic**](ClassificationGuidesApi.md
<a name="combinedInstructions"></a>
> InstructionEntry combinedInstructions(opts)
Combined instructions
Combines instructions from the given topics and the user defined instruction, if any.
### Example
```javascript
pts = {
'instructions': new AlfrescoGovernanceServicesSecurityControls.CombinedInstructionBody() // CombinedInstructionBody | Instructions
};
this.alfrescoJsApi.gsClassification.classificationGuidesApi.combinedInstructions(opts).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
```
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**instructions** | [**CombinedInstructionBody**](CombinedInstructionBody.md)| Instructions | [optional]
[**InstructionEntry**](InstructionEntry.md)
[ ](../README.md
- **Content-Type**: application/json
- **Accept**: application/json
<a name="createClassificationGuide"></a>
> ClassificationGuideEntry createClassificationGuide(classificationGuide)
Create a classification guide
Creates a new classification guide.
### Example
```javascript
var classificationGuide = new AlfrescoGovernanceServicesSecurityControls.ClassificationGuideBody(); // ClassificationGuideBody | Classification guide
this.alfrescoJsApi.gsClassification.classificationGuidesApi.createClassificationGuide(classificationGuide).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
```
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**classificationGuide** | [**ClassificationGuideBody**](ClassificationGuideBody.md)| Classification guide |
[**ClassificationGuideEntry**](ClassificationGuideEntry.md)
[ ](../README.md
- **Content-Type**: application/json
- **Accept**: application/json
<a name="createSubtopic"></a>
> TopicEntry createSubtopic(topicId, topic, opts)
Create a subtopic
Creates a new subtopic of a topic.
### Example
```javascript
var topicId = "topicId_example"; // String | The identifier for the topic
var topic = new AlfrescoGovernanceServicesSecurityControls.TopicBody(); // TopicBody | Subtopic
var opts = {
'include': ["include_example"] // [String] | Returns additional information about the topic. The following optional fields can be requested: * hasSubtopics - A flag indicating whether the topic already contains any subtopics. * instruction - Contains details of any instruction in the topic. * path - An ordered list of id-name pairs of all ancestor topics and the classification guide. * classificationGuide - The classification guide this topic is in.
};
this.alfrescoJsApi.gsClassification.classificationGuidesApi.createSubtopic(topicId, topic, opts).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
```
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**topicId** | **String**| The identifier for the topic |
**topic** | [**TopicBody**](TopicBody.md)| Subtopic |
**include** | [**[String]**](String.md)| Returns additional information about the topic. The following optional fields can be requested: * hasSubtopics - A flag indicating whether the topic already contains any subtopics. * instruction - Contains details of any instruction in the topic. * path - An ordered list of id-name pairs of all ancestor topics and the classification guide. * classificationGuide - The classification guide this topic is in. | [optional]
[**TopicEntry**](TopicEntry.md)
[ ](../README.md
- **Content-Type**: application/json
- **Accept**: application/json
<a name="createTopic"></a>
> TopicEntry createTopic(classificationGuideId, topic, opts)
Create a topic
Creates a new topic.
### Example
```javascript
var classificationGuideId = "classificationGuideId_example"; // String | The identifier for the classification guide
var topic = new AlfrescoGovernanceServicesSecurityControls.TopicBody(); // TopicBody | Topic
var opts = {
'include': ["include_example"] // [String] | Returns additional information about the topic. The following optional fields can be requested: * hasSubtopics - A flag indicating whether the topic already contains any subtopics. * instruction - Contains details of any instruction in the topic. * path - An ordered list of id-name pairs of all ancestor topics and the classification guide. * classificationGuide - The classification guide this topic is in.
};
this.alfrescoJsApi.gsClassification.classificationGuidesApi.createTopic(classificationGuideId, topic, opts).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
```
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**classificationGuideId** | **String**| The identifier for the classification guide |
**topic** | [**TopicBody**](TopicBody.md)| Topic |
**include** | [**[String]**](String.md)| Returns additional information about the topic. The following optional fields can be requested: * hasSubtopics - A flag indicating whether the topic already contains any subtopics. * instruction - Contains details of any instruction in the topic. * path - An ordered list of id-name pairs of all ancestor topics and the classification guide. * classificationGuide - The classification guide this topic is in. | [optional]
[**TopicEntry**](TopicEntry.md)
[ ](../README.md
- **Content-Type**: application/json
- **Accept**: application/json
<a name="deleteClassificationGuide"></a>
> deleteClassificationGuide(classificationGuideId, )
Delete a classification guide
Deletes the classification guide with id **classificationGuideId**, including any topics and instructions.
```javascript
var classificationGuideId = "classificationGuideId_example"; // String | The identifier for the classification guide
this.alfrescoJsApi.gsClassification.classificationGuidesApi.deleteClassificationGuide(classificationGuideId, ).then(function() {
console.log('API called successfully.');
}, function(error) {
console.error(error);
});
```
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**classificationGuideId** | **String**| The identifier for the classification guide |
null (empty response body)
[ ](../README.md
- **Content-Type**: application/json
- **Accept**: application/json
<a name="deleteTopic"></a>
> deleteTopic(topicId, )
Delete a topic
Deletes the topic with id **topicId**, including any subtopics and instructions.
```javascript
var topicId = "topicId_example"; // String | The identifier for the topic
this.alfrescoJsApi.gsClassification.classificationGuidesApi.deleteTopic(topicId, ).then(function() {
console.log('API called successfully.');
}, function(error) {
console.error(error);
});
```
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**topicId** | **String**| The identifier for the topic |
null (empty response body)
[ ](../README.md
- **Content-Type**: application/json
- **Accept**: application/json
<a name="listClassificationGuides"></a>
> ClassificationGuidePaging listClassificationGuides(opts)
List all classification guides
Gets all classification guides.
### Example
```javascript
var opts = {
'include': ["include_example"], // [String] | Returns additional information about the guide. The following optional fields can be requested: * hasTopics - A flag indicating whether the guide already contains any topics.
'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.
'orderBy': ["orderBy_example"], // [String] | A string to control the order of the entities returned in a list. You can use the **orderBy** parameter to sort the list by one or more fields. Each field has a default sort order, which is normally acending order. Read the API method implementation notes above to check if any fields used in this method have a descending default search order. To sort the entities in a specific order, you can use the **ASC** and **DESC** keywords for any field.
'where': "where_example" // String | A string to restrict the returned objects by using a predicate. Supported operations are AND, NOT, and OR. Fields to filter on: * enabled - e.g. (enabled = true OR enabled = false)
};
this.alfrescoJsApi.gsClassification.classificationGuidesApi.listClassificationGuides(opts).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
```
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**include** | [**[String]**](String.md)| Returns additional information about the guide. The following optional fields can be requested: * hasTopics - A flag indicating whether the guide already contains any topics. | [optional]
**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]
**orderBy** | [**[String]**](String.md)| A string to control the order of the entities returned in a list. You can use the **orderBy** parameter to sort the list by one or more fields. Each field has a default sort order, which is normally acending order. Read the API method implementation notes above to check if any fields used in this method have a descending default search order. To sort the entities in a specific order, you can use the **ASC** and **DESC** keywords for any field. | [optional]
**where** | **String**| A string to restrict the returned objects by using a predicate. Supported operations are AND, NOT, and OR. Fields to filter on: * enabled - e.g. (enabled &
[**ClassificationGuidePaging**](ClassificationGuidePaging.md)
[ ](../README.md
- **Content-Type**: application/json
- **Accept**: application/json
<a name="listSubtopics"></a>
> SubtopicPaging listSubtopics(topicId, , opts)
List all subtopics
Gets all subtopics of a topic.
### Example
```javascript
var topicId = "topicId_example"; // String | The identifier for the topic
var opts = {
'include': ["include_example"] // [String] | Returns additional information about the topic. The following optional fields can be requested: * hasSubtopics - A flag indicating whether the topic already contains any subtopics. * instruction - Contains details of any instruction in the topic. * path - An ordered list of id-name pairs of all ancestor topics and the classification guide. * classificationGuide - The classification guide this topic is in.
'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.
'orderBy': ["orderBy_example"], // [String] | A string to control the order of the entities returned in a list. You can use the **orderBy** parameter to sort the list by one or more fields. Each field has a default sort order, which is normally acending order. Read the API method implementation notes above to check if any fields used in this method have a descending default search order. To sort the entities in a specific order, you can use the **ASC** and **DESC** keywords for any field.
'where': "where_example", // String | A string to restrict the returned objects by using a predicate. Supported operations are AND, NOT, and OR. Fields to filter on: * hasInstruction * hasSubtopics
'includeSource': true // Boolean | Also include **source** in addition to **entries** with folder information on the parent guide/topic
};
this.alfrescoJsApi.gsClassification.classificationGuidesApi.listSubtopics(topicId, , opts).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
```
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**topicId** | **String**| The identifier for the topic |
**include** | [**[String]**](String.md)| Returns additional information about the topic. The following optional fields can be requested: * hasSubtopics - A flag indicating whether the topic already contains any subtopics. * instruction - Contains details of any instruction in the topic. * path - An ordered list of id-name pairs of all ancestor topics and the classification guide. * classificationGuide - The classification guide this topic is in. | [optional]
**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]
**orderBy** | [**[String]**](String.md)| A string to control the order of the entities returned in a list. You can use the **orderBy** parameter to sort the list by one or more fields. Each field has a default sort order, which is normally acending order. Read the API method implementation notes above to check if any fields used in this method have a descending default search order. To sort the entities in a specific order, you can use the **ASC** and **DESC** keywords for any field. | [optional]
**where** | **String**| A string to restrict the returned objects by using a predicate. Supported operations are AND, NOT, and OR. Fields to filter on: * hasInstruction * hasSubtopics | [optional]
**includeSource** | **Boolean**| Also include **source** in addition to **entries** with folder information on the parent guide/topic | [optional]
[**SubtopicPaging**](SubtopicPaging.md)
[ ](../README.md
- **Content-Type**: application/json
- **Accept**: application/json
<a name="listTopics"></a>
> TopicPaging listTopics(classificationGuideId, , opts)
List all topics
Gets all topics.
### Example
```javascript
var classificationGuideId = "classificationGuideId_example"; // String | The identifier for the classification guide
var opts = {
'include': ["include_example"] // [String] | Returns additional information about the topic. The following optional fields can be requested: * hasSubtopics - A flag indicating whether the topic already contains any subtopics. * instruction - Contains details of any instruction in the topic. * path - An ordered list of id-name pairs of all ancestor topics and the classification guide. * classificationGuide - The classification guide this topic is in.
'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.
'orderBy': ["orderBy_example"], // [String] | A string to control the order of the entities returned in a list. You can use the **orderBy** parameter to sort the list by one or more fields. Each field has a default sort order, which is normally acending order. Read the API method implementation notes above to check if any fields used in this method have a descending default search order. To sort the entities in a specific order, you can use the **ASC** and **DESC** keywords for any field.
'where': "where_example", // String | A string to restrict the returned objects by using a predicate. Supported operations are AND, NOT, and OR e.g. (instruction=true and hasSubtopics=false). Fields to filter on: * hasInstruction * hasSubtopics
'includeSource': true // Boolean | Also include **source** in addition to **entries** with folder information on the parent guide/topic
};
this.alfrescoJsApi.gsClassification.classificationGuidesApi.listTopics(classificationGuideId, , opts).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
```
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**classificationGuideId** | **String**| The identifier for the classification guide |
**include** | [**[String]**](String.md)| Returns additional information about the topic. The following optional fields can be requested: * hasSubtopics - A flag indicating whether the topic already contains any subtopics. * instruction - Contains details of any instruction in the topic. * path - An ordered list of id-name pairs of all ancestor topics and the classification guide. * classificationGuide - The classification guide this topic is in. | [optional]
**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]
**orderBy** | [**[String]**](String.md)| A string to control the order of the entities returned in a list. You can use the **orderBy** parameter to sort the list by one or more fields. Each field has a default sort order, which is normally acending order. Read the API method implementation notes above to check if any fields used in this method have a descending default search order. To sort the entities in a specific order, you can use the **ASC** and **DESC** keywords for any field. | [optional]
**where** | **String**| A string to restrict the returned objects by using a predicate. Supported operations are AND, NOT, and OR e.g. (instruction&
**includeSource** | **Boolean**| Also include **source** in addition to **entries** with folder information on the parent guide/topic | [optional]
[**TopicPaging**](TopicPaging.md)
[ ](../README.md
- **Content-Type**: application/json
- **Accept**: application/json
<a name="showClassificationGuideById"></a>
> ClassificationGuideEntry showClassificationGuideById(classificationGuideId, )
Get classification guide information
Gets the classification guide with id **classificationGuideId**.
### Example
```javascript
var classificationGuideId = "classificationGuideId_example"; // String | The identifier for the classification guide
this.alfrescoJsApi.gsClassification.classificationGuidesApi.showClassificationGuideById(classificationGuideId, ).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
```
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**classificationGuideId** | **String**| The identifier for the classification guide |
[**ClassificationGuideEntry**](ClassificationGuideEntry.md)
[ ](../README.md
- **Content-Type**: application/json
- **Accept**: application/json
<a name="showTopicById"></a>
> TopicEntry showTopicById(topicId, , opts)
Get topic information
Gets the topic with id **topicId**.
### Example
```javascript
var topicId = "topicId_example"; // String | The identifier for the topic
var opts = {
'include': ["include_example"] // [String] | Returns additional information about the topic. The following optional fields can be requested: * hasSubtopics - A flag indicating whether the topic already contains any subtopics. * instruction - Contains details of any instruction in the topic. * path - An ordered list of id-name pairs of all ancestor topics and the classification guide. * classificationGuide - The classification guide this topic is in.
};
this.alfrescoJsApi.gsClassification.classificationGuidesApi.showTopicById(topicId, , opts).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
```
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**topicId** | **String**| The identifier for the topic |
**include** | [**[String]**](String.md)| Returns additional information about the topic. The following optional fields can be requested: * hasSubtopics - A flag indicating whether the topic already contains any subtopics. * instruction - Contains details of any instruction in the topic. * path - An ordered list of id-name pairs of all ancestor topics and the classification guide. * classificationGuide - The classification guide this topic is in. | [optional]
[**TopicEntry**](TopicEntry.md)
[ ](../README.md
- **Content-Type**: application/json
- **Accept**: application/json
<a name="updateClassificationGuide"></a>
> ClassificationGuideEntry updateClassificationGuide(classificationGuideId, classificationGuide)
Update a classification guide
Updates the classification guide with id **classificationGuideId**. For example, you can rename a classification guide.
### Example
```javascript
var classificationGuideId = "classificationGuideId_example"; // String | The identifier for the classification guide
var classificationGuide = new AlfrescoGovernanceServicesSecurityControls.ClassificationGuideBody(); // ClassificationGuideBody | Classification guide
this.alfrescoJsApi.gsClassification.classificationGuidesApi.updateClassificationGuide(classificationGuideId, classificationGuide).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
```
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**classificationGuideId** | **String**| The identifier for the classification guide |
**classificationGuide** | [**ClassificationGuideBody**](ClassificationGuideBody.md)| Classification guide |
[**ClassificationGuideEntry**](ClassificationGuideEntry.md)
[ ](../README.md
- **Content-Type**: application/json
- **Accept**: application/json
<a name="updateTopic"></a>
> TopicEntry updateTopic(topicId, topic, opts)
Update a topic
Updates the topic with id **topicId**. Use this to rename a topic or to add, edit, or remove the instruction associated with it.
### Example
```javascript
var topicId = "topicId_example"; // String | The identifier for the topic
var topic = new AlfrescoGovernanceServicesSecurityControls.TopicBody(); // TopicBody | Topic
var opts = {
'include': ["include_example"] // [String] | Returns additional information about the topic. The following optional fields can be requested: * hasSubtopics - A flag indicating whether the topic already contains any subtopics. * instruction - Contains details of any instruction in the topic. * path - An ordered list of id-name pairs of all ancestor topics and the classification guide. * classificationGuide - The classification guide this topic is in.
};
this.alfrescoJsApi.gsClassification.classificationGuidesApi.updateTopic(topicId, topic, opts).then(function(data) {
console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
```
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**topicId** | **String**| The identifier for the topic |
**topic** | [**TopicBody**](TopicBody.md)| Topic |
**include** | [**[String]**](String.md)| Returns additional information about the topic. The following optional fields can be requested: * hasSubtopics - A flag indicating whether the topic already contains any subtopics. * instruction - Contains details of any instruction in the topic. * path - An ordered list of id-name pairs of all ancestor topics and the classification guide. * classificationGuide - The classification guide this topic is in. | [optional]
[**TopicEntry**](TopicEntry.md)
[ ](../README.md
- **Content-Type**: application/json
- **Accept**: application/json
All URIs are relative to *https: