Compare commits

...

19 Commits

Author SHA1 Message Date
29baa2a56a Merge branch 'develop-acs6' into stable-acs6 2021-08-31 13:41:55 -04:00
41379c3970 updated to commons-rest-api 1.1.x 2021-08-31 13:34:07 -04:00
3aed4d2e4e v1.0.6-v1-acs6 pom 2021-08-28 01:10:58 -04:00
5bcfd265da Merge branch 'develop-acs6' into stable-acs6 2021-08-28 01:10:44 -04:00
0724ee4d5b executed against ACS v6 2021-08-28 01:04:38 -04:00
0e8d522769 v1.0.5-v2 pom 2021-07-22 15:30:18 -04:00
7185dd225e using commons-rest-api v1.0.2 to fix jersey/put 2021-07-22 15:25:07 -04:00
1e4f420f47 v1.0.4-v2 2021-07-12 15:17:14 -04:00
64330e3ca4 Merge branch 'develop' into stable 2021-07-12 15:15:52 -04:00
8e538cfec5 v1.0.3-v2 & common v1.0.1 2021-07-07 11:08:54 -04:00
d0c1e92bce Merge branch 'develop' into stable 2021-07-07 11:08:15 -04:00
c879fa41b7 using commons version 2021-06-16 16:06:56 -04:00
10b8a4c982 v1.0.2-v2 pom 2021-06-16 16:05:52 -04:00
7dd7cc0fd4 Merge branch 'develop' into stable 2021-06-16 16:05:18 -04:00
e9ea115849 Merge branch 'develop' into stable 2021-06-04 13:32:24 -04:00
5741c77a45 v1.0.1-v2 pom 2021-06-04 12:24:29 -04:00
3bbda05066 Merge branch 'develop' into stable 2021-06-04 12:23:36 -04:00
cf1da9b6f1 Merge branch 'develop' into stable 2021-06-03 22:49:54 -04:00
1f48c3196f changed version for release 2021-06-03 21:22:20 -04:00
260 changed files with 356 additions and 2684 deletions

View File

@@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.inteligr8.alfresco</groupId>
<artifactId>acs-public-rest-api</artifactId>
<version>1.0-SNAPSHOT-v1-acs6</version>
<version>1.1.0-v1-acs6</version>
<name>Alfresco Content Services ReST API Client for Java</name>
<properties>
@@ -29,7 +29,7 @@
<dependency>
<groupId>com.inteligr8</groupId>
<artifactId>common-rest-api</artifactId>
<version>1.0-SNAPSHOT</version>
<version>1.1.0</version>
</dependency>
<dependency>
<groupId>io.swagger</groupId>

View File

@@ -1,59 +0,0 @@
package com.inteligr8.alfresco.acs.api;
import com.inteligr8.alfresco.acs.model.AspectEntry;
import com.inteligr8.alfresco.acs.model.AspectPaging;
import com.inteligr8.alfresco.acs.model.Error;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import java.util.List;
import javax.ws.rs.*;
/**
* Alfresco Content Services REST API
*
* <p>**Model API** Provides access to the model features of Alfresco Content Services.
*
*/
@Path("/api/-default-/public/alfresco/versions/1")
@Api(value = "/api/-default-/public/alfresco/versions/1", description = "")
public interface AspectsApi {
/**
* Get an aspect
*
* **Note:** This is available in Alfresco 7.0.0 and newer versions. Get information for aspect **aspectId**.
*
*/
@GET
@Path("/aspects/{aspectId}")
@Consumes({ "application/json" })
@Produces({ "application/json" })
@ApiOperation(value = "Get an aspect", tags={ })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "Successful response", response = AspectEntry.class),
@ApiResponse(code = 400, message = "Invalid parameter: unknown aspectId scheme specified "),
@ApiResponse(code = 401, message = "Authentication failed"),
@ApiResponse(code = 404, message = "**aspectId** does not exist "),
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
public AspectEntry getAspect(@PathParam("aspectId") String aspectId);
/**
* List aspects
*
* **Note:** This is available in Alfresco 7.0.0 and newer versions. Gets a list of aspects from the data dictionary. The System aspects will be ignored by default. &#x60;&#x60;&#x60;JSON { \&quot;list\&quot;: { \&quot;pagination\&quot;: { \&quot;count\&quot;: 0, \&quot;hasMoreItems\&quot;: true, \&quot;totalItems\&quot;: 0, \&quot;skipCount\&quot;: 0, \&quot;maxItems\&quot;: 0 }, \&quot;entries\&quot;: [ { \&quot;entry\&quot;: { \&quot;associations\&quot;: [], \&quot;mandatoryAspects\&quot;: [], \&quot;includedInSupertypeQuery\&quot;: true, \&quot;description\&quot;: \&quot;Titled\&quot;, \&quot;isContainer\&quot;: false, \&quot;model\&quot;: { \&quot;id\&quot;: \&quot;cm:contentmodel\&quot;, \&quot;author\&quot;: \&quot;Alfresco\&quot;, \&quot;description\&quot;: \&quot;Alfresco Content Domain Model\&quot;, \&quot;namespaceUri\&quot;: \&quot;http://www.alfresco.org/model/content/1.0\&quot;, \&quot;namespacePrefix\&quot;: \&quot;cm\&quot; }, \&quot;id\&quot;: \&quot;cm:titled\&quot;, \&quot;title\&quot;: \&quot;Titled\&quot;, \&quot;properties\&quot;: [ { \&quot;id\&quot;: \&quot;cm:title\&quot;, \&quot;title\&quot;: \&quot;Title\&quot;, \&quot;description\&quot;: \&quot;Content Title\&quot;, \&quot;dataType\&quot;: \&quot;d:mltext\&quot;, \&quot;isMultiValued\&quot;: false, \&quot;isMandatory\&quot;: false, \&quot;isMandatoryEnforced\&quot;: false, \&quot;isProtected\&quot;: false }, { ... } ] } }, { \&quot;entry\&quot;: { ... } }, { \&quot;entry\&quot;: { ... } }, ] } } &#x60;&#x60;&#x60;
*
*/
@GET
@Path("/aspects")
@Consumes({ "application/json" })
@Produces({ "application/json" })
@ApiOperation(value = "List aspects", tags={ })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "Successful response", response = AspectPaging.class),
@ApiResponse(code = 401, message = "Authentication failed"),
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
public AspectPaging listAspects(@QueryParam("where")String where, @QueryParam("skipCount")@DefaultValue("0") Integer skipCount, @QueryParam("maxItems")@DefaultValue("100") Integer maxItems, @QueryParam("include")List<String> include);
}

View File

@@ -26,7 +26,7 @@ public interface AuditApi {
/**
* Permanently delete audit entries for an audit application
*
* **Note:** this endpoint is available in Alfresco 5.2.2 and newer versions. Permanently delete audit entries for an audit application **auditApplicationId**. The **where** clause must be specified, either with an inclusive time period or for an inclusive range of ids. The delete is within the context of the given audit application. For example: * &#x60;&#x60;&#x60;where&#x3D;(createdAt BETWEEN (&#39;2017-06-02T12:13:51.593+01:00&#39; , &#39;2017-06-04T10:05:16.536+01:00&#39;)&#x60;&#x60;&#x60; * &#x60;&#x60;&#x60;where&#x3D;(id BETWEEN (&#39;1234&#39;, &#39;4321&#39;)&#x60;&#x60;&#x60; You must have admin rights to delete audit information.
* **Note:** this endpoint is available in Alfresco 5.2.2 and newer versions. Permanently delete audit entries for an audit application **auditApplicationId**. The **where** clause must be specified, either with an inclusive time period or for an inclusive range of ids. The delete is within the context of the given audit application. For example: * &#x60;&#x60;&#x60;where&#x3D;(createdAt BETWEEN (&#39;2017-06-02T12:13:51.593+01:00&#39; , &#39;2017-06-04T10:05:16.536+01:00&#39;)&#x60;&#x60;&#x60; * &#x60;&#x60;&#x60;where&#x3D;(id BETWEEN (&#39;1234&#39;, &#39;4321&#39;)&#x60;&#x60;&#x60; You must have admin rights to delete audit information.
*
*/
@DELETE
@@ -68,7 +68,7 @@ public interface AuditApi {
/**
* Get audit application info
*
* **Note:** this endpoint is available in Alfresco 5.2.2 and newer versions. Get status of an audit application **auditApplicationId**. You must have admin rights to retrieve audit information. You can use the **include** parameter to return the minimum and/or maximum audit record id for the application.
* **Note:** this endpoint is available in Alfresco 5.2.2 and newer versions. Get status of an audit application **auditApplicationId**. You must have admin rights to retrieve audit information. You can use the **include** parameter to return the minimum and/or maximum audit record id for the application.
*
*/
@GET
@@ -99,10 +99,10 @@ public interface AuditApi {
@ApiOperation(value = "Get audit entry", tags={ })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "Successful response", response = AuditEntryEntry.class),
@ApiResponse(code = 400, message = "Invalid parameter: **auditApplicationId** or **auditEntryId** is not a valid format "),
@ApiResponse(code = 400, message = "Invalid parameter: **auditApplicationId** or **auditEntryId** is not a valid format "),
@ApiResponse(code = 401, message = "Authentication failed"),
@ApiResponse(code = 403, message = "User does not have permission to retrieve audit information"),
@ApiResponse(code = 404, message = "**auditApplicationId** or **auditEntryId** does not exist "),
@ApiResponse(code = 404, message = "**auditApplicationId** or **auditEntryId** does not exist "),
@ApiResponse(code = 501, message = "Audit is disabled for the system"),
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
public AuditEntryEntry getAuditEntry(@PathParam("auditApplicationId") String auditApplicationId, @PathParam("auditEntryId") String auditEntryId, @QueryParam("fields")List<String> fields);
@@ -120,7 +120,7 @@ public interface AuditApi {
@ApiOperation(value = "List audit applications", tags={ })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "Successful response", response = AuditAppPaging.class),
@ApiResponse(code = 400, message = "Invalid parameter: value of **maxItems** or **skipCount** is invalid "),
@ApiResponse(code = 400, message = "Invalid parameter: value of **maxItems** or **skipCount** is invalid "),
@ApiResponse(code = 401, message = "Authentication failed"),
@ApiResponse(code = 403, message = "User does not have permission to retrieve audit information"),
@ApiResponse(code = 501, message = "Audit is disabled for the system"),
@@ -130,7 +130,7 @@ public interface AuditApi {
/**
* List audit entries for an audit application
*
* **Note:** this endpoint is available in Alfresco 5.2.2 and newer versions. Gets a list of audit entries for audit application **auditApplicationId**. You can use the **include** parameter to return additional **values** information. The list can be filtered by one or more of: * **createdByUser** person id * **createdAt** inclusive time period * **id** inclusive range of ids * **valuesKey** audit entry values contains the exact matching key * **valuesValue** audit entry values contains the exact matching value The default sort order is **createdAt** ascending, but you can use an optional **ASC** or **DESC** modifier to specify an ascending or descending sort order. For example, specifying &#x60;&#x60;&#x60;orderBy&#x3D;createdAt DESC&#x60;&#x60;&#x60; returns audit entries in descending **createdAt** order. You must have admin rights to retrieve audit information.
* **Note:** this endpoint is available in Alfresco 5.2.2 and newer versions. Gets a list of audit entries for audit application **auditApplicationId**. You can use the **include** parameter to return additional **values** information. The list can be filtered by one or more of: * **createdByUser** person id * **createdAt** inclusive time period * **id** inclusive range of ids * **valuesKey** audit entry values contains the exact matching key * **valuesValue** audit entry values contains the exact matching value The default sort order is **createdAt** ascending, but you can use an optional **ASC** or **DESC** modifier to specify an ascending or descending sort order. For example, specifying &#x60;&#x60;&#x60;orderBy&#x3D;createdAt DESC&#x60;&#x60;&#x60; returns audit entries in descending **createdAt** order. You must have admin rights to retrieve audit information.
*
*/
@GET
@@ -140,18 +140,18 @@ public interface AuditApi {
@ApiOperation(value = "List audit entries for an audit application", tags={ })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "Successful response", response = AuditEntryPaging.class),
@ApiResponse(code = 400, message = "Invalid parameter: *auditApplicationId** is not a valid format, value of **maxItems** or **skipCount** is invalid "),
@ApiResponse(code = 400, message = "Invalid parameter: *auditApplicationId** is not a valid format, value of **maxItems** or **skipCount** is invalid "),
@ApiResponse(code = 401, message = "Authentication failed"),
@ApiResponse(code = 403, message = "User does not have permission to retrieve audit information"),
@ApiResponse(code = 404, message = "**applicationId** does not exist "),
@ApiResponse(code = 404, message = "**applicationId** does not exist "),
@ApiResponse(code = 501, message = "Audit is disabled for the system"),
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
public AuditEntryPaging listAuditEntriesForAuditApp(@PathParam("auditApplicationId") String auditApplicationId, @QueryParam("skipCount")@DefaultValue("0") Integer skipCount, @QueryParam("omitTotalItems")@DefaultValue("false") Boolean omitTotalItems, @QueryParam("orderBy")List<String> orderBy, @QueryParam("maxItems")@DefaultValue("100") Integer maxItems, @QueryParam("where")String where, @QueryParam("include")List<String> include, @QueryParam("fields")List<String> fields);
public AuditEntryPaging listAuditEntriesForAuditApp(@PathParam("auditApplicationId") String auditApplicationId, @QueryParam("skipCount")@DefaultValue("0") Integer skipCount, @QueryParam("orderBy")List<String> orderBy, @QueryParam("maxItems")@DefaultValue("100") Integer maxItems, @QueryParam("where")String where, @QueryParam("include")List<String> include, @QueryParam("fields")List<String> fields);
/**
* List audit entries for a node
*
* **Note:** this endpoint is available in Alfresco 5.2.2 and newer versions. Gets a list of audit entries for node **nodeId**. The list can be filtered by **createdByUser** and for a given inclusive time period. The default sort order is **createdAt** ascending, but you can use an optional **ASC** or **DESC** modifier to specify an ascending or descending sort order. For example, specifying &#x60;&#x60;&#x60;orderBy&#x3D;createdAt DESC&#x60;&#x60;&#x60; returns audit entries in descending **createdAt** order. This relies on the pre-configured &#39;alfresco-access&#39; audit application.
* **Note:** this endpoint is available in Alfresco 5.2.2 and newer versions. Gets a list of audit entries for node **nodeId**. The list can be filtered by **createdByUser** and for a given inclusive time period. The default sort order is **createdAt** ascending, but you can use an optional **ASC** or **DESC** modifier to specify an ascending or descending sort order. For example, specifying &#x60;&#x60;&#x60;orderBy&#x3D;createdAt DESC&#x60;&#x60;&#x60; returns audit entries in descending **createdAt** order. This relies on the pre-configured &#39;alfresco-access&#39; audit application.
*
*/
@GET
@@ -161,10 +161,10 @@ public interface AuditApi {
@ApiOperation(value = "List audit entries for a node", tags={ })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "Successful response", response = AuditEntryPaging.class),
@ApiResponse(code = 400, message = "Invalid parameter: *nodeId** is not a valid format, value of **maxItems** or **skipCount** is invalid "),
@ApiResponse(code = 400, message = "Invalid parameter: *nodeId** is not a valid format, value of **maxItems** or **skipCount** is invalid "),
@ApiResponse(code = 401, message = "Authentication failed"),
@ApiResponse(code = 403, message = "User does not have permission to retrieve audit information"),
@ApiResponse(code = 404, message = "**nodeId** does not exist "),
@ApiResponse(code = 404, message = "**nodeId** does not exist "),
@ApiResponse(code = 501, message = "Audit is disabled for the system"),
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
public AuditEntryPaging listAuditEntriesForNode(@PathParam("nodeId") String nodeId, @QueryParam("skipCount")@DefaultValue("0") Integer skipCount, @QueryParam("orderBy")List<String> orderBy, @QueryParam("maxItems")@DefaultValue("100") Integer maxItems, @QueryParam("where")String where, @QueryParam("include")List<String> include, @QueryParam("fields")List<String> fields);
@@ -172,7 +172,7 @@ public interface AuditApi {
/**
* Update audit application info
*
* **Note:** this endpoint is available in Alfresco 5.2.2 and newer versions. Disable or re-enable the audit application **auditApplicationId**. New audit entries will not be created for a disabled audit application until it is re-enabled (and system-wide auditing is also enabled). Note, it is still possible to query &amp;/or delete any existing audit entries even if auditing is disabled for the audit application. You must have admin rights to update audit application.
* **Note:** this endpoint is available in Alfresco 5.2.2 and newer versions. Disable or re-enable the audit application **auditApplicationId**. New audit entries will not be created for a disabled audit application until it is re-enabled (and system-wide auditing is also enabled). Note, it is still possible to query &amp;/or delete any existing audit entries even if auditing is disabled for the audit application. You must have admin rights to update audit application.
*
*/
@PUT

View File

@@ -24,7 +24,7 @@ public interface CommentsApi {
/**
* Create a comment
*
* Creates a comment on node **nodeId**. You specify the comment in a JSON body like this: &#x60;&#x60;&#x60;JSON { \&quot;content\&quot;: \&quot;This is a comment\&quot; } &#x60;&#x60;&#x60; **Note:** You can create more than one comment by specifying a list of comments in the JSON body like this: &#x60;&#x60;&#x60;JSON [ { \&quot;content\&quot;: \&quot;This is a comment\&quot; }, { \&quot;content\&quot;: \&quot;This is another comment\&quot; } ] &#x60;&#x60;&#x60; If you specify a list as input, then a paginated list rather than an entry is returned in the response body. For example: &#x60;&#x60;&#x60;JSON { \&quot;list\&quot;: { \&quot;pagination\&quot;: { \&quot;count\&quot;: 2, \&quot;hasMoreItems\&quot;: false, \&quot;totalItems\&quot;: 2, \&quot;skipCount\&quot;: 0, \&quot;maxItems\&quot;: 100 }, \&quot;entries\&quot;: [ { \&quot;entry\&quot;: { ... } }, { \&quot;entry\&quot;: { ... } } ] } } &#x60;&#x60;&#x60;
* Creates a comment on node **nodeId**. You specify the comment in a JSON body like this: &#x60;&#x60;&#x60;JSON { \&quot;content\&quot;: \&quot;This is a comment\&quot; } &#x60;&#x60;&#x60; **Note:** You can create more than one comment by specifying a list of comments in the JSON body like this: &#x60;&#x60;&#x60;JSON [ { \&quot;content\&quot;: \&quot;This is a comment\&quot; }, { \&quot;content\&quot;: \&quot;This is another comment\&quot; } ] &#x60;&#x60;&#x60; If you specify a list as input, then a paginated list rather than an entry is returned in the response body. For example: &#x60;&#x60;&#x60;JSON { \&quot;list\&quot;: { \&quot;pagination\&quot;: { \&quot;count\&quot;: 2, \&quot;hasMoreItems\&quot;: false, \&quot;totalItems\&quot;: 2, \&quot;skipCount\&quot;: 0, \&quot;maxItems\&quot;: 100 }, \&quot;entries\&quot;: [ { \&quot;entry\&quot;: { ... } }, { \&quot;entry\&quot;: { ... } } ] } } &#x60;&#x60;&#x60;
*
*/
@POST
@@ -76,7 +76,7 @@ public interface CommentsApi {
@ApiOperation(value = "List comments", tags={ })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "Successful response", response = CommentPaging.class),
@ApiResponse(code = 400, message = "Invalid parameter: **nodeId** exists but does not identify a file or a folder, or the value of **maxItems** is invalid, or the value of **skipCount** is invalid "),
@ApiResponse(code = 400, message = "Invalid parameter: **nodeId** exists but does not identify a file or a folder, or the value of **maxItems** is invalid, or the value of **skipCount** is invalid "),
@ApiResponse(code = 401, message = "Authentication failed"),
@ApiResponse(code = 403, message = "User does not have permission read comments on the node"),
@ApiResponse(code = 404, message = "**nodeId** does not exist "),

View File

@@ -23,7 +23,7 @@ public interface DownloadsApi {
/**
* Cancel a download
*
* **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions. Cancels the creation of a download request. **Note:** The download node can be deleted using the **DELETE /nodes/{downloadId}** endpoint By default, if the download node is not deleted it will be picked up by a cleaner job which removes download nodes older than a configurable amount of time (default is 1 hour) Information about the existing progress at the time of cancelling can be retrieved by calling the **GET /downloads/{downloadId}** endpoint The cancel operation is done asynchronously.
* **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions. Cancels the creation of a download request. **Note:** The download node can be deleted using the **DELETE /nodes/{downloadId}** endpoint By default, if the download node is not deleted it will be picked up by a cleaner job which removes download nodes older than a configurable amount of time (default is 1 hour) Information about the existing progress at the time of cancelling can be retrieved by calling the **GET /downloads/{downloadId}** endpoint The cancel operation is done asynchronously.
*
*/
@DELETE
@@ -42,7 +42,7 @@ public interface DownloadsApi {
/**
* Create a new download
*
* **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions. Creates a new download node asynchronously, the content of which will be the zipped content of the **nodeIds** specified in the JSON body like this: &#x60;&#x60;&#x60;JSON { \&quot;nodeIds\&quot;: [ \&quot;c8bb482a-ff3c-4704-a3a3-de1c83ccd84c\&quot;, \&quot;cffa62db-aa01-493d-9594-058bc058eeb1\&quot; ] } &#x60;&#x60;&#x60; **Note:** The content of the download node can be obtained using the **GET /nodes/{downloadId}/content** endpoint
* **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions. Creates a new download node asynchronously, the content of which will be the zipped content of the **nodeIds** specified in the JSON body like this: &#x60;&#x60;&#x60;JSON { \&quot;nodeIds\&quot;: [ \&quot;c8bb482a-ff3c-4704-a3a3-de1c83ccd84c\&quot;, \&quot;cffa62db-aa01-493d-9594-058bc058eeb1\&quot; ] } &#x60;&#x60;&#x60; **Note:** The content of the download node can be obtained using the **GET /nodes/{downloadId}/content** endpoint
*
*/
@POST

View File

@@ -28,7 +28,7 @@ public interface FavoritesApi {
/**
* Create a favorite
*
* Favorite a **site**, **file**, or **folder** in the repository. You can use the &#x60;-me-&#x60; string in place of &#x60;&lt;personId&gt;&#x60; to specify the currently authenticated user. **Note:** You can favorite more than one entity by specifying a list of objects in the JSON body like this: &#x60;&#x60;&#x60;JSON [ { \&quot;target\&quot;: { \&quot;file\&quot;: { \&quot;guid\&quot;: \&quot;abcde-01234-....\&quot; } } }, { \&quot;target\&quot;: { \&quot;file\&quot;: { \&quot;guid\&quot;: \&quot;abcde-09863-....\&quot; } } }, ] &#x60;&#x60;&#x60; If you specify a list as input, then a paginated list rather than an entry is returned in the response body. For example: &#x60;&#x60;&#x60;JSON { \&quot;list\&quot;: { \&quot;pagination\&quot;: { \&quot;count\&quot;: 2, \&quot;hasMoreItems\&quot;: false, \&quot;totalItems\&quot;: 2, \&quot;skipCount\&quot;: 0, \&quot;maxItems\&quot;: 100 }, \&quot;entries\&quot;: [ { \&quot;entry\&quot;: { ... } }, { \&quot;entry\&quot;: { ... } } ] } } &#x60;&#x60;&#x60;
* Favorite a **site**, **file**, or **folder** in the repository. You can use the &#x60;-me-&#x60; string in place of &#x60;&lt;personId&gt;&#x60; to specify the currently authenticated user. **Note:** You can favorite more than one entity by specifying a list of objects in the JSON body like this: &#x60;&#x60;&#x60;JSON [ { \&quot;target\&quot;: { \&quot;file\&quot;: { \&quot;guid\&quot;: \&quot;abcde-01234-....\&quot; } } }, { \&quot;target\&quot;: { \&quot;file\&quot;: { \&quot;guid\&quot;: \&quot;abcde-09863-....\&quot; } } }, ] &#x60;&#x60;&#x60; If you specify a list as input, then a paginated list rather than an entry is returned in the response body. For example: &#x60;&#x60;&#x60;JSON { \&quot;list\&quot;: { \&quot;pagination\&quot;: { \&quot;count\&quot;: 2, \&quot;hasMoreItems\&quot;: false, \&quot;totalItems\&quot;: 2, \&quot;skipCount\&quot;: 0, \&quot;maxItems\&quot;: 100 }, \&quot;entries\&quot;: [ { \&quot;entry\&quot;: { ... } }, { \&quot;entry\&quot;: { ... } } ] } } &#x60;&#x60;&#x60;
*
*/
@POST
@@ -48,7 +48,7 @@ public interface FavoritesApi {
/**
* Create a site favorite
*
* **Note:** this endpoint is deprecated as of Alfresco 4.2, and will be removed in the future. Use &#x60;/people/{personId}/favorites&#x60; instead. Create a site favorite for person **personId**. You can use the &#x60;-me-&#x60; string in place of &#x60;&lt;personId&gt;&#x60; to specify the currently authenticated user. **Note:** You can favorite more than one site by specifying a list of sites in the JSON body like this: &#x60;&#x60;&#x60;JSON [ { \&quot;id\&quot;: \&quot;test-site-1\&quot; }, { \&quot;id\&quot;: \&quot;test-site-2\&quot; } ] &#x60;&#x60;&#x60; If you specify a list as input, then a paginated list rather than an entry is returned in the response body. For example: &#x60;&#x60;&#x60;JSON { \&quot;list\&quot;: { \&quot;pagination\&quot;: { \&quot;count\&quot;: 2, \&quot;hasMoreItems\&quot;: false, \&quot;totalItems\&quot;: 2, \&quot;skipCount\&quot;: 0, \&quot;maxItems\&quot;: 100 }, \&quot;entries\&quot;: [ { \&quot;entry\&quot;: { ... } }, { \&quot;entry\&quot;: { ... } } ] } } &#x60;&#x60;&#x60;
* **Note:** this endpoint is deprecated as of Alfresco 4.2, and will be removed in the future. Use &#x60;/people/{personId}/favorites&#x60; instead. Create a site favorite for person **personId**. You can use the &#x60;-me-&#x60; string in place of &#x60;&lt;personId&gt;&#x60; to specify the currently authenticated user. **Note:** You can favorite more than one site by specifying a list of sites in the JSON body like this: &#x60;&#x60;&#x60;JSON [ { \&quot;id\&quot;: \&quot;test-site-1\&quot; }, { \&quot;id\&quot;: \&quot;test-site-2\&quot; } ] &#x60;&#x60;&#x60; If you specify a list as input, then a paginated list rather than an entry is returned in the response body. For example: &#x60;&#x60;&#x60;JSON { \&quot;list\&quot;: { \&quot;pagination\&quot;: { \&quot;count\&quot;: 2, \&quot;hasMoreItems\&quot;: false, \&quot;totalItems\&quot;: 2, \&quot;skipCount\&quot;: 0, \&quot;maxItems\&quot;: 100 }, \&quot;entries\&quot;: [ { \&quot;entry\&quot;: { ... } }, { \&quot;entry\&quot;: { ... } } ] } } &#x60;&#x60;&#x60;
*
*/
@POST

View File

@@ -28,7 +28,7 @@ public interface GroupsApi {
/**
* Create a group
*
* **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions. Create a group. The group id must start with \&quot;GROUP\\_\&quot;. If this is omitted it will be added automatically. This format is also returned when listing groups or group memberships. It should be noted that the other group-related operations also expect the id to start with \&quot;GROUP\\_\&quot;. If one or more parentIds are specified then the group will be created and become a member of each of the specified parent groups. If no parentIds are specified then the group will be created as a root group. The group will be created in the **APP.DEFAULT** and **AUTH.ALF** zones. You must have admin rights to create a group.
* **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions. Create a group. The group id must start with \&quot;GROUP\\_\&quot;. If this is omitted it will be added automatically. This format is also returned when listing groups or group memberships. It should be noted that the other group-related operations also expect the id to start with \&quot;GROUP\\_\&quot;. If one or more parentIds are specified then the group will be created and become a member of each of the specified parent groups. If no parentIds are specified then the group will be created as a root group. The group will be created in the **APP.DEFAULT** and **AUTH.ALF** zones. You must have admin rights to create a group.
*
*/
@POST
@@ -70,7 +70,7 @@ public interface GroupsApi {
/**
* Delete a group
*
* **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions. Delete group **groupId**. The option to cascade delete applies this recursively to any hierarchy of group members. In this case, removing a group member does not delete the person or sub-group itself. If a removed sub-group no longer has any parent groups then it becomes a root group. You must have admin rights to delete a group.
* **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions. Delete group **groupId**. The option to cascade delete applies this recursively to any hierarchy of group members. In this case, removing a group member does not delete the person or sub-group itself. If a removed sub-group no longer has any parent groups then it becomes a root group. You must have admin rights to delete a group.
*
*/
@DELETE
@@ -151,7 +151,7 @@ public interface GroupsApi {
/**
* List group memberships
*
* **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions. Gets a list of group membership information for person **personId**. You can use the &#x60;-me-&#x60; string in place of &#x60;&lt;personId&gt;&#x60; to specify the currently authenticated user. You can use the **include** parameter to return additional information. You can use the **where** parameter to filter the returned groups by **isRoot**. For example, the following **where** clause will return just the root groups: &#x60;&#x60;&#x60; (isRoot&#x3D;true) &#x60;&#x60;&#x60; The **where** parameter can also be used to filter by ***zone***. This may be combined with isRoot to narrow a result set even further. For example, the following where clause will only return groups belonging to the &#x60;MY.ZONE&#x60; zone. &#x60;&#x60;&#x60; where&#x3D;(zones in (&#39;MY.ZONE&#39;)) &#x60;&#x60;&#x60; This may be combined with the isRoot filter, as shown below: &#x60;&#x60;&#x60; where&#x3D;(isRoot&#x3D;false AND zones in (&#39;MY.ZONE&#39;)) &#x60;&#x60;&#x60; ***Note:*** restrictions include * &#x60;AND&#x60; is the only supported operator when combining &#x60;isRoot&#x60; and &#x60;zones&#x60; filters * Only one zone is supported by the filter * The quoted zone name must be placed in parenthesis — a 400 error will result if these are omitted. The default sort order for the returned list is for groups to be sorted by ascending displayName. You can override the default by using the **orderBy** parameter. You can specify one or more of the following fields in the **orderBy** parameter: * id * displayName
* **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions. Gets a list of group membership information for person **personId**. You can use the &#x60;-me-&#x60; string in place of &#x60;&lt;personId&gt;&#x60; to specify the currently authenticated user. You can use the **include** parameter to return additional information. You can use the **where** parameter to filter the returned groups by **isRoot**. For example, the following **where** clause will return just the root groups: &#x60;&#x60;&#x60; (isRoot&#x3D;true) &#x60;&#x60;&#x60; The **where** parameter can also be used to filter by ***zone***. This may be combined with isRoot to narrow a result set even further. For example, the following where clause will only return groups belonging to the &#x60;MY.ZONE&#x60; zone. &#x60;&#x60;&#x60; where&#x3D;(zones in (&#39;MY.ZONE&#39;)) &#x60;&#x60;&#x60; This may be combined with the isRoot filter, as shown below: &#x60;&#x60;&#x60; where&#x3D;(isRoot&#x3D;false AND zones in (&#39;MY.ZONE&#39;)) &#x60;&#x60;&#x60; ***Note:*** restrictions include * &#x60;AND&#x60; is the only supported operator when combining &#x60;isRoot&#x60; and &#x60;zones&#x60; filters * Only one zone is supported by the filter * The quoted zone name must be placed in parenthesis — a 400 error will result if these are omitted. The default sort order for the returned list is for groups to be sorted by ascending displayName. You can override the default by using the **orderBy** parameter. You can specify one or more of the following fields in the **orderBy** parameter: * id * displayName
*
*/
@GET
@@ -170,7 +170,7 @@ public interface GroupsApi {
/**
* List groups
*
* **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions. Gets a list of groups. You can use the **include** parameter to return additional information. You can use the **where** parameter to filter the returned groups by **isRoot**. For example, the following **where** clause will return just the root groups: &#x60;&#x60;&#x60; (isRoot&#x3D;true) &#x60;&#x60;&#x60; The **where** parameter can also be used to filter by ***zone*** and ***displayName***. They may be combined with isRoot to narrow a result set even further. For example, the following where clause will only return groups belonging to the &#x60;MY.ZONE&#x60; zone. &#x60;&#x60;&#x60; where&#x3D;(zones in (&#39;MY.ZONE&#39;)) &#x60;&#x60;&#x60; This may be combined with the isRoot filter, as shown below: &#x60;&#x60;&#x60; where&#x3D;(isRoot&#x3D;false AND zones in (&#39;MY.ZONE&#39;)) &#x60;&#x60;&#x60; The following where clause will only return groups with displayName &#x60;MY.GROUP.NAME&#x60;. &#x60;&#x60;&#x60; where&#x3D;(displayName in (&#39;MY.GROUP.NAME&#39;)) &#x60;&#x60;&#x60; This may be combined with the isRoot and zones filter, as shown below: &#x60;&#x60;&#x60; where&#x3D;(isRoot&#x3D;false AND displayName in (&#39;MY.GROUP.NAME&#39;)) &#x60;&#x60;&#x60; &#x60;&#x60;&#x60; where&#x3D;(zones in (&#39;MY.ZONE&#39;) AND displayName in (&#39;MY.GROUP.NAME&#39;)) &#x60;&#x60;&#x60; &#x60;&#x60;&#x60; where&#x3D;(isRoot&#x3D;false AND zones in (&#39;MY.ZONE&#39;) AND displayName in (&#39;MY.GROUP.NAME&#39;)) &#x60;&#x60;&#x60; ***Note:*** restrictions include * &#x60;AND&#x60; is the only supported operator when combining &#x60;isRoot&#x60;, &#x60;zones&#x60; and &#x60;displayName&#x60; filters * Only one zone is supported by the filter * Only one displayName is supported by the filter * The quoted zone name and displayName must be placed in parenthesis — a 400 error will result if these are omitted. The default sort order for the returned list is for groups to be sorted by ascending displayName. You can override the default by using the **orderBy** parameter. You can specify one of the following fields in the **orderBy** parameter: * id * displayName
* **Note:** this endpoint is available in Alfresco 5.2.1 and newer versions. Gets a list of groups. You can use the **include** parameter to return additional information. You can use the **where** parameter to filter the returned groups by **isRoot**. For example, the following **where** clause will return just the root groups: &#x60;&#x60;&#x60; (isRoot&#x3D;true) &#x60;&#x60;&#x60; The **where** parameter can also be used to filter by ***zone***. This may be combined with isRoot to narrow a result set even further. For example, the following where clause will only return groups belonging to the &#x60;MY.ZONE&#x60; zone. &#x60;&#x60;&#x60; where&#x3D;(zones in (&#39;MY.ZONE&#39;)) &#x60;&#x60;&#x60; This may be combined with the isRoot filter, as shown below: &#x60;&#x60;&#x60; where&#x3D;(isRoot&#x3D;false AND zones in (&#39;MY.ZONE&#39;)) &#x60;&#x60;&#x60; ***Note:*** restrictions include * &#x60;AND&#x60; is the only supported operator when combining &#x60;isRoot&#x60; and &#x60;zones&#x60; filters * Only one zone is supported by the filter * The quoted zone name must be placed in parenthesis — a 400 error will result if these are omitted. The default sort order for the returned list is for groups to be sorted by ascending displayName. You can override the default by using the **orderBy** parameter. You can specify one of the following fields in the **orderBy** parameter: * id * displayName
*
*/
@GET

File diff suppressed because one or more lines are too long

View File

@@ -69,7 +69,7 @@ public interface PeopleApi {
/**
* Get avatar image
*
* **Note:** this endpoint is available in Alfresco 5.2.2 and newer versions. Gets the avatar image related to the person **personId**. If the person has no related avatar then the **placeholder** query parameter can be optionally used to request a placeholder image to be returned. You can use the &#x60;-me-&#x60; string in place of &#x60;&lt;personId&gt;&#x60; to specify the currently authenticated user.
* **Note:** this endpoint is available in Alfresco 5.2.2 and newer versions. Gets the avatar image related to the person **personId**. If the person has no related avatar then the **placeholder** query parameter can be optionally used to request a placeholder image to be returned. You can use the &#x60;-me-&#x60; string in place of &#x60;&lt;personId&gt;&#x60; to specify the currently authenticated user.
*
*/
@GET
@@ -157,7 +157,7 @@ public interface PeopleApi {
/**
* Update avatar image
*
* **Note:** this endpoint is available in Alfresco 5.2.2 and newer versions. Updates the avatar image related to the person **personId**. The request body should be the binary stream for the avatar image. The content type of the file should be an image file. This will be used to generate an \&quot;avatar\&quot; thumbnail rendition. You must be the person or have admin rights to update a person&#39;s avatar. You can use the &#x60;-me-&#x60; string in place of &#x60;&lt;personId&gt;&#x60; to specify the currently authenticated user.
* **Note:** this endpoint is available in Alfresco 5.2.2 and newer versions. Updates the avatar image related to the person **personId**. The request body should be the binary stream for the avatar image. The content type of the file should be an image file. This will be used to generate an \&quot;avatar\&quot; thumbnail rendition. You must be the person or have admin rights to update a person&#39;s avatar. You can use the &#x60;-me-&#x60; string in place of &#x60;&lt;personId&gt;&#x60; to specify the currently authenticated user.
*
*/
@PUT

View File

@@ -42,7 +42,7 @@ public interface PreferencesApi {
/**
* List preferences
*
* Gets a list of preferences for person **personId**. You can use the &#x60;-me-&#x60; string in place of &#x60;&lt;personId&gt;&#x60; to specify the currently authenticated user. Note that each preference consists of an **id** and a **value**. The **value** can be of any JSON type.
* Gets a list of preferences for person **personId**. You can use the &#x60;-me-&#x60; string in place of &#x60;&lt;personId&gt;&#x60; to specify the currently authenticated user. Note that each preference consists of an **id** and a **value**. The **value** can be of any JSON type.
*
*/
@GET

View File

@@ -43,7 +43,7 @@ public interface QueriesApi {
/**
* Find people
*
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Gets a list of people that match the given search criteria. The search term is used to look for matches against person id, firstname and lastname. The search term: - must contain a minimum of 2 alphanumeric characters - can optionally use &#39;*&#39; for wildcard matching within the term You can sort the result list using the **orderBy** parameter. You can specify one or more of the following fields in the **orderBy** parameter: * id * firstName * lastName
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Gets a list of people that match the given search criteria. The search term is used to look for matches against person id, firstname and lastname. The search term: - must contain a minimum of 2 alphanumeric characters - can optionally use &#39;*&#39; for wildcard matching within the term You can sort the result list using the **orderBy** parameter. You can specify one or more of the following fields in the **orderBy** parameter: * id * firstName * lastName
*
*/
@GET
@@ -61,7 +61,7 @@ public interface QueriesApi {
/**
* Find sites
*
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Gets a list of sites that match the given search criteria. The search term is used to look for sites that match against site id, title or description. The search term: - must contain a minimum of 2 alphanumeric characters - can optionally use &#39;*&#39; for wildcard matching within the term The default sort order for the returned list is for sites to be sorted by ascending id. You can override the default by using the **orderBy** parameter. You can specify one or more of the following fields in the **orderBy** parameter: * id * title * description
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Gets a list of sites that match the given search criteria. The search term is used to look for sites that match against site id, title or description. The search term: - must contain a minimum of 2 alphanumeric characters - can optionally use &#39;*&#39; for wildcard matching within the term The default sort order for the returned list is for sites to be sorted by ascending id. You can override the default by using the **orderBy** parameter. You can specify one or more of the following fields in the **orderBy** parameter: * id * title * description
*
*/
@GET

View File

@@ -91,7 +91,7 @@ public interface RenditionsApi {
/**
* List renditions
*
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Gets a list of the rendition information for each rendition of the the file **nodeId**, including the rendition id. Each rendition returned has a **status**: CREATED means it is available to view or download, NOT_CREATED means the rendition can be requested. You can use the **where** parameter to filter the returned renditions by **status**. For example, the following **where** clause will return just the CREATED renditions: &#x60;&#x60;&#x60; (status&#x3D;&#39;CREATED&#39;) &#x60;&#x60;&#x60;
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Gets a list of the rendition information for each rendition of the the file **nodeId**, including the rendition id. Each rendition returned has a **status**: CREATED means it is available to view or download, NOT_CREATED means the rendition can be requested. You can use the **where** parameter to filter the returned renditions by **status**. For example, the following **where** clause will return just the CREATED renditions: &#x60;&#x60;&#x60; (status&#x3D;&#39;CREATED&#39;) &#x60;&#x60;&#x60;
*
*/
@GET

File diff suppressed because one or more lines are too long

View File

@@ -29,7 +29,7 @@ public interface SharedLinksApi {
/**
* Create a shared link to a file
*
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Create a shared link to the file **nodeId** in the request body. Also, an optional expiry date could be set, so the shared link would become invalid when the expiry date is reached. For example: &#x60;&#x60;&#x60;JSON { \&quot;nodeId\&quot;: \&quot;1ff9da1a-ee2f-4b9c-8c34-3333333333\&quot;, \&quot;expiresAt\&quot;: \&quot;2017-03-23T23:00:00.000+0000\&quot; } &#x60;&#x60;&#x60; **Note:** You can create shared links to more than one file specifying a list of **nodeId**s in the JSON body like this: &#x60;&#x60;&#x60;JSON [ { \&quot;nodeId\&quot;: \&quot;1ff9da1a-ee2f-4b9c-8c34-4444444444\&quot; }, { \&quot;nodeId\&quot;: \&quot;1ff9da1a-ee2f-4b9c-8c34-5555555555\&quot; } ] &#x60;&#x60;&#x60; If you specify a list as input, then a paginated list rather than an entry is returned in the response body. For example: &#x60;&#x60;&#x60;JSON { \&quot;list\&quot;: { \&quot;pagination\&quot;: { \&quot;count\&quot;: 2, \&quot;hasMoreItems\&quot;: false, \&quot;totalItems\&quot;: 2, \&quot;skipCount\&quot;: 0, \&quot;maxItems\&quot;: 100 }, \&quot;entries\&quot;: [ { \&quot;entry\&quot;: { ... } }, { \&quot;entry\&quot;: { ... } } ] } } &#x60;&#x60;&#x60;
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Create a shared link to the file **nodeId** in the request body. Also, an optional expiry date could be set, so the shared link would become invalid when the expiry date is reached. For example: &#x60;&#x60;&#x60;JSON { \&quot;nodeId\&quot;: \&quot;1ff9da1a-ee2f-4b9c-8c34-3333333333\&quot;, \&quot;expiresAt\&quot;: \&quot;2017-03-23T23:00:00.000+0000\&quot; } &#x60;&#x60;&#x60; **Note:** You can create shared links to more than one file specifying a list of **nodeId**s in the JSON body like this: &#x60;&#x60;&#x60;JSON [ { \&quot;nodeId\&quot;: \&quot;1ff9da1a-ee2f-4b9c-8c34-4444444444\&quot; }, { \&quot;nodeId\&quot;: \&quot;1ff9da1a-ee2f-4b9c-8c34-5555555555\&quot; } ] &#x60;&#x60;&#x60; If you specify a list as input, then a paginated list rather than an entry is returned in the response body. For example: &#x60;&#x60;&#x60;JSON { \&quot;list\&quot;: { \&quot;pagination\&quot;: { \&quot;count\&quot;: 2, \&quot;hasMoreItems\&quot;: false, \&quot;totalItems\&quot;: 2, \&quot;skipCount\&quot;: 0, \&quot;maxItems\&quot;: 100 }, \&quot;entries\&quot;: [ { \&quot;entry\&quot;: { ... } }, { \&quot;entry\&quot;: { ... } } ] } } &#x60;&#x60;&#x60;
*
*/
@POST
@@ -133,7 +133,7 @@ public interface SharedLinksApi {
/**
* Get shared link rendition information
*
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Gets rendition information for the file with shared link identifier **sharedId**. This API method returns rendition information where the rendition status is CREATED, which means the rendition is available to view/download. **Note:** No authentication is required to call this endpoint.
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Gets rendition information for the file with shared link identifier **sharedId**. This API method returns rendition information where the rendition status is CREATED, which means the rendition is available to view/download. **Note:** No authentication is required to call this endpoint.
*
*/
@GET
@@ -174,7 +174,7 @@ public interface SharedLinksApi {
/**
* List renditions for a shared link
*
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Gets a list of the rendition information for the file with shared link identifier **sharedId**. This API method returns rendition information, including the rendition id, for each rendition where the rendition status is CREATED, which means the rendition is available to view/download. **Note:** No authentication is required to call this endpoint.
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Gets a list of the rendition information for the file with shared link identifier **sharedId**. This API method returns rendition information, including the rendition id, for each rendition where the rendition status is CREATED, which means the rendition is available to view/download. **Note:** No authentication is required to call this endpoint.
*
*/
@GET
@@ -203,7 +203,7 @@ public interface SharedLinksApi {
@ApiOperation(value = "List shared links", tags={ })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "Successful response", response = SharedLinkPaging.class),
@ApiResponse(code = 400, message = "Invalid parameter: value of **maxItems** or **skipCount** is invalid "),
@ApiResponse(code = 400, message = "Invalid parameter: value of **maxItems** or **skipCount** is invalid "),
@ApiResponse(code = 401, message = "Authentication failed"),
@ApiResponse(code = 501, message = "Shared links are disabled for the system"),
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })

View File

@@ -6,8 +6,6 @@ import com.inteligr8.alfresco.acs.model.SiteBodyUpdate;
import com.inteligr8.alfresco.acs.model.SiteContainerEntry;
import com.inteligr8.alfresco.acs.model.SiteContainerPaging;
import com.inteligr8.alfresco.acs.model.SiteEntry;
import com.inteligr8.alfresco.acs.model.SiteGroupEntry;
import com.inteligr8.alfresco.acs.model.SiteGroupPaging;
import com.inteligr8.alfresco.acs.model.SiteMemberEntry;
import com.inteligr8.alfresco.acs.model.SiteMemberPaging;
import com.inteligr8.alfresco.acs.model.SiteMembershipApprovalBody;
@@ -63,7 +61,7 @@ public interface SitesApi {
/**
* Create a site
*
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Creates a default site with the given details. Unless explicitly specified, the site id will be generated from the site title. The site id must be unique and only contain alphanumeric and/or dash characters. Note: the id of a site cannot be updated once the site has been created. For example, to create a public site called \&quot;Marketing\&quot; the following body could be used: &#x60;&#x60;&#x60;JSON { \&quot;title\&quot;: \&quot;Marketing\&quot;, \&quot;visibility\&quot;: \&quot;PUBLIC\&quot; } &#x60;&#x60;&#x60; The creation of the (surf) configuration files required by Share can be skipped via the **skipConfiguration** query parameter. **Note:** if skipped then such a site will **not** work within Share. The addition of the site to the user&#39;s site favorites can be skipped via the **skipAddToFavorites** query parameter. The creator will be added as a member with Site Manager role. When you create a site, a container called **documentLibrary** is created for you in the new site. This container is the root folder for content stored in the site.
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Creates a default site with the given details. Unless explicitly specified, the site id will be generated from the site title. The site id must be unique and only contain alphanumeric and/or dash characters. Note: the id of a site cannot be updated once the site has been created. For example, to create a public site called \&quot;Marketing\&quot; the following body could be used: &#x60;&#x60;&#x60;JSON { \&quot;title\&quot;: \&quot;Marketing\&quot;, \&quot;visibility\&quot;: \&quot;PUBLIC\&quot; } &#x60;&#x60;&#x60; The creation of the (surf) configuration files required by Share can be skipped via the **skipConfiguration** query parameter. **Note:** if skipped then such a site will **not** work within Share. The addition of the site to the user&#39;s site favorites can be skipped via the **skipAddToFavorites** query parameter. The creator will be added as a member with Site Manager role. When you create a site, a container called **documentLibrary** is created for you in the new site. This container is the root folder for content stored in the site.
*
*/
@POST
@@ -73,37 +71,16 @@ public interface SitesApi {
@ApiOperation(value = "Create a site", tags={ })
@ApiResponses(value = {
@ApiResponse(code = 201, message = "Successful response", response = SiteEntry.class),
@ApiResponse(code = 400, message = "Invalid parameter: **id**, **title**, or **description** exceed the maximum length; or **id** contains invalid characters; or **siteBodyCreate** invalid "),
@ApiResponse(code = 400, message = "Invalid parameter: **id**, **title**, or **description** exceed the maximum length; or **id** contains invalid characters; or **siteBodyCreate** invalid "),
@ApiResponse(code = 401, message = "Authentication failed"),
@ApiResponse(code = 409, message = "Site with the given identifier already exists"),
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
public SiteEntry createSite(SiteBodyCreate siteBodyCreate, @QueryParam("skipConfiguration")@DefaultValue("false") Boolean skipConfiguration, @QueryParam("skipAddToFavorites")@DefaultValue("false") Boolean skipAddToFavorites, @QueryParam("fields")List<String> fields);
/**
* Create a site membership for group
*
* **Note:** this endpoint is available in Alfresco 7.0.0 and newer versions. Creates a site membership for group **groupId** on site **siteId**. You can set the **role** to one of four types: * SiteConsumer * SiteCollaborator * SiteContributor * SiteManager **Note:** You can create more than one site membership by specifying a list of group in the JSON body like this: &#x60;&#x60;&#x60;JSON [ { \&quot;role\&quot;: \&quot;SiteConsumer\&quot;, \&quot;id\&quot;: \&quot;authorityId\&quot; }, { \&quot;role\&quot;: \&quot;SiteConsumer\&quot;, \&quot;id\&quot;: \&quot;authorityId\&quot; } ] &#x60;&#x60;&#x60; If you specify a list as input, then a paginated list rather than an entry is returned in the response body. For example: &#x60;&#x60;&#x60;JSON { \&quot;list\&quot;: { \&quot;pagination\&quot;: { \&quot;count\&quot;: 2, \&quot;hasMoreItems\&quot;: false, \&quot;totalItems\&quot;: 2, \&quot;skipCount\&quot;: 0, \&quot;maxItems\&quot;: 100 }, \&quot;entries\&quot;: [ { \&quot;entry\&quot;: { ... } }, { \&quot;entry\&quot;: { ... } } ] } } &#x60;&#x60;&#x60;
*
*/
@POST
@Path("/sites/{siteId}/group-members")
@Consumes({ "application/json" })
@Produces({ "application/json" })
@ApiOperation(value = "Create a site membership for group", tags={ })
@ApiResponses(value = {
@ApiResponse(code = 201, message = "Successful response", response = SiteGroupEntry.class),
@ApiResponse(code = 400, message = "Invalid parameter: value of **role** or **id** is invalid or **siteMembershipBodyCreate** invalid "),
@ApiResponse(code = 401, message = "Authentication failed"),
@ApiResponse(code = 403, message = "User does not have permission to invite a Group"),
@ApiResponse(code = 404, message = "**siteId** or **groupId** does not exist "),
@ApiResponse(code = 409, message = "Group with this **id** is already a member"),
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
public SiteGroupEntry createSiteGroupMembership(@PathParam("siteId") String siteId, SiteMembershipBodyCreate siteMembershipBodyCreate, @QueryParam("fields")List<String> fields);
/**
* Create a site membership
*
* Creates a site membership for person **personId** on site **siteId**. You can set the **role** to one of four types: * SiteConsumer * SiteCollaborator * SiteContributor * SiteManager **Note:** You can create more than one site membership by specifying a list of people in the JSON body like this: &#x60;&#x60;&#x60;JSON [ { \&quot;role\&quot;: \&quot;SiteConsumer\&quot;, \&quot;id\&quot;: \&quot;joe\&quot; }, { \&quot;role\&quot;: \&quot;SiteConsumer\&quot;, \&quot;id\&quot;: \&quot;fred\&quot; } ] &#x60;&#x60;&#x60; If you specify a list as input, then a paginated list rather than an entry is returned in the response body. For example: &#x60;&#x60;&#x60;JSON { \&quot;list\&quot;: { \&quot;pagination\&quot;: { \&quot;count\&quot;: 2, \&quot;hasMoreItems\&quot;: false, \&quot;totalItems\&quot;: 2, \&quot;skipCount\&quot;: 0, \&quot;maxItems\&quot;: 100 }, \&quot;entries\&quot;: [ { \&quot;entry\&quot;: { ... } }, { \&quot;entry\&quot;: { ... } } ] } } &#x60;&#x60;&#x60;
* Creates a site membership for person **personId** on site **siteId**. You can set the **role** to one of four types: * SiteConsumer * SiteCollaborator * SiteContributor * SiteManager **Note:** You can create more than one site membership by specifying a list of people in the JSON body like this: &#x60;&#x60;&#x60;JSON [ { \&quot;role\&quot;: \&quot;SiteConsumer\&quot;, \&quot;id\&quot;: \&quot;joe\&quot; }, { \&quot;role\&quot;: \&quot;SiteConsumer\&quot;, \&quot;id\&quot;: \&quot;fred\&quot; } ] &#x60;&#x60;&#x60; If you specify a list as input, then a paginated list rather than an entry is returned in the response body. For example: &#x60;&#x60;&#x60;JSON { \&quot;list\&quot;: { \&quot;pagination\&quot;: { \&quot;count\&quot;: 2, \&quot;hasMoreItems\&quot;: false, \&quot;totalItems\&quot;: 2, \&quot;skipCount\&quot;: 0, \&quot;maxItems\&quot;: 100 }, \&quot;entries\&quot;: [ { \&quot;entry\&quot;: { ... } }, { \&quot;entry\&quot;: { ... } } ] } } &#x60;&#x60;&#x60;
*
*/
@POST
@@ -124,7 +101,7 @@ public interface SitesApi {
/**
* Create a site membership request
*
* Create a site membership request for yourself on the site with the identifier of **id**, specified in the JSON body. The result of the request differs depending on the type of site. * For a **public** site, you join the site immediately as a SiteConsumer. * For a **moderated** site, your request is added to the site membership request list. The request waits for approval from the Site Manager. * You cannot request membership of a **private** site. Members are invited by the site administrator. You can use the &#x60;-me-&#x60; string in place of &#x60;&lt;personId&gt;&#x60; to specify the currently authenticated user. **Note:** You can create site membership requests for more than one site by specifying a list of sites in the JSON body like this: &#x60;&#x60;&#x60;JSON [ { \&quot;message\&quot;: \&quot;Please can you add me\&quot;, \&quot;id\&quot;: \&quot;test-site-1\&quot;, \&quot;title\&quot;: \&quot;Request for test site 1\&quot;, }, { \&quot;message\&quot;: \&quot;Please can you add me\&quot;, \&quot;id\&quot;: \&quot;test-site-2\&quot;, \&quot;title\&quot;: \&quot;Request for test site 2\&quot;, } ] &#x60;&#x60;&#x60; If you specify a list as input, then a paginated list rather than an entry is returned in the response body. For example: &#x60;&#x60;&#x60;JSON { \&quot;list\&quot;: { \&quot;pagination\&quot;: { \&quot;count\&quot;: 2, \&quot;hasMoreItems\&quot;: false, \&quot;totalItems\&quot;: 2, \&quot;skipCount\&quot;: 0, \&quot;maxItems\&quot;: 100 }, \&quot;entries\&quot;: [ { \&quot;entry\&quot;: { ... } }, { \&quot;entry\&quot;: { ... } } ] } } &#x60;&#x60;&#x60;
* Create a site membership request for yourself on the site with the identifier of **id**, specified in the JSON body. The result of the request differs depending on the type of site. * For a **public** site, you join the site immediately as a SiteConsumer. * For a **moderated** site, your request is added to the site membership request list. The request waits for approval from the Site Manager. * You cannot request membership of a **private** site. Members are invited by the site administrator. You can use the &#x60;-me-&#x60; string in place of &#x60;&lt;personId&gt;&#x60; to specify the currently authenticated user. **Note:** You can create site membership requests for more than one site by specifying a list of sites in the JSON body like this: &#x60;&#x60;&#x60;JSON [ { \&quot;message\&quot;: \&quot;Please can you add me\&quot;, \&quot;id\&quot;: \&quot;test-site-1\&quot;, \&quot;title\&quot;: \&quot;Request for test site 1\&quot;, }, { \&quot;message\&quot;: \&quot;Please can you add me\&quot;, \&quot;id\&quot;: \&quot;test-site-2\&quot;, \&quot;title\&quot;: \&quot;Request for test site 2\&quot;, } ] &#x60;&#x60;&#x60; If you specify a list as input, then a paginated list rather than an entry is returned in the response body. For example: &#x60;&#x60;&#x60;JSON { \&quot;list\&quot;: { \&quot;pagination\&quot;: { \&quot;count\&quot;: 2, \&quot;hasMoreItems\&quot;: false, \&quot;totalItems\&quot;: 2, \&quot;skipCount\&quot;: 0, \&quot;maxItems\&quot;: 100 }, \&quot;entries\&quot;: [ { \&quot;entry\&quot;: { ... } }, { \&quot;entry\&quot;: { ... } } ] } } &#x60;&#x60;&#x60;
*
*/
@POST
@@ -159,25 +136,6 @@ public interface SitesApi {
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
public void deleteSite(@PathParam("siteId") String siteId, @QueryParam("permanent")@DefaultValue("false") Boolean permanent);
/**
* Delete a group membership for site
*
* **Note:** this endpoint is available in Alfresco 7.0.0 and newer versions. Deletes group **groupId** as a member of site **siteId**.
*
*/
@DELETE
@Path("/sites/{siteId}/group-members/{groupId}")
@Consumes({ "application/json" })
@Produces({ "application/json" })
@ApiOperation(value = "Delete a group membership for site", tags={ })
@ApiResponses(value = {
@ApiResponse(code = 204, message = "Successful response"),
@ApiResponse(code = 401, message = "Authentication failed"),
@ApiResponse(code = 404, message = "**siteId** or **groupId** does not exist "),
@ApiResponse(code = 422, message = "Integrity exception (eg. last site member must be a site manager) or not allowed to delete groupId"),
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
public void deleteSiteGroupMembership(@PathParam("siteId") String siteId, @PathParam("groupId") String groupId);
/**
* Delete a site membership
*
@@ -269,24 +227,6 @@ public interface SitesApi {
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
public SiteContainerEntry getSiteContainer(@PathParam("siteId") String siteId, @PathParam("containerId") String containerId, @QueryParam("fields")List<String> fields);
/**
* Get information about site membership of group
*
* **Note:** this endpoint is available in Alfresco 7.0.0 and newer versions. Gets site membership information for group **groupId** on site **siteId**.
*
*/
@GET
@Path("/sites/{siteId}/group-members/{groupId}")
@Consumes({ "application/json" })
@Produces({ "application/json" })
@ApiOperation(value = "Get information about site membership of group", tags={ })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "Successful response", response = SiteGroupEntry.class),
@ApiResponse(code = 401, message = "Authentication failed"),
@ApiResponse(code = 404, message = "**siteId** or **groupId** does not exist "),
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
public SiteGroupEntry getSiteGroupMembership(@PathParam("siteId") String siteId, @PathParam("groupId") String groupId, @QueryParam("fields")List<String> fields);
/**
* Get a site membership
*
@@ -378,25 +318,6 @@ public interface SitesApi {
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
public SiteContainerPaging listSiteContainers(@PathParam("siteId") String siteId, @QueryParam("skipCount")@DefaultValue("0") Integer skipCount, @QueryParam("maxItems")@DefaultValue("100") Integer maxItems, @QueryParam("fields")List<String> fields);
/**
* List group membership for site
*
* **Note:** this endpoint is available in Alfresco 7.0.0 and newer versions. Gets a list of group membership for site **siteId**.
*
*/
@GET
@Path("/sites/{siteId}/group-members")
@Consumes({ "application/json" })
@Produces({ "application/json" })
@ApiOperation(value = "List group membership for site", tags={ })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "Successful response", response = SiteGroupPaging.class),
@ApiResponse(code = 400, message = "Invalid parameter: value of **maxItems** or **skipCount** is invalid "),
@ApiResponse(code = 401, message = "Authentication failed"),
@ApiResponse(code = 404, message = "**siteId** does not exist "),
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
public SiteGroupPaging listSiteGroups(@PathParam("siteId") String siteId, @QueryParam("skipCount")@DefaultValue("0") Integer skipCount, @QueryParam("maxItems")@DefaultValue("100") Integer maxItems, @QueryParam("fields")List<String> fields);
/**
* List site membership requests
*
@@ -433,7 +354,7 @@ public interface SitesApi {
@ApiResponse(code = 401, message = "Authentication failed"),
@ApiResponse(code = 404, message = "**siteId** does not exist "),
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
public SiteMemberPaging listSiteMemberships(@PathParam("siteId") String siteId, @QueryParam("skipCount")@DefaultValue("0") Integer skipCount, @QueryParam("maxItems")@DefaultValue("100") Integer maxItems, @QueryParam("fields")List<String> fields, @QueryParam("where")String where);
public SiteMemberPaging listSiteMemberships(@PathParam("siteId") String siteId, @QueryParam("skipCount")@DefaultValue("0") Integer skipCount, @QueryParam("maxItems")@DefaultValue("100") Integer maxItems, @QueryParam("fields")List<String> fields);
/**
* List site memberships
@@ -496,7 +417,7 @@ public interface SitesApi {
/**
* Update a site
*
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Update the details for the given site **siteId**. Site Manager or otherwise a (site) admin can update title, description or visibility. Note: the id of a site cannot be updated once the site has been created.
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Update the details for the given site **siteId**. Site Manager or otherwise a (site) admin can update title, description or visibility. Note: the id of a site cannot be updated once the site has been created.
*
*/
@PUT
@@ -513,26 +434,6 @@ public interface SitesApi {
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
public SiteEntry updateSite(@PathParam("siteId") String siteId, SiteBodyUpdate siteBodyUpdate, @QueryParam("fields")List<String> fields);
/**
* Update site membership of group
*
* **Note:** this endpoint is available in Alfresco 7.0.0 and newer versions. Update the membership of person **groupId** in site **siteId**. You can set the **role** to one of four types: * SiteConsumer * SiteCollaborator * SiteContributor * SiteManager
*
*/
@PUT
@Path("/sites/{siteId}/group-members/{groupId}")
@Consumes({ "application/json" })
@Produces({ "application/json" })
@ApiOperation(value = "Update site membership of group", tags={ })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "Successful response", response = SiteGroupEntry.class),
@ApiResponse(code = 400, message = "Invalid parameter: **role** does not exist or **siteMembershipBodyUpdate** invalid "),
@ApiResponse(code = 401, message = "Authentication failed"),
@ApiResponse(code = 404, message = "**siteId** or **groupId** does not exist "),
@ApiResponse(code = 422, message = "Integrity exception (eg. last site member must be a site manager) or not allowed to update group"),
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
public SiteGroupEntry updateSiteGroupMembership(@PathParam("siteId") String siteId, @PathParam("groupId") String groupId, SiteMembershipBodyUpdate siteMembershipBodyUpdate, @QueryParam("fields")List<String> fields);
/**
* Update a site membership
*

View File

@@ -24,7 +24,7 @@ public interface TagsApi {
/**
* Create a tag for a node
*
* Creates a tag on the node **nodeId**. You specify the tag in a JSON body like this: &#x60;&#x60;&#x60;JSON { \&quot;tag\&quot;:\&quot;test-tag-1\&quot; } &#x60;&#x60;&#x60; **Note:** You can create more than one tag by specifying a list of tags in the JSON body like this: &#x60;&#x60;&#x60;JSON [ { \&quot;tag\&quot;:\&quot;test-tag-1\&quot; }, { \&quot;tag\&quot;:\&quot;test-tag-2\&quot; } ] &#x60;&#x60;&#x60; If you specify a list as input, then a paginated list rather than an entry is returned in the response body. For example: &#x60;&#x60;&#x60;JSON { \&quot;list\&quot;: { \&quot;pagination\&quot;: { \&quot;count\&quot;: 2, \&quot;hasMoreItems\&quot;: false, \&quot;totalItems\&quot;: 2, \&quot;skipCount\&quot;: 0, \&quot;maxItems\&quot;: 100 }, \&quot;entries\&quot;: [ { \&quot;entry\&quot;: { ... } }, { \&quot;entry\&quot;: { ... } } ] } } &#x60;&#x60;&#x60;
* Creates a tag on the node **nodeId**. You specify the tag in a JSON body like this: &#x60;&#x60;&#x60;JSON { \&quot;tag\&quot;:\&quot;test-tag-1\&quot; } &#x60;&#x60;&#x60; **Note:** You can create more than one tag by specifying a list of tags in the JSON body like this: &#x60;&#x60;&#x60;JSON [ { \&quot;tag\&quot;:\&quot;test-tag-1\&quot; }, { \&quot;tag\&quot;:\&quot;test-tag-2\&quot; } ] &#x60;&#x60;&#x60; If you specify a list as input, then a paginated list rather than an entry is returned in the response body. For example: &#x60;&#x60;&#x60;JSON { \&quot;list\&quot;: { \&quot;pagination\&quot;: { \&quot;count\&quot;: 2, \&quot;hasMoreItems\&quot;: false, \&quot;totalItems\&quot;: 2, \&quot;skipCount\&quot;: 0, \&quot;maxItems\&quot;: 100 }, \&quot;entries\&quot;: [ { \&quot;entry\&quot;: { ... } }, { \&quot;entry\&quot;: { ... } } ] } } &#x60;&#x60;&#x60;
*
*/
@POST
@@ -37,7 +37,7 @@ public interface TagsApi {
@ApiResponse(code = 400, message = "Invalid parameter: **tagBodyCreate** is invalid "),
@ApiResponse(code = 401, message = "Authentication failed"),
@ApiResponse(code = 403, message = "User does not have permission to create tags on the node"),
@ApiResponse(code = 404, message = "**nodeId** does not exist "),
@ApiResponse(code = 404, message = "**nodeId** does not exist "),
@ApiResponse(code = 405, message = "Cannot tag a node of this type"),
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
public TagEntry createTagForNode(@PathParam("nodeId") String nodeId, TagBody tagBodyCreate, @QueryParam("fields")List<String> fields);

View File

@@ -39,7 +39,7 @@ public interface TrashcanApi {
@ApiOperation(value = "Permanently delete a deleted node", tags={ })
@ApiResponses(value = {
@ApiResponse(code = 204, message = "Successful response"),
@ApiResponse(code = 400, message = "Invalid parameter: **nodeId** is not a valid format "),
@ApiResponse(code = 400, message = "Invalid parameter: **nodeId** is not a valid format "),
@ApiResponse(code = 401, message = "Authentication failed"),
@ApiResponse(code = 403, message = "User does not have permission to permanently delete the deleted node"),
@ApiResponse(code = 404, message = "**nodeId** does not exist "),
@@ -173,7 +173,7 @@ public interface TrashcanApi {
/**
* Restore a deleted node
*
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Attempts to restore the deleted node **nodeId** to its original location or to a new location. If the node is successfully restored to its former primary parent, then only the primary child association will be restored, including recursively for any primary children. It should be noted that no other secondary child associations or peer associations will be restored, for any of the nodes within the primary parent-child hierarchy of restored nodes, irrespective of whether these associations were to nodes within or outside of the restored hierarchy. Also, any previously shared link will not be restored since it is deleted at the time of delete of each node.
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Attempts to restore the deleted node **nodeId** to its original location or to a new location. If the node is successfully restored to its former primary parent, then only the primary child association will be restored, including recursively for any primary children. It should be noted that no other secondary child associations or peer associations will be restored, for any of the nodes within the primary parent-child hierarchy of restored nodes, irrespective of whether these associations were to nodes within or outside of the restored hierarchy. Also, any previously shared link will not be restored since it is deleted at the time of delete of each node.
*
*/
@POST
@@ -183,7 +183,7 @@ public interface TrashcanApi {
@ApiOperation(value = "Restore a deleted node", tags={ })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "Successful response", response = NodeEntry.class),
@ApiResponse(code = 400, message = "Invalid parameter: **nodeId** or **targetNodeId** is not a valid format "),
@ApiResponse(code = 400, message = "Invalid parameter: **nodeId** or **targetNodeId** is not a valid format "),
@ApiResponse(code = 401, message = "Authentication failed"),
@ApiResponse(code = 403, message = "User does not have permission to restore the deleted node or user does not have permission to the target node"),
@ApiResponse(code = 404, message = "**nodeId** does not exist or the restore destination parent node does not exists "),

View File

@@ -1,59 +0,0 @@
package com.inteligr8.alfresco.acs.api;
import com.inteligr8.alfresco.acs.model.Error;
import com.inteligr8.alfresco.acs.model.TypeEntry;
import com.inteligr8.alfresco.acs.model.TypePaging;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import java.util.List;
import javax.ws.rs.*;
/**
* Alfresco Content Services REST API
*
* <p>**Model API** Provides access to the model features of Alfresco Content Services.
*
*/
@Path("/api/-default-/public/alfresco/versions/1")
@Api(value = "/api/-default-/public/alfresco/versions/1", description = "")
public interface TypesApi {
/**
* Get a type
*
* **Note:** This is available in Alfresco 7.0.0 and newer versions. Get information for type **typeId**.
*
*/
@GET
@Path("/types/{typeId}")
@Consumes({ "application/json" })
@Produces({ "application/json" })
@ApiOperation(value = "Get a type", tags={ })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "Successful response", response = TypeEntry.class),
@ApiResponse(code = 400, message = "Invalid parameter: unknown typeId scheme specified "),
@ApiResponse(code = 401, message = "Authentication failed"),
@ApiResponse(code = 404, message = "**typeId** does not exist "),
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
public TypeEntry getType(@PathParam("typeId") String typeId);
/**
* List types
*
* **Note:** This is available in Alfresco 7.0.0 and newer versions. Gets a list of types from the data dictionary. The System types will be ignored by default. &#x60;&#x60;&#x60;JSON { \&quot;list\&quot;: { \&quot;pagination\&quot;: { \&quot;count\&quot;: 0, \&quot;hasMoreItems\&quot;: true, \&quot;totalItems\&quot;: 0, \&quot;skipCount\&quot;: 0, \&quot;maxItems\&quot;: 0 }, \&quot;entries\&quot;: [ { \&quot;entry\&quot;: { \&quot;associations\&quot;: [], \&quot;isArchive\&quot;: true, \&quot;mandatoryAspects\&quot;: [ \&quot;cm:auditable\&quot;, \&quot;sys:referenceable\&quot;, \&quot;sys:localized\&quot; ], \&quot;includedInSupertypeQuery\&quot;: true, \&quot;description\&quot;: \&quot;Base Content Object\&quot;, \&quot;isContainer\&quot;: false, \&quot;model\&quot;: { \&quot;id\&quot;: \&quot;cm:contentmodel\&quot;, \&quot;author\&quot;: \&quot;Alfresco\&quot;, \&quot;description\&quot;: \&quot;Alfresco Content Domain Model\&quot;, \&quot;namespaceUri\&quot;: \&quot;http://www.alfresco.org/model/content/1.0\&quot;, \&quot;namespacePrefix\&quot;: \&quot;cm\&quot; }, \&quot;id\&quot;: \&quot;cm:content\&quot;, \&quot;title\&quot;: \&quot;Content\&quot;, \&quot;parentId\&quot;: \&quot;cm:cmobject\&quot; \&quot;properties\&quot;: [ { \&quot;id\&quot;: \&quot;cm:name\&quot;, \&quot;title\&quot;: \&quot;Name\&quot;, \&quot;description\&quot;: \&quot;Name\&quot;, \&quot;dataType\&quot;: \&quot;d:text\&quot;, \&quot;isMultiValued\&quot;: false, \&quot;isMandatory\&quot;: true, \&quot;isMandatoryEnforced\&quot;: true \&quot;isProtected\&quot;: false ... }, { ... } ] } }, { \&quot;entry\&quot;: { ... } }, { \&quot;entry\&quot;: { ... } }, ] } } &#x60;&#x60;&#x60;
*
*/
@GET
@Path("/types")
@Consumes({ "application/json" })
@Produces({ "application/json" })
@ApiOperation(value = "List types", tags={ })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "Successful response", response = TypePaging.class),
@ApiResponse(code = 401, message = "Authentication failed"),
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
public TypePaging listTypes(@QueryParam("where")String where, @QueryParam("skipCount")@DefaultValue("0") Integer skipCount, @QueryParam("maxItems")@DefaultValue("100") Integer maxItems, @QueryParam("include")List<String> include);
}

View File

@@ -1,9 +1,6 @@
package com.inteligr8.alfresco.acs.api;
import com.inteligr8.alfresco.acs.model.Error;
import com.inteligr8.alfresco.acs.model.RenditionBodyCreate;
import com.inteligr8.alfresco.acs.model.RenditionEntry;
import com.inteligr8.alfresco.acs.model.RenditionPaging;
import com.inteligr8.alfresco.acs.model.RevertBody;
import com.inteligr8.alfresco.acs.model.VersionEntry;
import com.inteligr8.alfresco.acs.model.VersionPaging;
@@ -26,32 +23,10 @@ import javax.ws.rs.*;
@Api(value = "/api/-default-/public/alfresco/versions/1", description = "")
public interface VersionsApi {
/**
* Create rendition for a file version
*
* **Note:** this endpoint is available in Alfresco 7.0.0 and newer versions. An asynchronous request to create a rendition for version of file **nodeId** and **versionId**. The version rendition is specified by name **id** in the request body: &#x60;&#x60;&#x60;JSON { \&quot;id\&quot;:\&quot;doclib\&quot; } &#x60;&#x60;&#x60; Multiple names may be specified as a comma separated list or using a list format: &#x60;&#x60;&#x60;JSON [ { \&quot;id\&quot;: \&quot;doclib\&quot; }, { \&quot;id\&quot;: \&quot;avatar\&quot; } ] &#x60;&#x60;&#x60;
*
*/
@POST
@Path("/nodes/{nodeId}/versions/{versionId}/renditions")
@Consumes({ "application/json" })
@Produces({ "application/json" })
@ApiOperation(value = "Create rendition for a file version", tags={ })
@ApiResponses(value = {
@ApiResponse(code = 202, message = "Request accepted"),
@ApiResponse(code = 400, message = "Invalid parameter: **nodeId** is not a valid format, or is not a file, or **versionId** is invalid, or **renditionBodyCreate** is invalid "),
@ApiResponse(code = 401, message = "Authentication failed"),
@ApiResponse(code = 403, message = "Current user does not have permission for **nodeId**"),
@ApiResponse(code = 404, message = "**nodeId** or **versionId** or **renditionId** does not exist "),
@ApiResponse(code = 409, message = "All requested renditions already exist"),
@ApiResponse(code = 501, message = "Renditions/thumbnails are disabled for the system"),
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
public void createVersionRendition(@PathParam("nodeId") String nodeId, @PathParam("versionId") String versionId, RenditionBodyCreate renditionBodyCreate);
/**
* Delete a version
*
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Delete the version identified by **versionId** and **nodeId*. If the version is successfully deleted then the content and metadata for that versioned node will be deleted and will no longer appear in the version history. This operation cannot be undone. If the most recent version is deleted the live node will revert to the next most recent version. We currently do not allow the last version to be deleted. If you wish to clear the history then you can remove the \&quot;cm:versionable\&quot; aspect (via update node) which will also disable versioning. In this case, you can re-enable versioning by adding back the \&quot;cm:versionable\&quot; aspect or using the version params (majorVersion and comment) on a subsequent file content update.
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Delete the version identified by **versionId** and **nodeId*. If the version is successfully deleted then the content and metadata for that versioned node will be deleted and will no longer appear in the version history. This operation cannot be undone. If the most recent version is deleted the live node will revert to the next most recent version. We currently do not allow the last version to be deleted. If you wish to clear the history then you can remove the \&quot;cm:versionable\&quot; aspect (via update node) which will also disable versioning. In this case, you can re-enable versioning by adding back the \&quot;cm:versionable\&quot; aspect or using the version params (majorVersion and comment) on a subsequent file content update.
*
*/
@DELETE
@@ -61,7 +36,7 @@ public interface VersionsApi {
@ApiOperation(value = "Delete a version", tags={ })
@ApiResponses(value = {
@ApiResponse(code = 204, message = "Successful response"),
@ApiResponse(code = 400, message = "Invalid parameter: **nodeId** is not a valid format, or exists but does not identify a file, or **versionId** is invalid "),
@ApiResponse(code = 400, message = "Invalid parameter: **nodeId** is not a valid format, or exists but does not identify a file, or **versionId** is invalid "),
@ApiResponse(code = 401, message = "Authentication failed"),
@ApiResponse(code = 403, message = "Current user does not have permission to delete the versioned node"),
@ApiResponse(code = 404, message = "**nodeId** or **versionId** does not exist "),
@@ -112,53 +87,10 @@ public interface VersionsApi {
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
public File getVersionContent(@PathParam("nodeId") String nodeId, @PathParam("versionId") String versionId, @QueryParam("attachment")@DefaultValue("true") Boolean attachment, @HeaderParam("If-Modified-Since") Date ifModifiedSince, @HeaderParam("Range") String range);
/**
* Get rendition information for a file version
*
* **Note:** this endpoint is available in Alfresco 7.0.0 and newer versions. Gets the rendition information for **renditionId** of version of file **nodeId** and **versionId**.
*
*/
@GET
@Path("/nodes/{nodeId}/versions/{versionId}/renditions/{renditionId}")
@Consumes({ "application/json" })
@Produces({ "application/json" })
@ApiOperation(value = "Get rendition information for a file version", tags={ })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "Successful response", response = RenditionEntry.class),
@ApiResponse(code = 400, message = "Invalid parameter: **nodeId** is not a valid format, or is not a file, or **versionId** is invalid, or **renditionId** is invalid "),
@ApiResponse(code = 401, message = "Authentication failed"),
@ApiResponse(code = 403, message = "Current user does not have permission for **nodeId**"),
@ApiResponse(code = 404, message = "**nodeId** or **versionId** or **renditionId** does not exist "),
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
public RenditionEntry getVersionRendition(@PathParam("nodeId") String nodeId, @PathParam("versionId") String versionId, @PathParam("renditionId") String renditionId);
/**
* Get rendition content for a file version
*
* **Note:** this endpoint is available in Alfresco 7.0.0 and newer versions. Gets the rendition content for **renditionId** of version of file **nodeId** and **versionId**.
*
*/
@GET
@Path("/nodes/{nodeId}/versions/{versionId}/renditions/{renditionId}/content")
@Consumes({ "application/json" })
@Produces({ "application/octet-stream" })
@ApiOperation(value = "Get rendition content for a file version", tags={ })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "Successful response", response = File.class),
@ApiResponse(code = 206, message = "Partial Content"),
@ApiResponse(code = 304, message = "Content has not been modified since the date provided in the If-Modified-Since header"),
@ApiResponse(code = 400, message = "Invalid parameter: **nodeId** is not a valid format, or is not a file, or **versionId** is invalid, or **renditionId** is invalid "),
@ApiResponse(code = 401, message = "Authentication failed"),
@ApiResponse(code = 403, message = "Current user does not have permission for **nodeId**"),
@ApiResponse(code = 404, message = "**nodeId** or **versionId** or **renditionId** does not exist "),
@ApiResponse(code = 416, message = "Range Not Satisfiable"),
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
public File getVersionRenditionContent(@PathParam("nodeId") String nodeId, @PathParam("versionId") String versionId, @PathParam("renditionId") String renditionId, @QueryParam("attachment")@DefaultValue("true") Boolean attachment, @HeaderParam("If-Modified-Since") Date ifModifiedSince, @HeaderParam("Range") String range, @QueryParam("placeholder")@DefaultValue("false") Boolean placeholder);
/**
* List version history
*
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Gets the version history as an ordered list of versions for the specified **nodeId**. The list is ordered in descending modified order. So the most recent version is first and the original version is last in the list.
* **Note:** this endpoint is available in Alfresco 5.2 and newer versions. Gets the version history as an ordered list of versions for the specified **nodeId**. The list is ordered in descending modified order. So the most recent version is first and the original version is last in the list.
*
*/
@GET
@@ -168,33 +100,13 @@ public interface VersionsApi {
@ApiOperation(value = "List version history", tags={ })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "Successful response", response = VersionPaging.class),
@ApiResponse(code = 400, message = "Invalid parameter: **nodeId** is not a valid format "),
@ApiResponse(code = 400, message = "Invalid parameter: **nodeId** is not a valid format "),
@ApiResponse(code = 401, message = "Authentication failed"),
@ApiResponse(code = 403, message = "Current user does not have permission for **nodeId**"),
@ApiResponse(code = 404, message = "Target **nodeId** does not exist"),
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
public VersionPaging listVersionHistory(@PathParam("nodeId") String nodeId, @QueryParam("include")List<String> include, @QueryParam("fields")List<String> fields, @QueryParam("skipCount")@DefaultValue("0") Integer skipCount, @QueryParam("maxItems")@DefaultValue("100") Integer maxItems);
/**
* List renditions for a file version
*
* **Note:** this endpoint is available in Alfresco 7.0.0 and newer versions. Gets a list of the rendition information for each rendition of the version of file **nodeId** and **versionId**, including the rendition id. Each rendition returned has a **status**: CREATED means it is available to view or download, NOT_CREATED means the rendition can be requested. You can use the **where** parameter to filter the returned renditions by **status**. For example, the following **where** clause will return just the CREATED renditions: &#x60;&#x60;&#x60; (status&#x3D;&#39;CREATED&#39;) &#x60;&#x60;&#x60;
*
*/
@GET
@Path("/nodes/{nodeId}/versions/{versionId}/renditions")
@Consumes({ "application/json" })
@Produces({ "application/json" })
@ApiOperation(value = "List renditions for a file version", tags={ })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "Successful response", response = RenditionPaging.class),
@ApiResponse(code = 400, message = "Invalid parameter: **nodeId** is not a valid format, or is not a file, or **versionId** is invalid, or **where** is invalid "),
@ApiResponse(code = 401, message = "Authentication failed"),
@ApiResponse(code = 403, message = "Current user does not have permission for **nodeId**"),
@ApiResponse(code = 404, message = "**nodeId** or **versionId** does not exist "),
@ApiResponse(code = 200, message = "Unexpected error", response = Error.class) })
public RenditionPaging listVersionRenditions(@PathParam("nodeId") String nodeId, @PathParam("versionId") String versionId, @QueryParam("where")String where);
/**
* Revert a version
*
@@ -208,7 +120,7 @@ public interface VersionsApi {
@ApiOperation(value = "Revert a version", tags={ })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "Successful response", response = VersionEntry.class),
@ApiResponse(code = 400, message = "Invalid parameter: **nodeId** is not a valid format, or it exists but does not identify a file, or **versionId** is invalid, or **revertBody** invalid "),
@ApiResponse(code = 400, message = "Invalid parameter: **nodeId** is not a valid format, or it exists but does not identify a file, or **versionId** is invalid, or **revertBody** invalid "),
@ApiResponse(code = 401, message = "Authentication failed"),
@ApiResponse(code = 403, message = "Current user does not have permission to revert the versioned node"),
@ApiResponse(code = 404, message = "**nodeId** or **versionId** does not exist "),

View File

@@ -1,286 +0,0 @@
package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
public class AbstractClass {
@ApiModelProperty(required = true, value = "")
private String id = null;
@ApiModelProperty(required = true, value = "")
private String title = null;
@ApiModelProperty(value = "")
private String description = null;
@ApiModelProperty(value = "")
private String parentId = null;
@ApiModelProperty(value = "")
private List<Property> properties = null;
@ApiModelProperty(value = "")
private Boolean isContainer = null;
@ApiModelProperty(value = "")
private Boolean isArchive = null;
@ApiModelProperty(value = "")
private Boolean includedInSupertypeQuery = null;
@ApiModelProperty(value = "")
private List<String> mandatoryAspects = null;
@ApiModelProperty(value = "")
private List<AbstractClassAssociation> associations = null;
@ApiModelProperty(value = "")
private Model model = null;
/**
* Get id
* @return id
**/
@JsonProperty("id")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public AbstractClass id(String id) {
this.id = id;
return this;
}
/**
* Get title
* @return title
**/
@JsonProperty("title")
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public AbstractClass title(String title) {
this.title = title;
return this;
}
/**
* Get description
* @return description
**/
@JsonProperty("description")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public AbstractClass description(String description) {
this.description = description;
return this;
}
/**
* Get parentId
* @return parentId
**/
@JsonProperty("parentId")
public String getParentId() {
return parentId;
}
public void setParentId(String parentId) {
this.parentId = parentId;
}
public AbstractClass parentId(String parentId) {
this.parentId = parentId;
return this;
}
/**
* Get properties
* @return properties
**/
@JsonProperty("properties")
public List<Property> getProperties() {
return properties;
}
public void setProperties(List<Property> properties) {
this.properties = properties;
}
public AbstractClass properties(List<Property> properties) {
this.properties = properties;
return this;
}
public AbstractClass addPropertiesItem(Property propertiesItem) {
this.properties.add(propertiesItem);
return this;
}
/**
* Get isContainer
* @return isContainer
**/
@JsonProperty("isContainer")
public Boolean isIsContainer() {
return isContainer;
}
public void setIsContainer(Boolean isContainer) {
this.isContainer = isContainer;
}
public AbstractClass isContainer(Boolean isContainer) {
this.isContainer = isContainer;
return this;
}
/**
* Get isArchive
* @return isArchive
**/
@JsonProperty("isArchive")
public Boolean isIsArchive() {
return isArchive;
}
public void setIsArchive(Boolean isArchive) {
this.isArchive = isArchive;
}
public AbstractClass isArchive(Boolean isArchive) {
this.isArchive = isArchive;
return this;
}
/**
* Get includedInSupertypeQuery
* @return includedInSupertypeQuery
**/
@JsonProperty("includedInSupertypeQuery")
public Boolean isIncludedInSupertypeQuery() {
return includedInSupertypeQuery;
}
public void setIncludedInSupertypeQuery(Boolean includedInSupertypeQuery) {
this.includedInSupertypeQuery = includedInSupertypeQuery;
}
public AbstractClass includedInSupertypeQuery(Boolean includedInSupertypeQuery) {
this.includedInSupertypeQuery = includedInSupertypeQuery;
return this;
}
/**
* Get mandatoryAspects
* @return mandatoryAspects
**/
@JsonProperty("mandatoryAspects")
public List<String> getMandatoryAspects() {
return mandatoryAspects;
}
public void setMandatoryAspects(List<String> mandatoryAspects) {
this.mandatoryAspects = mandatoryAspects;
}
public AbstractClass mandatoryAspects(List<String> mandatoryAspects) {
this.mandatoryAspects = mandatoryAspects;
return this;
}
public AbstractClass addMandatoryAspectsItem(String mandatoryAspectsItem) {
this.mandatoryAspects.add(mandatoryAspectsItem);
return this;
}
/**
* Get associations
* @return associations
**/
@JsonProperty("associations")
public List<AbstractClassAssociation> getAssociations() {
return associations;
}
public void setAssociations(List<AbstractClassAssociation> associations) {
this.associations = associations;
}
public AbstractClass associations(List<AbstractClassAssociation> associations) {
this.associations = associations;
return this;
}
public AbstractClass addAssociationsItem(AbstractClassAssociation associationsItem) {
this.associations.add(associationsItem);
return this;
}
/**
* Get model
* @return model
**/
@JsonProperty("model")
public Model getModel() {
return model;
}
public void setModel(Model model) {
this.model = model;
}
public AbstractClass model(Model model) {
this.model = model;
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AbstractClass {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" title: ").append(toIndentedString(title)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" parentId: ").append(toIndentedString(parentId)).append("\n");
sb.append(" properties: ").append(toIndentedString(properties)).append("\n");
sb.append(" isContainer: ").append(toIndentedString(isContainer)).append("\n");
sb.append(" isArchive: ").append(toIndentedString(isArchive)).append("\n");
sb.append(" includedInSupertypeQuery: ").append(toIndentedString(includedInSupertypeQuery)).append("\n");
sb.append(" mandatoryAspects: ").append(toIndentedString(mandatoryAspects)).append("\n");
sb.append(" associations: ").append(toIndentedString(associations)).append("\n");
sb.append(" model: ").append(toIndentedString(model)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private static String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -1,182 +0,0 @@
package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
public class AbstractClassAssociation {
@ApiModelProperty(required = true, value = "")
private String id = null;
@ApiModelProperty(value = "")
private String title = null;
@ApiModelProperty(value = "")
private String description = null;
@ApiModelProperty(value = "")
private Boolean isChild = null;
@ApiModelProperty(value = "")
private Boolean isProtected = null;
@ApiModelProperty(value = "")
private AbstractClassAssociationSource source = null;
@ApiModelProperty(value = "")
private AbstractClassAssociationSource target = null;
/**
* Get id
* @return id
**/
@JsonProperty("id")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public AbstractClassAssociation id(String id) {
this.id = id;
return this;
}
/**
* Get title
* @return title
**/
@JsonProperty("title")
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public AbstractClassAssociation title(String title) {
this.title = title;
return this;
}
/**
* Get description
* @return description
**/
@JsonProperty("description")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public AbstractClassAssociation description(String description) {
this.description = description;
return this;
}
/**
* Get isChild
* @return isChild
**/
@JsonProperty("isChild")
public Boolean isIsChild() {
return isChild;
}
public void setIsChild(Boolean isChild) {
this.isChild = isChild;
}
public AbstractClassAssociation isChild(Boolean isChild) {
this.isChild = isChild;
return this;
}
/**
* Get isProtected
* @return isProtected
**/
@JsonProperty("isProtected")
public Boolean isIsProtected() {
return isProtected;
}
public void setIsProtected(Boolean isProtected) {
this.isProtected = isProtected;
}
public AbstractClassAssociation isProtected(Boolean isProtected) {
this.isProtected = isProtected;
return this;
}
/**
* Get source
* @return source
**/
@JsonProperty("source")
public AbstractClassAssociationSource getSource() {
return source;
}
public void setSource(AbstractClassAssociationSource source) {
this.source = source;
}
public AbstractClassAssociation source(AbstractClassAssociationSource source) {
this.source = source;
return this;
}
/**
* Get target
* @return target
**/
@JsonProperty("target")
public AbstractClassAssociationSource getTarget() {
return target;
}
public void setTarget(AbstractClassAssociationSource target) {
this.target = target;
}
public AbstractClassAssociation target(AbstractClassAssociationSource target) {
this.target = target;
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AbstractClassAssociation {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" title: ").append(toIndentedString(title)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" isChild: ").append(toIndentedString(isChild)).append("\n");
sb.append(" isProtected: ").append(toIndentedString(isProtected)).append("\n");
sb.append(" source: ").append(toIndentedString(source)).append("\n");
sb.append(" target: ").append(toIndentedString(target)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private static String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -1,138 +0,0 @@
package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
public class AbstractClassAssociationSource {
@ApiModelProperty(value = "")
private String role = null;
@ApiModelProperty(value = "")
private String cls = null;
@ApiModelProperty(value = "")
private Boolean isMandatory = null;
@ApiModelProperty(value = "")
private Boolean isMany = null;
@ApiModelProperty(value = "")
private Boolean isMandatoryEnforced = null;
/**
* Get role
* @return role
**/
@JsonProperty("role")
public String getRole() {
return role;
}
public void setRole(String role) {
this.role = role;
}
public AbstractClassAssociationSource role(String role) {
this.role = role;
return this;
}
/**
* Get cls
* @return cls
**/
@JsonProperty("cls")
public String getCls() {
return cls;
}
public void setCls(String cls) {
this.cls = cls;
}
public AbstractClassAssociationSource cls(String cls) {
this.cls = cls;
return this;
}
/**
* Get isMandatory
* @return isMandatory
**/
@JsonProperty("isMandatory")
public Boolean isIsMandatory() {
return isMandatory;
}
public void setIsMandatory(Boolean isMandatory) {
this.isMandatory = isMandatory;
}
public AbstractClassAssociationSource isMandatory(Boolean isMandatory) {
this.isMandatory = isMandatory;
return this;
}
/**
* Get isMany
* @return isMany
**/
@JsonProperty("isMany")
public Boolean isIsMany() {
return isMany;
}
public void setIsMany(Boolean isMany) {
this.isMany = isMany;
}
public AbstractClassAssociationSource isMany(Boolean isMany) {
this.isMany = isMany;
return this;
}
/**
* Get isMandatoryEnforced
* @return isMandatoryEnforced
**/
@JsonProperty("isMandatoryEnforced")
public Boolean isIsMandatoryEnforced() {
return isMandatoryEnforced;
}
public void setIsMandatoryEnforced(Boolean isMandatoryEnforced) {
this.isMandatoryEnforced = isMandatoryEnforced;
}
public AbstractClassAssociationSource isMandatoryEnforced(Boolean isMandatoryEnforced) {
this.isMandatoryEnforced = isMandatoryEnforced;
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AbstractClassAssociationSource {\n");
sb.append(" role: ").append(toIndentedString(role)).append("\n");
sb.append(" cls: ").append(toIndentedString(cls)).append("\n");
sb.append(" isMandatory: ").append(toIndentedString(isMandatory)).append("\n");
sb.append(" isMany: ").append(toIndentedString(isMany)).append("\n");
sb.append(" isMandatoryEnforced: ").append(toIndentedString(isMandatoryEnforced)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private static String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -3,6 +3,7 @@ package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class ActionBodyExec {
@ApiModelProperty(required = true, value = "")

View File

@@ -5,6 +5,7 @@ import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class ActionDefinition {
@ApiModelProperty(required = true, value = "Identifier of the action definition — used for example when executing an action")

View File

@@ -3,6 +3,7 @@ package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class ActionDefinitionEntry {
@ApiModelProperty(required = true, value = "")

View File

@@ -3,6 +3,7 @@ package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class ActionDefinitionList {
@ApiModelProperty(value = "")

View File

@@ -4,6 +4,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class ActionDefinitionListList {
@ApiModelProperty(value = "")

View File

@@ -3,6 +3,7 @@ package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class ActionExecResult {
@ApiModelProperty(required = true, value = "The unique identifier of the action pending execution")

View File

@@ -3,6 +3,7 @@ package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class ActionExecResultEntry {
@ApiModelProperty(required = true, value = "")

View File

@@ -3,6 +3,7 @@ package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class ActionParameterDefinition {
@ApiModelProperty(value = "")

View File

@@ -4,12 +4,11 @@ import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import java.util.Map;
/**
* Activities describe any past activity in a site, for example creating an item of content, commenting on a node, liking an item of content.
**/
@ApiModel(description="Activities describe any past activity in a site, for example creating an item of content, commenting on a node, liking an item of content. ")
@ApiModel(description="Activities describe any past activity in a site, for example creating an item of content, commenting on a node, liking an item of content. ")@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class Activity {
@ApiModelProperty(required = true, value = "The id of the person who performed the activity")
@@ -46,7 +45,7 @@ public class Activity {
/**
* An object summarizing the activity
**/
private Map<String, String> activitySummary = null;
private Object activitySummary = null;
@ApiModelProperty(required = true, value = "The type of the activity posted")
/**
@@ -148,24 +147,19 @@ public class Activity {
* @return activitySummary
**/
@JsonProperty("activitySummary")
public Map<String, String> getActivitySummary() {
public Object getActivitySummary() {
return activitySummary;
}
public void setActivitySummary(Map<String, String> activitySummary) {
public void setActivitySummary(Object activitySummary) {
this.activitySummary = activitySummary;
}
public Activity activitySummary(Map<String, String> activitySummary) {
public Activity activitySummary(Object activitySummary) {
this.activitySummary = activitySummary;
return this;
}
public Activity putActivitySummaryItem(String key, String activitySummaryItem) {
this.activitySummary.put(key, activitySummaryItem);
return this;
}
/**
* The type of the activity posted
* @return activityType

View File

@@ -3,6 +3,7 @@ package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class ActivityEntry {
@ApiModelProperty(required = true, value = "")

View File

@@ -3,6 +3,7 @@ package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class ActivityPaging {
@ApiModelProperty(required = true, value = "")

View File

@@ -5,6 +5,7 @@ import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class ActivityPagingList {
@ApiModelProperty(required = true, value = "")

View File

@@ -1,25 +0,0 @@
package com.inteligr8.alfresco.acs.model;
public class Aspect {
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Aspect {\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private static String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -1,50 +0,0 @@
package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
public class AspectEntry {
@ApiModelProperty(required = true, value = "")
private Aspect entry = null;
/**
* Get entry
* @return entry
**/
@JsonProperty("entry")
public Aspect getEntry() {
return entry;
}
public void setEntry(Aspect entry) {
this.entry = entry;
}
public AspectEntry entry(Aspect entry) {
this.entry = entry;
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AspectEntry {\n");
sb.append(" entry: ").append(toIndentedString(entry)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private static String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -1,50 +0,0 @@
package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
public class AspectPaging {
@ApiModelProperty(value = "")
private AspectPagingList _list = null;
/**
* Get _list
* @return _list
**/
@JsonProperty("list")
public AspectPagingList getList() {
return _list;
}
public void setList(AspectPagingList _list) {
this._list = _list;
}
public AspectPaging _list(AspectPagingList _list) {
this._list = _list;
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AspectPaging {\n");
sb.append(" _list: ").append(toIndentedString(_list)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private static String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -1,78 +0,0 @@
package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
public class AspectPagingList {
@ApiModelProperty(value = "")
private Pagination pagination = null;
@ApiModelProperty(value = "")
private List<AspectEntry> entries = null;
/**
* Get pagination
* @return pagination
**/
@JsonProperty("pagination")
public Pagination getPagination() {
return pagination;
}
public void setPagination(Pagination pagination) {
this.pagination = pagination;
}
public AspectPagingList pagination(Pagination pagination) {
this.pagination = pagination;
return this;
}
/**
* Get entries
* @return entries
**/
@JsonProperty("entries")
public List<AspectEntry> getEntries() {
return entries;
}
public void setEntries(List<AspectEntry> entries) {
this.entries = entries;
}
public AspectPagingList entries(List<AspectEntry> entries) {
this.entries = entries;
return this;
}
public AspectPagingList addEntriesItem(AspectEntry entriesItem) {
this.entries.add(entriesItem);
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AspectPagingList {\n");
sb.append(" pagination: ").append(toIndentedString(pagination)).append("\n");
sb.append(" entries: ").append(toIndentedString(entries)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private static String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -3,6 +3,7 @@ package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class Association {
@ApiModelProperty(required = true, value = "")

View File

@@ -3,6 +3,7 @@ package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class AssociationBody {
@ApiModelProperty(required = true, value = "")

View File

@@ -3,6 +3,7 @@ package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class AssociationEntry {
@ApiModelProperty(required = true, value = "")

View File

@@ -3,6 +3,7 @@ package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class AssociationInfo {
@ApiModelProperty(required = true, value = "")

View File

@@ -3,6 +3,7 @@ package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class AuditApp {
@ApiModelProperty(required = true, value = "")

View File

@@ -3,6 +3,7 @@ package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class AuditAppEntry {
@ApiModelProperty(value = "")

View File

@@ -3,6 +3,7 @@ package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class AuditAppPaging {
@ApiModelProperty(value = "")

View File

@@ -4,6 +4,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class AuditAppPagingList {
@ApiModelProperty(value = "")

View File

@@ -3,6 +3,7 @@ package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class AuditBodyUpdate {
@ApiModelProperty(value = "")

View File

@@ -4,6 +4,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class AuditEntry {
@ApiModelProperty(required = true, value = "")

View File

@@ -3,6 +3,7 @@ package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class AuditEntryEntry {
@ApiModelProperty(value = "")

View File

@@ -3,6 +3,7 @@ package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class AuditEntryPaging {
@ApiModelProperty(value = "")

View File

@@ -4,6 +4,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class AuditEntryPagingList {
@ApiModelProperty(value = "")

View File

@@ -1,94 +0,0 @@
package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
public class Capabilities {
@ApiModelProperty(value = "")
private Boolean isAdmin = null;
@ApiModelProperty(value = "")
private Boolean isGuest = null;
@ApiModelProperty(value = "")
private Boolean isMutable = null;
/**
* Get isAdmin
* @return isAdmin
**/
@JsonProperty("isAdmin")
public Boolean isIsAdmin() {
return isAdmin;
}
public void setIsAdmin(Boolean isAdmin) {
this.isAdmin = isAdmin;
}
public Capabilities isAdmin(Boolean isAdmin) {
this.isAdmin = isAdmin;
return this;
}
/**
* Get isGuest
* @return isGuest
**/
@JsonProperty("isGuest")
public Boolean isIsGuest() {
return isGuest;
}
public void setIsGuest(Boolean isGuest) {
this.isGuest = isGuest;
}
public Capabilities isGuest(Boolean isGuest) {
this.isGuest = isGuest;
return this;
}
/**
* Get isMutable
* @return isMutable
**/
@JsonProperty("isMutable")
public Boolean isIsMutable() {
return isMutable;
}
public void setIsMutable(Boolean isMutable) {
this.isMutable = isMutable;
}
public Capabilities isMutable(Boolean isMutable) {
this.isMutable = isMutable;
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Capabilities {\n");
sb.append(" isAdmin: ").append(toIndentedString(isAdmin)).append("\n");
sb.append(" isGuest: ").append(toIndentedString(isGuest)).append("\n");
sb.append(" isMutable: ").append(toIndentedString(isMutable)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private static String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -3,6 +3,7 @@ package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class ChildAssociation {
@ApiModelProperty(required = true, value = "")

View File

@@ -3,6 +3,7 @@ package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class ChildAssociationBody {
@ApiModelProperty(required = true, value = "")

View File

@@ -3,6 +3,7 @@ package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class ChildAssociationEntry {
@ApiModelProperty(required = true, value = "")

View File

@@ -3,6 +3,7 @@ package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class ChildAssociationInfo {
@ApiModelProperty(required = true, value = "")

View File

@@ -3,6 +3,7 @@ package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class ClientBody {
@ApiModelProperty(required = true, value = "the client name")

View File

@@ -4,6 +4,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class Comment {
@ApiModelProperty(required = true, value = "")

View File

@@ -3,6 +3,7 @@ package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class CommentBody {
@ApiModelProperty(required = true, value = "")

View File

@@ -3,6 +3,7 @@ package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class CommentEntry {
@ApiModelProperty(required = true, value = "")

View File

@@ -3,6 +3,7 @@ package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class CommentPaging {
@ApiModelProperty(required = true, value = "")

View File

@@ -5,6 +5,7 @@ import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class CommentPagingList {
@ApiModelProperty(required = true, value = "")

View File

@@ -3,6 +3,7 @@ package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class Company {
@ApiModelProperty(value = "")

View File

@@ -1,153 +0,0 @@
package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.Map;
public class Constraint {
@ApiModelProperty(required = true, value = "")
private String id = null;
@ApiModelProperty(value = "the type of the constraint")
/**
* the type of the constraint
**/
private String type = null;
@ApiModelProperty(value = "the human-readable constraint title")
/**
* the human-readable constraint title
**/
private String title = null;
@ApiModelProperty(value = "the human-readable constraint description")
/**
* the human-readable constraint description
**/
private String description = null;
@ApiModelProperty(value = "")
private Map<String, Object> parameters = null;
/**
* Get id
* @return id
**/
@JsonProperty("id")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public Constraint id(String id) {
this.id = id;
return this;
}
/**
* the type of the constraint
* @return type
**/
@JsonProperty("type")
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public Constraint type(String type) {
this.type = type;
return this;
}
/**
* the human-readable constraint title
* @return title
**/
@JsonProperty("title")
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public Constraint title(String title) {
this.title = title;
return this;
}
/**
* the human-readable constraint description
* @return description
**/
@JsonProperty("description")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public Constraint description(String description) {
this.description = description;
return this;
}
/**
* Get parameters
* @return parameters
**/
@JsonProperty("parameters")
public Map<String, Object> getParameters() {
return parameters;
}
public void setParameters(Map<String, Object> parameters) {
this.parameters = parameters;
}
public Constraint parameters(Map<String, Object> parameters) {
this.parameters = parameters;
return this;
}
public Constraint putParametersItem(String key, Object parametersItem) {
this.parameters.put(key, parametersItem);
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Constraint {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" title: ").append(toIndentedString(title)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" parameters: ").append(toIndentedString(parameters)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private static String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -3,6 +3,7 @@ package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class ContentInfo {
@ApiModelProperty(required = true, value = "")

View File

@@ -1,59 +0,0 @@
package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
public class Definition {
@ApiModelProperty(value = "List of property definitions effective for this node as the result of combining the type with all aspects.")
/**
* List of property definitions effective for this node as the result of combining the type with all aspects.
**/
private List<Property> properties = null;
/**
* List of property definitions effective for this node as the result of combining the type with all aspects.
* @return properties
**/
@JsonProperty("properties")
public List<Property> getProperties() {
return properties;
}
public void setProperties(List<Property> properties) {
this.properties = properties;
}
public Definition properties(List<Property> properties) {
this.properties = properties;
return this;
}
public Definition addPropertiesItem(Property propertiesItem) {
this.properties.add(propertiesItem);
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Definition {\n");
sb.append(" properties: ").append(toIndentedString(properties)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private static String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -3,6 +3,7 @@ package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class DeletedNodeBodyRestore {
@ApiModelProperty(value = "")

View File

@@ -3,6 +3,7 @@ package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class DeletedNodeEntry {
@ApiModelProperty(value = "")

View File

@@ -3,6 +3,7 @@ package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class DeletedNodesPaging {
@ApiModelProperty(value = "")

View File

@@ -4,6 +4,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class DeletedNodesPagingList {
@ApiModelProperty(value = "")

View File

@@ -1,77 +0,0 @@
package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
public class DirectAccessUrlBodyCreate {
@ApiModelProperty(value = "")
private Date expiresAt = null;
@ApiModelProperty(value = "The length of time in seconds that the url is valid for. ")
/**
* The length of time in seconds that the url is valid for.
**/
private Integer validFor = null;
/**
* Get expiresAt
* @return expiresAt
**/
@JsonProperty("expiresAt")
public Date getExpiresAt() {
return expiresAt;
}
public void setExpiresAt(Date expiresAt) {
this.expiresAt = expiresAt;
}
public DirectAccessUrlBodyCreate expiresAt(Date expiresAt) {
this.expiresAt = expiresAt;
return this;
}
/**
* The length of time in seconds that the url is valid for.
* minimum: 1
* @return validFor
**/
@JsonProperty("validFor")
public Integer getValidFor() {
return validFor;
}
public void setValidFor(Integer validFor) {
this.validFor = validFor;
}
public DirectAccessUrlBodyCreate validFor(Integer validFor) {
this.validFor = validFor;
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DirectAccessUrlBodyCreate {\n");
sb.append(" expiresAt: ").append(toIndentedString(expiresAt)).append("\n");
sb.append(" validFor: ").append(toIndentedString(validFor)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private static String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

View File

@@ -3,6 +3,7 @@ package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class DiscoveryEntry {
@ApiModelProperty(required = true, value = "")

View File

@@ -6,6 +6,7 @@ import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class Download {
@ApiModelProperty(value = "number of files added so far in the zip")

View File

@@ -5,6 +5,7 @@ import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class DownloadBodyCreate {
@ApiModelProperty(required = true, value = "")

View File

@@ -3,6 +3,7 @@ package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class DownloadEntry {
@ApiModelProperty(required = true, value = "")

View File

@@ -3,6 +3,7 @@ package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class EntitlementsInfo {
@ApiModelProperty(value = "")

View File

@@ -3,6 +3,7 @@ package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class Error {
@ApiModelProperty(required = true, value = "")

View File

@@ -3,6 +3,7 @@ package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class ErrorError {
@ApiModelProperty(value = "")

View File

@@ -8,7 +8,7 @@ import java.util.Date;
/**
* A favorite describes an Alfresco entity that a person has marked as a favorite. The target can be a site, file or folder.
**/
@ApiModel(description="A favorite describes an Alfresco entity that a person has marked as a favorite. The target can be a site, file or folder. ")
@ApiModel(description="A favorite describes an Alfresco entity that a person has marked as a favorite. The target can be a site, file or folder. ")@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class Favorite {
@ApiModelProperty(required = true, value = "The guid of the object that is a favorite.")

View File

@@ -3,6 +3,7 @@ package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class FavoriteBodyCreate {
@ApiModelProperty(required = true, value = "")

View File

@@ -3,6 +3,7 @@ package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class FavoriteEntry {
@ApiModelProperty(required = true, value = "")

View File

@@ -3,6 +3,7 @@ package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class FavoritePaging {
@ApiModelProperty(required = true, value = "")

View File

@@ -5,6 +5,7 @@ import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class FavoritePagingList {
@ApiModelProperty(required = true, value = "")

View File

@@ -3,6 +3,7 @@ package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class FavoriteSite {
@ApiModelProperty(required = true, value = "")

View File

@@ -3,6 +3,7 @@ package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class FavoriteSiteBodyCreate {
@ApiModelProperty(required = true, value = "")

View File

@@ -3,6 +3,7 @@ package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class FavoriteSiteEntry {
@ApiModelProperty(required = true, value = "")

View File

@@ -8,7 +8,7 @@ import java.util.List;
/**
* A bucket of facet results
**/
@ApiModel(description="A bucket of facet results")
@ApiModel(description="A bucket of facet results")@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class GenericBucket {
@ApiModelProperty(value = "The bucket label")

View File

@@ -7,7 +7,7 @@ import io.swagger.annotations.ApiModelProperty;
/**
* Additional information of nested facet
**/
@ApiModel(description="Additional information of nested facet")
@ApiModel(description="Additional information of nested facet")@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class GenericBucketBucketInfo {
@ApiModelProperty(value = "The start of range")

View File

@@ -4,6 +4,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class GenericFacetResponse {
@ApiModelProperty(value = "The facet type, eg. interval, range, pivot, stats")

View File

@@ -7,7 +7,7 @@ import io.swagger.annotations.ApiModelProperty;
/**
* A metric used in faceting
**/
@ApiModel(description="A metric used in faceting")
@ApiModel(description="A metric used in faceting")@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class GenericMetric {
@ApiModelProperty(value = "The type of metric, e.g. count")

View File

@@ -4,6 +4,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class Group {
@ApiModelProperty(required = true, value = "")

View File

@@ -4,6 +4,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class GroupBodyCreate {
@ApiModelProperty(required = true, value = "")

View File

@@ -3,6 +3,7 @@ package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class GroupBodyUpdate {
@ApiModelProperty(required = true, value = "")

View File

@@ -3,6 +3,7 @@ package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class GroupEntry {
@ApiModelProperty(required = true, value = "")

View File

@@ -6,6 +6,7 @@ import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class GroupMember {
@ApiModelProperty(required = true, value = "")

View File

@@ -3,6 +3,7 @@ package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class GroupMemberEntry {
@ApiModelProperty(required = true, value = "")

View File

@@ -3,6 +3,7 @@ package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class GroupMemberPaging {
@ApiModelProperty(value = "")

View File

@@ -4,6 +4,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class GroupMemberPagingList {
@ApiModelProperty(value = "")

View File

@@ -6,6 +6,7 @@ import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class GroupMembershipBodyCreate {
@ApiModelProperty(required = true, value = "")

View File

@@ -3,6 +3,7 @@ package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class GroupPaging {
@ApiModelProperty(value = "")

Some files were not shown because too many files have changed in this diff Show More