mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-09-10 14:11:58 +00:00
Compare commits
71 Commits
tas-restap
...
tas-restap
Author | SHA1 | Date | |
---|---|---|---|
|
fa3df0987d | ||
|
fde20c948f | ||
|
9ea1336a18 | ||
|
b007740dd0 | ||
|
15b10ba605 | ||
|
8983a11d3d | ||
|
6fd482b492 | ||
|
0a0c90a230 | ||
|
109af6abff | ||
|
43532eebf5 | ||
|
5dc3424fe2 | ||
|
133670cd17 | ||
|
909e95685e | ||
|
91e7b0d66f | ||
|
cc40cf05a9 | ||
|
4629c20b51 | ||
|
ee88946b1c | ||
|
b1faf15806 | ||
|
367ad20fb7 | ||
|
80e770f2da | ||
|
e8cf525792 | ||
|
a594341bb5 | ||
|
058e8d6302 | ||
|
91fcbb0b59 | ||
|
830898c605 | ||
|
d214040bc8 | ||
|
1b071cb555 | ||
|
37e04ee2fc | ||
|
10f32aa74c | ||
|
bea386ddc8 | ||
|
2449d1d8f3 | ||
|
3883fd22e3 | ||
|
183ac4c7cd | ||
|
fa1b8d46dd | ||
|
df35137d12 | ||
|
1d1b454978 | ||
|
deaee78d09 | ||
|
9e3c144a7d | ||
|
d0b100a88b | ||
|
9d807242ee | ||
|
5f2b5fe9af | ||
|
7edee67997 | ||
|
5f151aaa96 | ||
|
dcf25d89d0 | ||
|
7d5aafecb5 | ||
|
1d8f1bd8a2 | ||
|
fe04e621e1 | ||
|
ee03296733 | ||
|
c5e89242ba | ||
|
0fbeffe80a | ||
|
d1e9cf0144 | ||
|
b51146c868 | ||
|
515f243911 | ||
|
a7263931f5 | ||
|
2c23c674a7 | ||
|
2b929b747a | ||
|
1fd36cf903 | ||
|
d45bc9e6c6 | ||
|
6ae2ff6cd9 | ||
|
e3fbdd5904 | ||
|
575f4f26c0 | ||
|
c11cd252d4 | ||
|
74141cf4b7 | ||
|
0105b87153 | ||
|
c2ed150a7d | ||
|
d47bf8c3ac | ||
|
6372e9124c | ||
|
dcf5e8325b | ||
|
ebabe9a16b | ||
|
bbb6d610fa | ||
|
20ccedfee8 |
@@ -2,18 +2,12 @@ dist: focal
|
|||||||
sudo: required
|
sudo: required
|
||||||
language: java
|
language: java
|
||||||
jdk:
|
jdk:
|
||||||
- openjdk11
|
- openjdk17
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- $HOME/.m2/repository
|
- $HOME/.m2/repository
|
||||||
|
|
||||||
branches:
|
|
||||||
only:
|
|
||||||
- master
|
|
||||||
|
|
||||||
install: travis_retry mvn install -DskipTests=true -B -V
|
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- test
|
- test
|
||||||
- release
|
- release
|
||||||
@@ -22,7 +16,7 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
- stage: test
|
- stage: test
|
||||||
name: "Build and test"
|
name: "Build and test"
|
||||||
script: travis_retry mvn test -Dtest=ModelAssertionTest
|
script: travis_retry mvn -B -V -ntp test
|
||||||
- stage: release
|
- stage: release
|
||||||
name: "Push to Nexus"
|
name: "Push to Nexus"
|
||||||
if: fork = false AND branch = master AND type != pull_request AND commit_message !~ /\[no-release\]/
|
if: fork = false AND branch = master AND type != pull_request AND commit_message !~ /\[no-release\]/
|
||||||
@@ -33,5 +27,5 @@ jobs:
|
|||||||
- git checkout -B "${TRAVIS_BRANCH}"
|
- git checkout -B "${TRAVIS_BRANCH}"
|
||||||
# Add email to link commits to user
|
# Add email to link commits to user
|
||||||
- git config user.email "${GIT_EMAIL}"
|
- git config user.email "${GIT_EMAIL}"
|
||||||
# Skip building of release commits
|
# Make release
|
||||||
- mvn --batch-mode -DscmCommentPrefix="[maven-release-plugin][skip ci] " -Dusername="${GIT_USERNAME}" -Dpassword="${GIT_PASSWORD}" -DskipTests -Darguments=-DskipTests release:clean release:prepare release:perform
|
- mvn --batch-mode -ntp -DscmCommentPrefix="[maven-release-plugin][skip ci] " -Dusername="${GIT_USERNAME}" -Dpassword="${GIT_PASSWORD}" -Darguments=-DskipTests release:clean release:prepare release:perform
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
<groupId>org.alfresco.tas</groupId>
|
<groupId>org.alfresco.tas</groupId>
|
||||||
<artifactId>restapi</artifactId>
|
<artifactId>restapi</artifactId>
|
||||||
<name>alfresco-tas-restapi</name>
|
<name>alfresco-tas-restapi</name>
|
||||||
<version>1.93</version>
|
<version>1.116</version>
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-super-pom</artifactId>
|
<artifactId>alfresco-super-pom</artifactId>
|
||||||
@@ -28,17 +28,18 @@
|
|||||||
<suiteXmlFile>src/main/resources/shared-resources/testCount.xml</suiteXmlFile>
|
<suiteXmlFile>src/main/resources/shared-resources/testCount.xml</suiteXmlFile>
|
||||||
<maven.build.sourceVersion>11</maven.build.sourceVersion>
|
<maven.build.sourceVersion>11</maven.build.sourceVersion>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<tas.utility.version>3.0.48</tas.utility.version>
|
<tas.utility.version>3.0.53</tas.utility.version>
|
||||||
<rest-assured.version>3.3.0</rest-assured.version>
|
<rest-assured.version>5.1.1</rest-assured.version>
|
||||||
<httpclient-osgi-version>4.5.6</httpclient-osgi-version>
|
<httpclient-osgi-version>4.5.6</httpclient-osgi-version>
|
||||||
<json-path.version>3.3.0</json-path.version>
|
|
||||||
<xml-path.version>3.3.0</xml-path.version>
|
|
||||||
<json-schema-validator.version>3.3.0</json-schema-validator.version>
|
|
||||||
<jackson-databind.version>2.13.3</jackson-databind.version>
|
<jackson-databind.version>2.13.3</jackson-databind.version>
|
||||||
<maven-release.version>2.5.3</maven-release.version>
|
<maven-release.version>2.5.3</maven-release.version>
|
||||||
<org.glassfish.version>1.1.4</org.glassfish.version>
|
<org.glassfish.version>1.1.4</org.glassfish.version>
|
||||||
<commons-lang3.version>3.12.0</commons-lang3.version>
|
<commons-lang3.version>3.12.0</commons-lang3.version>
|
||||||
<scribejava-apis.version>8.3.1</scribejava-apis.version>
|
<scribejava-apis.version>8.3.1</scribejava-apis.version>
|
||||||
|
<license-maven-plugin.version>2.0.1.alfresco-2</license-maven-plugin.version>
|
||||||
|
<license.update.copyright>false</license.update.copyright>
|
||||||
|
<license.update.dryrun>true</license.update.dryrun>
|
||||||
|
<license.name>community</license.name>
|
||||||
<test.exclude />
|
<test.exclude />
|
||||||
<test.include />
|
<test.include />
|
||||||
<java.version>11</java.version>
|
<java.version>11</java.version>
|
||||||
@@ -66,7 +67,7 @@
|
|||||||
<connection>scm:git:https://github.com/Alfresco/alfresco-tas-restapi.git</connection>
|
<connection>scm:git:https://github.com/Alfresco/alfresco-tas-restapi.git</connection>
|
||||||
<developerConnection>scm:git:https://github.com/Alfresco/alfresco-tas-restapi.git</developerConnection>
|
<developerConnection>scm:git:https://github.com/Alfresco/alfresco-tas-restapi.git</developerConnection>
|
||||||
<url>https://github.com/Alfresco/alfresco-tas-restapi</url>
|
<url>https://github.com/Alfresco/alfresco-tas-restapi</url>
|
||||||
<tag>v1.93</tag>
|
<tag>v1.116</tag>
|
||||||
</scm>
|
</scm>
|
||||||
|
|
||||||
<issueManagement>
|
<issueManagement>
|
||||||
@@ -147,25 +148,63 @@
|
|||||||
<mainClass>org.alfresco.rest.core.swagger.Generator</mainClass>
|
<mainClass>org.alfresco.rest.core.swagger.Generator</mainClass>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-enforcer-plugin</artifactId>
|
<artifactId>maven-enforcer-plugin</artifactId>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>enforce-maven</id>
|
<id>enforce-maven</id>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>enforce</goal>
|
<goal>enforce</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<rules>
|
<rules>
|
||||||
<requireMavenVersion>
|
<requireMavenVersion>
|
||||||
<version>3.3</version>
|
<version>3.3</version>
|
||||||
</requireMavenVersion>
|
</requireMavenVersion>
|
||||||
</rules>
|
</rules>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>license-maven-plugin</artifactId>
|
||||||
|
<version>${license-maven-plugin.version}</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>check-licenses</id>
|
||||||
|
<phase>compile</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>update-file-header</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
|
||||||
|
<organizationName>Alfresco Software Limited</organizationName>
|
||||||
|
<canUpdateCopyright>${license.update.copyright}</canUpdateCopyright>
|
||||||
|
<failOnMissingHeader>true</failOnMissingHeader>
|
||||||
|
<failOnNotUptodateHeader>true</failOnNotUptodateHeader>
|
||||||
|
<licenseResolver>classpath://alfresco</licenseResolver>
|
||||||
|
<licenseName>${license.name}</licenseName>
|
||||||
|
<dryRun>${license.update.dryrun}</dryRun>
|
||||||
|
<roots>
|
||||||
|
<root>src</root>
|
||||||
|
</roots>
|
||||||
|
<includes>
|
||||||
|
<include>**/*.java</include>
|
||||||
|
<include>**/*.jsp</include>
|
||||||
|
</includes>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.alfresco</groupId>
|
||||||
|
<artifactId>alfresco-license-headers</artifactId>
|
||||||
|
<version>1.0</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
@@ -222,7 +261,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>io.rest-assured</groupId>
|
<groupId>io.rest-assured</groupId>
|
||||||
<artifactId>json-path</artifactId>
|
<artifactId>json-path</artifactId>
|
||||||
<version>${json-path.version}</version>
|
<version>${rest-assured.version}</version>
|
||||||
<exclusions>
|
<exclusions>
|
||||||
<exclusion>
|
<exclusion>
|
||||||
<artifactId>commons-lang3</artifactId>
|
<artifactId>commons-lang3</artifactId>
|
||||||
@@ -234,7 +273,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>io.rest-assured</groupId>
|
<groupId>io.rest-assured</groupId>
|
||||||
<artifactId>xml-path</artifactId>
|
<artifactId>xml-path</artifactId>
|
||||||
<version>${xml-path.version}</version>
|
<version>${rest-assured.version}</version>
|
||||||
<exclusions>
|
<exclusions>
|
||||||
<exclusion>
|
<exclusion>
|
||||||
<artifactId>commons-lang3</artifactId>
|
<artifactId>commons-lang3</artifactId>
|
||||||
@@ -246,7 +285,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>io.rest-assured</groupId>
|
<groupId>io.rest-assured</groupId>
|
||||||
<artifactId>json-schema-validator</artifactId>
|
<artifactId>json-schema-validator</artifactId>
|
||||||
<version>${json-schema-validator.version}</version>
|
<version>${rest-assured.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
@@ -300,16 +339,22 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.codehaus.groovy</groupId>
|
<groupId>org.codehaus.groovy</groupId>
|
||||||
<artifactId>groovy</artifactId>
|
<artifactId>groovy</artifactId>
|
||||||
<version>3.0.11</version>
|
<version>3.0.12</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- https://mvnrepository.com/artifact/org.codehaus.groovy/groovy-json-->
|
<!-- https://mvnrepository.com/artifact/org.codehaus.groovy/groovy-json-->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.codehaus.groovy</groupId>
|
<groupId>org.codehaus.groovy</groupId>
|
||||||
<artifactId>groovy-json</artifactId>
|
<artifactId>groovy-json</artifactId>
|
||||||
<version>3.0.11</version>
|
<version>3.0.12</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.mockito</groupId>
|
||||||
|
<artifactId>mockito-core</artifactId>
|
||||||
|
<version>4.2.0</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<reporting>
|
<reporting>
|
||||||
|
@@ -1,3 +1,28 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest;
|
package org.alfresco.rest;
|
||||||
|
|
||||||
import org.alfresco.rest.model.RestNetworkModel;
|
import org.alfresco.rest.model.RestNetworkModel;
|
||||||
|
@@ -1,3 +1,28 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest;
|
package org.alfresco.rest;
|
||||||
|
|
||||||
import java.lang.reflect.Method;
|
import java.lang.reflect.Method;
|
||||||
|
@@ -1,9 +1,32 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.core;
|
package org.alfresco.rest.core;
|
||||||
|
|
||||||
import org.alfresco.rest.core.assertion.IModelAssertion;
|
import org.alfresco.rest.core.assertion.IModelAssertion;
|
||||||
|
|
||||||
public interface IRestModel<Model> extends IModelAssertion<Model> {
|
public interface IRestModel<Model> extends IModelAssertion<Model> {
|
||||||
|
Model onModel();
|
||||||
public Model onModel();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -1,3 +1,28 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.core;
|
package org.alfresco.rest.core;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@@ -1,13 +1,39 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.core;
|
package org.alfresco.rest.core;
|
||||||
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
import javax.json.Json;
|
import javax.json.Json;
|
||||||
import javax.json.JsonArrayBuilder;
|
import javax.json.JsonArrayBuilder;
|
||||||
import javax.json.JsonBuilderFactory;
|
import javax.json.JsonBuilderFactory;
|
||||||
import javax.json.JsonObject;
|
import javax.json.JsonObject;
|
||||||
import javax.json.JsonObjectBuilder;
|
import javax.json.JsonObjectBuilder;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.StringJoiner;
|
||||||
|
|
||||||
import org.alfresco.dataprep.CMISUtil.Priority;
|
import org.alfresco.dataprep.CMISUtil.Priority;
|
||||||
import org.alfresco.rest.model.RestProcessVariableModel;
|
import org.alfresco.rest.model.RestProcessVariableModel;
|
||||||
@@ -18,6 +44,7 @@ import org.alfresco.utility.model.FileModel;
|
|||||||
import org.alfresco.utility.model.FolderModel;
|
import org.alfresco.utility.model.FolderModel;
|
||||||
import org.alfresco.utility.model.RepoTestModel;
|
import org.alfresco.utility.model.RepoTestModel;
|
||||||
import org.alfresco.utility.model.SiteModel;
|
import org.alfresco.utility.model.SiteModel;
|
||||||
|
import org.alfresco.utility.model.TestModel;
|
||||||
import org.alfresco.utility.model.UserModel;
|
import org.alfresco.utility.model.UserModel;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -288,4 +315,21 @@ public class JsonBodyGenerator
|
|||||||
}
|
}
|
||||||
return builder.build().toString();
|
return builder.build().toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert a collection of {@link TestModel} objects to JSON for a multi-entity POST request.
|
||||||
|
*
|
||||||
|
* @param models The entities to convert.
|
||||||
|
* @return The JSON string.
|
||||||
|
*/
|
||||||
|
public static String arrayToJson(List<? extends TestModel> models)
|
||||||
|
{
|
||||||
|
// Rather than convert backwards and forwards between Jackson and javax objects then we handle array creation ourselves.
|
||||||
|
StringJoiner stringJoiner = new StringJoiner(",\n");
|
||||||
|
for (TestModel model : models)
|
||||||
|
{
|
||||||
|
stringJoiner.add(model.toJson());
|
||||||
|
}
|
||||||
|
return "[\n" + stringJoiner.toString() + "\n]";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,3 +1,28 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.core;
|
package org.alfresco.rest.core;
|
||||||
|
|
||||||
import static org.alfresco.utility.report.log.Step.STEP;
|
import static org.alfresco.utility.report.log.Step.STEP;
|
||||||
|
@@ -1,3 +1,28 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.core;
|
package org.alfresco.rest.core;
|
||||||
|
|
||||||
import static org.alfresco.utility.report.log.Step.STEP;
|
import static org.alfresco.utility.report.log.Step.STEP;
|
||||||
@@ -5,14 +30,14 @@ import static org.alfresco.utility.report.log.Step.STEP;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
import org.alfresco.rest.core.assertion.IModelsCollectionAssertion;
|
import org.alfresco.rest.core.assertion.IModelsCollectionAssertion;
|
||||||
import org.alfresco.rest.core.assertion.ModelsCollectionAssertion;
|
import org.alfresco.rest.core.assertion.ModelsCollectionAssertion;
|
||||||
import org.alfresco.rest.exception.EmptyRestModelCollectionException;
|
import org.alfresco.rest.exception.EmptyRestModelCollectionException;
|
||||||
import org.alfresco.rest.model.RestPaginationModel;
|
import org.alfresco.rest.model.RestPaginationModel;
|
||||||
import org.alfresco.rest.model.RestSiteModelsCollection;
|
import org.alfresco.rest.model.RestSiteModelsCollection;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Map multiple entries of JSON response to a class <T>
|
* Map multiple entries of JSON response to a class <T>
|
||||||
*
|
*
|
||||||
@@ -94,7 +119,7 @@ public abstract class RestModels<Model, ModelCollection> implements IRestModelsC
|
|||||||
@Override
|
@Override
|
||||||
public ModelsCollectionAssertion<RestModels<Model, ModelCollection>> assertThat()
|
public ModelsCollectionAssertion<RestModels<Model, ModelCollection>> assertThat()
|
||||||
{
|
{
|
||||||
return new ModelsCollectionAssertion<RestModels<Model, ModelCollection>>(this);
|
return new ModelsCollectionAssertion<>(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -134,4 +159,4 @@ public abstract class RestModels<Model, ModelCollection> implements IRestModelsC
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -1,3 +1,28 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.core;
|
package org.alfresco.rest.core;
|
||||||
|
|
||||||
import org.alfresco.utility.TasProperties;
|
import org.alfresco.utility.TasProperties;
|
||||||
@@ -17,4 +42,4 @@ public class RestProperties
|
|||||||
{
|
{
|
||||||
return properties;
|
return properties;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,17 +1,47 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.core;
|
package org.alfresco.rest.core;
|
||||||
|
|
||||||
import static org.alfresco.utility.report.log.Step.STEP;
|
import static org.alfresco.utility.report.log.Step.STEP;
|
||||||
|
|
||||||
import org.springframework.http.HttpMethod;
|
import java.util.MissingFormatArgumentException;
|
||||||
|
import java.util.regex.Pattern;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
import java.util.stream.IntStream;
|
||||||
|
|
||||||
import io.restassured.RestAssured;
|
import io.restassured.RestAssured;
|
||||||
|
import org.springframework.http.HttpMethod;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Paul Brodner
|
* @author Paul Brodner
|
||||||
*/
|
*/
|
||||||
public class RestRequest
|
public class RestRequest
|
||||||
{
|
{
|
||||||
private String body = "";
|
private static final String TOKEN_REGEX = "\\{.*?}";
|
||||||
|
private String body;
|
||||||
private HttpMethod httpMethod;
|
private HttpMethod httpMethod;
|
||||||
private String path;
|
private String path;
|
||||||
private Object[] pathParams;
|
private Object[] pathParams;
|
||||||
@@ -19,10 +49,7 @@ public class RestRequest
|
|||||||
|
|
||||||
private RestRequest(HttpMethod httpMethod, String path, String... pathParams)
|
private RestRequest(HttpMethod httpMethod, String path, String... pathParams)
|
||||||
{
|
{
|
||||||
setHttpMethod(httpMethod);
|
this(httpMethod, "", path, pathParams);
|
||||||
setPath(path);
|
|
||||||
setPathParams(pathParams);
|
|
||||||
STEP(toString());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private RestRequest(HttpMethod httpMethod, String body, String path, String... pathParams)
|
private RestRequest(HttpMethod httpMethod, String body, String path, String... pathParams)
|
||||||
@@ -31,7 +58,8 @@ public class RestRequest
|
|||||||
setPath(path);
|
setPath(path);
|
||||||
setPathParams(pathParams);
|
setPathParams(pathParams);
|
||||||
setBody(body);
|
setBody(body);
|
||||||
STEP(toString());
|
// Validate that the supplied path and pathParams are compatible.
|
||||||
|
constructPath();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -89,6 +117,7 @@ public class RestRequest
|
|||||||
public void setPath(String path)
|
public void setPath(String path)
|
||||||
{
|
{
|
||||||
this.path = path;
|
this.path = path;
|
||||||
|
addQueryParamsIfNeeded();
|
||||||
}
|
}
|
||||||
|
|
||||||
public Object[] getPathParams()
|
public Object[] getPathParams()
|
||||||
@@ -99,6 +128,32 @@ public class RestRequest
|
|||||||
public void setPathParams(Object[] pathParams)
|
public void setPathParams(Object[] pathParams)
|
||||||
{
|
{
|
||||||
this.pathParams = pathParams;
|
this.pathParams = pathParams;
|
||||||
|
addQueryParamsIfNeeded();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add query parameters to the path if needed.
|
||||||
|
* <p>
|
||||||
|
* e.g. For a path of "api/{fruit}" and params ["apple", "size=10", "colour=red"] then this will
|
||||||
|
* update the path to be "api/{fruit}?{param0}&{param1}" so that the tokens will be populated by
|
||||||
|
* RestAssured to make "api/apple?size=10&colour=red".
|
||||||
|
*/
|
||||||
|
private void addQueryParamsIfNeeded()
|
||||||
|
{
|
||||||
|
// Don't do anything if the path or path params haven't been set yet.
|
||||||
|
if (path == null || path.length() == 0 || pathParams == null)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
int groupCount = (int) Pattern.compile(TOKEN_REGEX).matcher(path).results().count();
|
||||||
|
if (pathParams.length > groupCount)
|
||||||
|
{
|
||||||
|
// Add the remaining parameters to the URL query.
|
||||||
|
String queryParams = IntStream.range(0, pathParams.length - groupCount)
|
||||||
|
.mapToObj(index -> "{parameter" + index + "}")
|
||||||
|
.collect(Collectors.joining("&"));
|
||||||
|
path += (path.contains("?") ? "&" : "?") + queryParams;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getContentType()
|
public String getContentType()
|
||||||
@@ -111,6 +166,10 @@ public class RestRequest
|
|||||||
this.contentType = contentType;
|
this.contentType = contentType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @throws MissingFormatArgumentException If there are not enough pathParams for the path.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public String toString()
|
public String toString()
|
||||||
{
|
{
|
||||||
@@ -119,19 +178,13 @@ public class RestRequest
|
|||||||
.append(getHttpMethod())
|
.append(getHttpMethod())
|
||||||
.append(" ")
|
.append(" ")
|
||||||
.append(RestAssured.baseURI)
|
.append(RestAssured.baseURI)
|
||||||
.append(":")
|
.append("://")
|
||||||
.append(RestAssured.port)
|
.append(RestAssured.port)
|
||||||
.append("/")
|
.append("/")
|
||||||
.append(RestAssured.basePath)
|
.append(RestAssured.basePath)
|
||||||
.append("/");
|
.append("/");
|
||||||
|
|
||||||
String getPathFormatted = getPath();
|
sb.append(constructPath());
|
||||||
if(getPath().contains("{"))
|
|
||||||
{
|
|
||||||
getPathFormatted = getPath().replaceAll("\\{.*?}", "%s");
|
|
||||||
getPathFormatted = String.format(getPathFormatted, getPathParams());
|
|
||||||
}
|
|
||||||
sb.append(getPathFormatted);
|
|
||||||
|
|
||||||
if(!getBody().isEmpty())
|
if(!getBody().isEmpty())
|
||||||
{
|
{
|
||||||
@@ -143,4 +196,21 @@ public class RestRequest
|
|||||||
|
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Populate the path with the pathParams.
|
||||||
|
*
|
||||||
|
* @return The path with tokens replaced with values.
|
||||||
|
* @throws MissingFormatArgumentException If there are not enough pathParams for the path.
|
||||||
|
*/
|
||||||
|
private String constructPath()
|
||||||
|
{
|
||||||
|
String getPathFormatted = getPath();
|
||||||
|
if(getPath().contains("{"))
|
||||||
|
{
|
||||||
|
getPathFormatted = getPath().replaceAll(TOKEN_REGEX, "%s");
|
||||||
|
getPathFormatted = String.format(getPathFormatted, getPathParams());
|
||||||
|
}
|
||||||
|
return getPathFormatted;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,3 +1,28 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.core;
|
package org.alfresco.rest.core;
|
||||||
|
|
||||||
import io.restassured.response.Response;
|
import io.restassured.response.Response;
|
||||||
|
@@ -1,3 +1,28 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.core;
|
package org.alfresco.rest.core;
|
||||||
|
|
||||||
import static io.restassured.RestAssured.basic;
|
import static io.restassured.RestAssured.basic;
|
||||||
@@ -14,6 +39,7 @@ import java.util.ArrayList;
|
|||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.LinkedList;
|
import java.util.LinkedList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
import javax.annotation.PostConstruct;
|
import javax.annotation.PostConstruct;
|
||||||
import javax.xml.parsers.DocumentBuilder;
|
import javax.xml.parsers.DocumentBuilder;
|
||||||
@@ -51,6 +77,7 @@ import org.alfresco.utility.dsl.DSLWrapper;
|
|||||||
import org.alfresco.utility.model.StatusModel;
|
import org.alfresco.utility.model.StatusModel;
|
||||||
import org.alfresco.utility.model.TestModel;
|
import org.alfresco.utility.model.TestModel;
|
||||||
import org.alfresco.utility.model.UserModel;
|
import org.alfresco.utility.model.UserModel;
|
||||||
|
import org.apache.commons.lang3.ArrayUtils;
|
||||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
import org.apache.xml.serialize.OutputFormat;
|
import org.apache.xml.serialize.OutputFormat;
|
||||||
@@ -594,7 +621,16 @@ public class RestWrapper extends DSLWrapper<RestWrapper>
|
|||||||
*/
|
*/
|
||||||
protected Response sendRequest(RestRequest restRequest)
|
protected Response sendRequest(RestRequest restRequest)
|
||||||
{
|
{
|
||||||
Response returnedResponse = null;
|
// If there are unused parameters then include them in the request.
|
||||||
|
String parameters = getParameters();
|
||||||
|
if (parameters != null && !parameters.isEmpty())
|
||||||
|
{
|
||||||
|
restRequest.setPathParams(ArrayUtils.addAll(restRequest.getPathParams(), parameters));
|
||||||
|
}
|
||||||
|
|
||||||
|
STEP(restRequest.toString());
|
||||||
|
|
||||||
|
Response returnedResponse;
|
||||||
switch (restRequest.getHttpMethod())
|
switch (restRequest.getHttpMethod())
|
||||||
{
|
{
|
||||||
case GET:
|
case GET:
|
||||||
@@ -603,7 +639,6 @@ public class RestWrapper extends DSLWrapper<RestWrapper>
|
|||||||
case DELETE:
|
case DELETE:
|
||||||
returnedResponse = onRequest().delete(restRequest.getPath(), restRequest.getPathParams()).andReturn();
|
returnedResponse = onRequest().delete(restRequest.getPath(), restRequest.getPathParams()).andReturn();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case HEAD:
|
case HEAD:
|
||||||
returnedResponse = onRequest().head(restRequest.getPath(), restRequest.getPathParams()).andReturn();
|
returnedResponse = onRequest().head(restRequest.getPath(), restRequest.getPathParams()).andReturn();
|
||||||
break;
|
break;
|
||||||
@@ -841,6 +876,8 @@ public class RestWrapper extends DSLWrapper<RestWrapper>
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Get and clear the stored parameters.
|
||||||
|
*
|
||||||
* @return parameters that you could pass on the request ?param=value
|
* @return parameters that you could pass on the request ?param=value
|
||||||
*/
|
*/
|
||||||
public String getParameters()
|
public String getParameters()
|
||||||
@@ -881,26 +918,17 @@ public class RestWrapper extends DSLWrapper<RestWrapper>
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Send key=value parameters
|
* Send key=value parameters.
|
||||||
* All of them will be automatically passed to url.
|
* <p>
|
||||||
* Example: "maxItems=10000"
|
* Note that this will replace any existing parameters.
|
||||||
*
|
*
|
||||||
* @param parameters
|
* @param parameters A list of URL query parameters - e.g. "maxItems=10000"
|
||||||
* @return
|
* @return The RestWrapper
|
||||||
*/
|
*/
|
||||||
public RestWrapper withParams(String... parameters)
|
public RestWrapper withParams(String... parameters)
|
||||||
{
|
{
|
||||||
StringBuilder paramsUrl = new StringBuilder();
|
String paramsStr = Arrays.stream(parameters).collect(Collectors.joining("&"));
|
||||||
String delimiter = (parameters.length > 1 ? "&" : "");
|
setParameters(paramsStr);
|
||||||
|
|
||||||
for (int i = 0; i < parameters.length; i++)
|
|
||||||
{
|
|
||||||
paramsUrl.append(parameters[i]);
|
|
||||||
if (i < parameters.length - 1)
|
|
||||||
paramsUrl.append(delimiter);
|
|
||||||
}
|
|
||||||
|
|
||||||
setParameters(paramsUrl.toString());
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1166,4 +1194,4 @@ public class RestWrapper extends DSLWrapper<RestWrapper>
|
|||||||
this.serverPort = restProperties.envProperty().getPort();
|
this.serverPort = restProperties.envProperty().getPort();
|
||||||
configureServerEndpoint();
|
configureServerEndpoint();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,8 +1,39 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.core.assertion;
|
package org.alfresco.rest.core.assertion;
|
||||||
|
|
||||||
public interface IModelAssertion<Model>
|
public interface IModelAssertion<Model>
|
||||||
{
|
{
|
||||||
public ModelAssertion<Model> and();
|
default ModelAssertion<Model> assertThat()
|
||||||
|
{
|
||||||
public ModelAssertion<Model> assertThat();
|
return new ModelAssertion<>(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
default ModelAssertion<Model> and()
|
||||||
|
{
|
||||||
|
return assertThat();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,3 +1,28 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.core.assertion;
|
package org.alfresco.rest.core.assertion;
|
||||||
|
|
||||||
@SuppressWarnings("rawtypes")
|
@SuppressWarnings("rawtypes")
|
||||||
@@ -6,5 +31,9 @@ public interface IModelsCollectionAssertion<ModelCollection> {
|
|||||||
|
|
||||||
public ModelsCollectionAssertion assertThat();
|
public ModelsCollectionAssertion assertThat();
|
||||||
|
|
||||||
public ModelCollection when();
|
@SuppressWarnings("unchecked")
|
||||||
|
default ModelCollection when()
|
||||||
|
{
|
||||||
|
return (ModelCollection) this;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,3 +1,28 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.core.assertion;
|
package org.alfresco.rest.core.assertion;
|
||||||
|
|
||||||
import java.lang.reflect.Field;
|
import java.lang.reflect.Field;
|
||||||
@@ -8,14 +33,16 @@ import java.util.LinkedList;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||||
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||||
|
import com.google.gson.Gson;
|
||||||
|
import com.google.gson.JsonObject;
|
||||||
|
|
||||||
|
import io.restassured.path.json.JsonPath;
|
||||||
import org.alfresco.utility.exception.TestConfigurationException;
|
import org.alfresco.utility.exception.TestConfigurationException;
|
||||||
import org.alfresco.utility.model.TestModel;
|
import org.alfresco.utility.model.TestModel;
|
||||||
import org.testng.Assert;
|
import org.testng.Assert;
|
||||||
|
|
||||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
|
||||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
|
||||||
import io.restassured.path.json.JsonPath;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Assertion on Rest Model
|
* Assertion on Rest Model
|
||||||
* Just pass your rest model as constructor
|
* Just pass your rest model as constructor
|
||||||
@@ -32,7 +59,7 @@ public class ModelAssertion<T>
|
|||||||
Assert.fail(String.format("Field {%s} was not found in returned response.",fieldNameToBeRetuned));
|
Assert.fail(String.format("Field {%s} was not found in returned response.",fieldNameToBeRetuned));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private Object model;
|
private final Object model;
|
||||||
|
|
||||||
public ModelAssertion(Object model)
|
public ModelAssertion(Object model)
|
||||||
{
|
{
|
||||||
@@ -41,10 +68,11 @@ public class ModelAssertion<T>
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Use this DSL for asserting particular fields of your model if your model
|
* Use this DSL for asserting particular fields of your model if your model
|
||||||
* is like this (basic POJO) public class Person extends
|
* is like this (basic POJO)
|
||||||
* ModelAssertion<Person> { private String id = "1234"; you can use assert
|
* public class Person extends ModelAssertion<Person>
|
||||||
* the id of this person as:
|
* { private String id = "1234"; }
|
||||||
* Person p = new Person(); p.assertField("id").is("1234")
|
* you can use assert the id of this person as:
|
||||||
|
* Person p = new Person(); p.assertThat().field("id").is("1234")
|
||||||
*
|
*
|
||||||
* @param fieldName
|
* @param fieldName
|
||||||
* @return
|
* @return
|
||||||
@@ -95,6 +123,24 @@ public class ModelAssertion<T>
|
|||||||
return new AssertionItemVerbs(model, actualSize);
|
return new AssertionItemVerbs(model, actualSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Use this method for asserting whole model with different model object. Method allows to ignore particular fields during the comparison.
|
||||||
|
*
|
||||||
|
* WARNING: For proper work model should implement {@code toString()} and {@code equals()} methods.
|
||||||
|
*
|
||||||
|
* @param expected - expected model.
|
||||||
|
* @param ignoreFields - fields which should be ignored during assertion.
|
||||||
|
* @return model.
|
||||||
|
*/
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
|
public T isEqualTo(T expected, String... ignoreFields)
|
||||||
|
{
|
||||||
|
T modelCopy = createCopyIgnoringFields((T) model, ignoreFields);
|
||||||
|
T expectedCopy = createCopyIgnoringFields(expected, ignoreFields);
|
||||||
|
Assert.assertEquals(modelCopy, expectedCopy, String.format("Compared objects of type: %s are not equal!", model.getClass()));
|
||||||
|
return (T) model;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get all fields declared from all classes hierarchy
|
* Get all fields declared from all classes hierarchy
|
||||||
*
|
*
|
||||||
@@ -119,6 +165,18 @@ public class ModelAssertion<T>
|
|||||||
return fields;
|
return fields;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
|
private T createCopyIgnoringFields(T model, String... ignoreFields)
|
||||||
|
{
|
||||||
|
Gson gson = new Gson();
|
||||||
|
JsonObject jsonObject = gson.fromJson(gson.toJson(model), JsonObject.class);
|
||||||
|
for (String ignoreField : ignoreFields)
|
||||||
|
{
|
||||||
|
jsonObject.remove(ignoreField);
|
||||||
|
}
|
||||||
|
return gson.fromJson(gson.toJson(jsonObject), (Class<? extends T>) model.getClass());
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* DSL assertion on Rest Model fields
|
* DSL assertion on Rest Model fields
|
||||||
*
|
*
|
||||||
|
@@ -1,3 +1,28 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.core.assertion;
|
package org.alfresco.rest.core.assertion;
|
||||||
|
|
||||||
import static org.alfresco.utility.report.log.Step.STEP;
|
import static org.alfresco.utility.report.log.Step.STEP;
|
||||||
|
@@ -1,3 +1,28 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.core.assertion;
|
package org.alfresco.rest.core.assertion;
|
||||||
|
|
||||||
import org.alfresco.rest.core.IRestModelsCollection;
|
import org.alfresco.rest.core.IRestModelsCollection;
|
||||||
@@ -76,4 +101,4 @@ public class PaginationAssertionVerbs<C> {
|
|||||||
Assert.assertEquals(getFieldValue(), "", errorMessage("is NOT empty,"));
|
Assert.assertEquals(getFieldValue(), "", errorMessage("is NOT empty,"));
|
||||||
return modelCollection;
|
return modelCollection;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,3 +1,28 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.core.swagger;
|
package org.alfresco.rest.core.swagger;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -1,3 +1,28 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.core.swagger;
|
package org.alfresco.rest.core.swagger;
|
||||||
|
|
||||||
import java.util.AbstractMap;
|
import java.util.AbstractMap;
|
||||||
|
@@ -1,3 +1,28 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.core.swagger;
|
package org.alfresco.rest.core.swagger;
|
||||||
|
|
||||||
import java.io.BufferedReader;
|
import java.io.BufferedReader;
|
||||||
|
@@ -1,3 +1,28 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.core.swagger;
|
package org.alfresco.rest.core.swagger;
|
||||||
|
|
||||||
import java.io.Console;
|
import java.io.Console;
|
||||||
|
@@ -1,3 +1,28 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.core.swagger;
|
package org.alfresco.rest.core.swagger;
|
||||||
|
|
||||||
import java.io.BufferedReader;
|
import java.io.BufferedReader;
|
||||||
|
@@ -1,3 +1,28 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.core.swagger;
|
package org.alfresco.rest.core.swagger;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
@@ -1,3 +1,28 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.core.swagger;
|
package org.alfresco.rest.core.swagger;
|
||||||
|
|
||||||
import org.alfresco.utility.exception.TestConfigurationException;
|
import org.alfresco.utility.exception.TestConfigurationException;
|
||||||
|
@@ -1,3 +1,28 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.exception;
|
package org.alfresco.rest.exception;
|
||||||
|
|
||||||
public class EmptyJsonResponseException extends RuntimeException
|
public class EmptyJsonResponseException extends RuntimeException
|
||||||
|
@@ -1,3 +1,28 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.exception;
|
package org.alfresco.rest.exception;
|
||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
@@ -1,3 +1,28 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.exception;
|
package org.alfresco.rest.exception;
|
||||||
|
|
||||||
public class JsonToModelConversionException extends RuntimeException
|
public class JsonToModelConversionException extends RuntimeException
|
||||||
|
@@ -1,11 +1,36 @@
|
|||||||
package org.alfresco.rest.exception;
|
/*-
|
||||||
|
* #%L
|
||||||
public class ModelToJsonConversionException extends RuntimeException
|
* alfresco-tas-restapi
|
||||||
{
|
* %%
|
||||||
private static final long serialVersionUID = 1L;
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
public <T> ModelToJsonConversionException(Class<T> classz, Exception e)
|
* This file is part of the Alfresco software.
|
||||||
{
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
super(String.format("Could not convert model for [%s] to JSON", classz.getName()), e);
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
}
|
* provided under the following open source license terms:
|
||||||
}
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
|
package org.alfresco.rest.exception;
|
||||||
|
|
||||||
|
public class ModelToJsonConversionException extends RuntimeException
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
public <T> ModelToJsonConversionException(Class<T> classz, Exception e)
|
||||||
|
{
|
||||||
|
super(String.format("Could not convert model for [%s] to JSON", classz.getName()), e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@@ -1,12 +1,37 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import org.alfresco.rest.core.IRestModel;
|
|
||||||
import org.alfresco.rest.core.assertion.ModelAssertion;
|
|
||||||
import org.alfresco.utility.model.TestModel;
|
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
import org.alfresco.rest.core.IRestModel;
|
||||||
|
import org.alfresco.utility.model.TestModel;
|
||||||
|
|
||||||
public class RestAbstractClassModel extends TestModel implements IRestModel<RestAbstractClassModel>
|
public class RestAbstractClassModel extends TestModel implements IRestModel<RestAbstractClassModel>
|
||||||
{
|
{
|
||||||
@JsonProperty(value = "entry")
|
@JsonProperty(value = "entry")
|
||||||
@@ -139,20 +164,4 @@ public class RestAbstractClassModel extends TestModel implements IRestModel<Rest
|
|||||||
{
|
{
|
||||||
this.modelInfo = modelInfo;
|
this.modelInfo = modelInfo;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
/**
|
|
||||||
* DSL for assertion on this rest model
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestAbstractClassModel> assertThat()
|
|
||||||
{
|
|
||||||
return new ModelAssertion<RestAbstractClassModel>(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestAbstractClassModel> and()
|
|
||||||
{
|
|
||||||
return assertThat();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@@ -1,13 +1,37 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.Objects;
|
||||||
|
|
||||||
import org.alfresco.rest.core.IRestModel;
|
|
||||||
import org.alfresco.rest.core.assertion.ModelAssertion;
|
|
||||||
import org.alfresco.utility.model.TestModel;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
import org.alfresco.rest.core.IRestModel;
|
||||||
|
import org.alfresco.utility.model.TestModel;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generated by 'Kristian.Dimitrov@hyland.com' on '2022-07-14 13:22' from 'Alfresco Content Services REST API' swagger file
|
* Generated by 'Kristian.Dimitrov@hyland.com' on '2022-07-14 13:22' from 'Alfresco Content Services REST API' swagger file
|
||||||
* Generated from 'Alfresco Content Services REST API' swagger file
|
* Generated from 'Alfresco Content Services REST API' swagger file
|
||||||
@@ -15,18 +39,6 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
|||||||
*/
|
*/
|
||||||
public class RestActionBodyExecTemplateModel extends TestModel implements IRestModel<RestActionBodyExecTemplateModel>
|
public class RestActionBodyExecTemplateModel extends TestModel implements IRestModel<RestActionBodyExecTemplateModel>
|
||||||
{
|
{
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestActionBodyExecTemplateModel> assertThat()
|
|
||||||
{
|
|
||||||
return new ModelAssertion<RestActionBodyExecTemplateModel>(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestActionBodyExecTemplateModel> and()
|
|
||||||
{
|
|
||||||
return assertThat();
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty(value = "entry")
|
@JsonProperty(value = "entry")
|
||||||
RestActionBodyExecTemplateModel model;
|
RestActionBodyExecTemplateModel model;
|
||||||
|
|
||||||
@@ -60,6 +72,29 @@ public class RestActionBodyExecTemplateModel extends TestModel implements IRestM
|
|||||||
public void setParams(Object params)
|
public void setParams(Object params)
|
||||||
{
|
{
|
||||||
this.params = params;
|
this.params = params;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString()
|
||||||
|
{
|
||||||
|
return "RestActionBodyExecTemplateModel{" + "actionDefinitionId='" + actionDefinitionId + '\'' + ", params=" + params + '}';
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o)
|
||||||
|
{
|
||||||
|
if (this == o)
|
||||||
|
return true;
|
||||||
|
if (o == null || getClass() != o.getClass())
|
||||||
|
return false;
|
||||||
|
RestActionBodyExecTemplateModel that = (RestActionBodyExecTemplateModel) o;
|
||||||
|
return Objects.equals(actionDefinitionId, that.actionDefinitionId) && Objects.equals(params, that.params);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode()
|
||||||
|
{
|
||||||
|
return Objects.hash(actionDefinitionId, params);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1,11 +1,37 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import org.alfresco.rest.core.IRestModel;
|
|
||||||
import org.alfresco.rest.core.assertion.ModelAssertion;
|
|
||||||
import org.alfresco.utility.model.TestModel;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
import org.alfresco.rest.core.IRestModel;
|
||||||
|
import org.alfresco.utility.model.TestModel;
|
||||||
|
|
||||||
public class RestActionDefinitionModel extends TestModel implements IRestModel<RestActionDefinitionModel>
|
public class RestActionDefinitionModel extends TestModel implements IRestModel<RestActionDefinitionModel>
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -100,18 +126,6 @@ public class RestActionDefinitionModel extends TestModel implements IRestModel<R
|
|||||||
this.parameterDefinitions = parameterDefinitions;
|
this.parameterDefinitions = parameterDefinitions;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestActionDefinitionModel> and()
|
|
||||||
{
|
|
||||||
return assertThat();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestActionDefinitionModel> assertThat()
|
|
||||||
{
|
|
||||||
return new ModelAssertion<RestActionDefinitionModel>(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public RestActionDefinitionModel onModel()
|
public RestActionDefinitionModel onModel()
|
||||||
{
|
{
|
||||||
|
@@ -1,3 +1,28 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import org.alfresco.rest.core.RestModels;
|
import org.alfresco.rest.core.RestModels;
|
||||||
|
@@ -1,11 +1,35 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import org.alfresco.rest.core.IRestModel;
|
|
||||||
import org.alfresco.rest.core.assertion.ModelAssertion;
|
|
||||||
import org.alfresco.utility.model.TestModel;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
import org.alfresco.rest.core.IRestModel;
|
||||||
|
import org.alfresco.utility.model.TestModel;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author Cristina Axinte
|
* @author Cristina Axinte
|
||||||
@@ -134,17 +158,4 @@ public class RestActivityModel extends TestModel implements IRestModel<RestActiv
|
|||||||
{
|
{
|
||||||
this.activitySummary = activitySummary;
|
this.activitySummary = activitySummary;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestActivityModel> and()
|
|
||||||
{
|
|
||||||
return assertThat();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestActivityModel> assertThat()
|
|
||||||
{
|
|
||||||
return new ModelAssertion<RestActivityModel>(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -1,3 +1,28 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import org.alfresco.rest.core.RestModels;
|
import org.alfresco.rest.core.RestModels;
|
||||||
|
@@ -1,12 +1,36 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
import org.alfresco.rest.core.IRestModel;
|
import org.alfresco.rest.core.IRestModel;
|
||||||
import org.alfresco.rest.core.assertion.ModelAssertion;
|
|
||||||
import org.alfresco.utility.constants.UserRole;
|
import org.alfresco.utility.constants.UserRole;
|
||||||
import org.alfresco.utility.model.TestModel;
|
import org.alfresco.utility.model.TestModel;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* "activitySummary": {
|
* "activitySummary": {
|
||||||
@@ -117,14 +141,4 @@ public class RestActivitySummaryModel extends TestModel implements IRestModel<Re
|
|||||||
{
|
{
|
||||||
this.objectId = objectId;
|
this.objectId = objectId;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestActivitySummaryModel> and() {
|
|
||||||
return assertThat();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestActivitySummaryModel> assertThat() {
|
|
||||||
return new ModelAssertion<RestActivitySummaryModel>(this);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@@ -1,11 +1,35 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import org.alfresco.rest.core.IRestModel;
|
|
||||||
import org.alfresco.rest.core.assertion.ModelAssertion;
|
|
||||||
import org.alfresco.utility.model.TestModel;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
import org.alfresco.rest.core.IRestModel;
|
||||||
|
import org.alfresco.utility.model.TestModel;
|
||||||
|
|
||||||
public class RestAggregateModel extends TestModel implements IRestModel<RestAggregateModel>
|
public class RestAggregateModel extends TestModel implements IRestModel<RestAggregateModel>
|
||||||
{
|
{
|
||||||
@JsonProperty(value = "aggregate")
|
@JsonProperty(value = "aggregate")
|
||||||
@@ -40,16 +64,4 @@ public class RestAggregateModel extends TestModel implements IRestModel<RestAggr
|
|||||||
{
|
{
|
||||||
this.average = average;
|
this.average = average;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestAggregateModel> and()
|
|
||||||
{
|
|
||||||
return assertThat();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestAggregateModel> assertThat()
|
|
||||||
{
|
|
||||||
return new ModelAssertion<RestAggregateModel>(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@@ -1,3 +1,28 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
/*
|
/*
|
||||||
* Copyright 2021 Alfresco Software, Ltd. All rights reserved.
|
* Copyright 2021 Alfresco Software, Ltd. All rights reserved.
|
||||||
* License rights for this program may be obtained from Alfresco Software, Ltd.
|
* License rights for this program may be obtained from Alfresco Software, Ltd.
|
||||||
@@ -6,12 +31,11 @@
|
|||||||
*/
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import org.alfresco.rest.core.IRestModel;
|
|
||||||
import org.alfresco.rest.core.assertion.ModelAssertion;
|
|
||||||
import org.alfresco.utility.model.TestModel;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
import org.alfresco.rest.core.IRestModel;
|
||||||
|
import org.alfresco.utility.model.TestModel;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generated by 'dedwards' on '2021-12-16 08:32' from 'Alfresco Content Services REST API' swagger file
|
* Generated by 'dedwards' on '2021-12-16 08:32' from 'Alfresco Content Services REST API' swagger file
|
||||||
* Generated from 'Alfresco Content Services REST API' swagger file
|
* Generated from 'Alfresco Content Services REST API' swagger file
|
||||||
@@ -19,18 +43,6 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
|||||||
*/
|
*/
|
||||||
public class RestArchiveContentRequestModel extends TestModel implements IRestModel<RestArchiveContentRequestModel>
|
public class RestArchiveContentRequestModel extends TestModel implements IRestModel<RestArchiveContentRequestModel>
|
||||||
{
|
{
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestArchiveContentRequestModel> assertThat()
|
|
||||||
{
|
|
||||||
return new ModelAssertion<RestArchiveContentRequestModel>(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestArchiveContentRequestModel> and()
|
|
||||||
{
|
|
||||||
return assertThat();
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty(value = "entry")
|
@JsonProperty(value = "entry")
|
||||||
RestArchiveContentRequestModel model;
|
RestArchiveContentRequestModel model;
|
||||||
|
|
||||||
|
@@ -1,3 +1,28 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
public class RestAspectModel extends RestAbstractClassModel
|
public class RestAspectModel extends RestAbstractClassModel
|
||||||
|
@@ -1,3 +1,28 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import org.alfresco.rest.core.RestModels;
|
import org.alfresco.rest.core.RestModels;
|
||||||
|
@@ -1,11 +1,35 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import org.alfresco.rest.core.IRestModel;
|
|
||||||
import org.alfresco.rest.core.assertion.ModelAssertion;
|
|
||||||
import org.alfresco.utility.model.TestModel;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
import org.alfresco.rest.core.IRestModel;
|
||||||
|
import org.alfresco.utility.model.TestModel;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generated by 'aepure' on '2017-06-29 15:31' from 'Alfresco Content Services REST API' swagger file
|
* Generated by 'aepure' on '2017-06-29 15:31' from 'Alfresco Content Services REST API' swagger file
|
||||||
* Generated from 'Alfresco Content Services REST API' swagger file
|
* Generated from 'Alfresco Content Services REST API' swagger file
|
||||||
@@ -13,18 +37,6 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
|||||||
*/
|
*/
|
||||||
public class RestAuditAppModel extends TestModel implements IRestModel<RestAuditAppModel>
|
public class RestAuditAppModel extends TestModel implements IRestModel<RestAuditAppModel>
|
||||||
{
|
{
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestAuditAppModel> assertThat()
|
|
||||||
{
|
|
||||||
return new ModelAssertion<RestAuditAppModel>(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestAuditAppModel> and()
|
|
||||||
{
|
|
||||||
return assertThat();
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty(value = "entry")
|
@JsonProperty(value = "entry")
|
||||||
RestAuditAppModel model;
|
RestAuditAppModel model;
|
||||||
|
|
||||||
|
@@ -1,3 +1,28 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import org.alfresco.rest.core.RestModels;
|
import org.alfresco.rest.core.RestModels;
|
||||||
|
@@ -1,27 +1,39 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import org.alfresco.rest.core.IRestModel;
|
|
||||||
import org.alfresco.rest.core.assertion.ModelAssertion;
|
|
||||||
import org.alfresco.utility.model.TestModel;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
import org.alfresco.rest.core.IRestModel;
|
||||||
|
import org.alfresco.utility.model.TestModel;
|
||||||
|
|
||||||
public class RestAuditEntryModel extends TestModel implements IRestModel<RestAuditEntryModel>
|
public class RestAuditEntryModel extends TestModel implements IRestModel<RestAuditEntryModel>
|
||||||
{
|
{
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestAuditEntryModel> assertThat()
|
|
||||||
{
|
|
||||||
return new ModelAssertion<RestAuditEntryModel>(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestAuditEntryModel> and()
|
|
||||||
{
|
|
||||||
return assertThat();
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty(value = "entry")
|
@JsonProperty(value = "entry")
|
||||||
RestAuditEntryModel model;
|
RestAuditEntryModel model;
|
||||||
|
|
||||||
|
@@ -1,3 +1,28 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import org.alfresco.rest.core.RestModels;
|
import org.alfresco.rest.core.RestModels;
|
||||||
|
@@ -1,3 +1,28 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import org.alfresco.utility.model.TestModel;
|
import org.alfresco.utility.model.TestModel;
|
||||||
|
@@ -1,3 +1,28 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import org.alfresco.utility.model.TestModel;
|
import org.alfresco.utility.model.TestModel;
|
||||||
|
@@ -1,11 +1,35 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import org.alfresco.rest.core.IRestModel;
|
|
||||||
import org.alfresco.rest.core.assertion.ModelAssertion;
|
|
||||||
import org.alfresco.utility.model.TestModel;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
import org.alfresco.rest.core.IRestModel;
|
||||||
|
import org.alfresco.utility.model.TestModel;
|
||||||
|
|
||||||
public class RestCandidateModel extends TestModel implements IRestModel<RestCandidateModel>
|
public class RestCandidateModel extends TestModel implements IRestModel<RestCandidateModel>
|
||||||
{
|
{
|
||||||
@JsonProperty(value = "entry")
|
@JsonProperty(value = "entry")
|
||||||
@@ -44,16 +68,4 @@ public class RestCandidateModel extends TestModel implements IRestModel<RestCand
|
|||||||
{
|
{
|
||||||
this.candidateId = candidateId;
|
this.candidateId = candidateId;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestCandidateModel> and()
|
|
||||||
{
|
|
||||||
return assertThat();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestCandidateModel> assertThat()
|
|
||||||
{
|
|
||||||
return new ModelAssertion<RestCandidateModel>(this);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@@ -1,3 +1,28 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import org.alfresco.rest.core.RestModels;
|
import org.alfresco.rest.core.RestModels;
|
||||||
|
@@ -1,3 +1,28 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import org.alfresco.utility.model.TestModel;
|
import org.alfresco.utility.model.TestModel;
|
||||||
|
@@ -1,3 +1,28 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import org.alfresco.utility.model.TestModel;
|
import org.alfresco.utility.model.TestModel;
|
||||||
|
@@ -1,3 +1,28 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import org.alfresco.utility.model.TestModel;
|
import org.alfresco.utility.model.TestModel;
|
||||||
@@ -59,4 +84,4 @@ public class RestClassModel extends TestModel
|
|||||||
{
|
{
|
||||||
this.namespacePrefix = namespacePrefix;
|
this.namespacePrefix = namespacePrefix;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,11 +1,35 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import org.alfresco.rest.core.IRestModel;
|
|
||||||
import org.alfresco.rest.core.assertion.ModelAssertion;
|
|
||||||
import org.alfresco.utility.model.TestModel;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
import org.alfresco.rest.core.IRestModel;
|
||||||
|
import org.alfresco.utility.model.TestModel;
|
||||||
|
|
||||||
public class RestCommentModel extends TestModel implements IRestModel<RestCommentModel>
|
public class RestCommentModel extends TestModel implements IRestModel<RestCommentModel>
|
||||||
{
|
{
|
||||||
@JsonProperty(value = "entry")
|
@JsonProperty(value = "entry")
|
||||||
@@ -116,17 +140,4 @@ public class RestCommentModel extends TestModel implements IRestModel<RestCommen
|
|||||||
{
|
{
|
||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestCommentModel> and()
|
|
||||||
{
|
|
||||||
return assertThat();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestCommentModel> assertThat()
|
|
||||||
{
|
|
||||||
return new ModelAssertion<RestCommentModel>(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
@@ -1,7 +1,32 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import org.alfresco.rest.core.RestModels;
|
import org.alfresco.rest.core.RestModels;
|
||||||
|
|
||||||
public class RestCommentModelsCollection extends RestModels<RestCommentModel, RestCommentModelsCollection>
|
public class RestCommentModelsCollection extends RestModels<RestCommentModel, RestCommentModelsCollection>
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@@ -1,6 +1,33 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import org.alfresco.rest.core.assertion.ModelAssertion;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
import org.alfresco.rest.core.IRestModel;
|
||||||
import org.alfresco.utility.model.TestModel;
|
import org.alfresco.utility.model.TestModel;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -15,8 +42,10 @@ import org.alfresco.utility.model.TestModel;
|
|||||||
"email": "qLZ41D2QnXQcqySNK09J@yahoo.com"
|
"email": "qLZ41D2QnXQcqySNK09J@yahoo.com"
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
public class RestCompanyModel extends TestModel
|
public class RestCompanyModel extends TestModel implements IRestModel<RestCompanyModel>
|
||||||
{
|
{
|
||||||
|
@JsonProperty (value = "entry")
|
||||||
|
RestCompanyModel model;
|
||||||
private String organization;
|
private String organization;
|
||||||
private String address1;
|
private String address1;
|
||||||
private String address2;
|
private String address2;
|
||||||
@@ -26,16 +55,12 @@ public class RestCompanyModel extends TestModel
|
|||||||
private String fax;
|
private String fax;
|
||||||
private String email;
|
private String email;
|
||||||
|
|
||||||
public ModelAssertion<RestCompanyModel> assertThat()
|
@Override
|
||||||
|
public RestCompanyModel onModel()
|
||||||
{
|
{
|
||||||
return new ModelAssertion<RestCompanyModel>(this);
|
return model;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ModelAssertion<RestCompanyModel> and()
|
|
||||||
{
|
|
||||||
return assertThat();
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getOrganization()
|
public String getOrganization()
|
||||||
{
|
{
|
||||||
return organization;
|
return organization;
|
||||||
@@ -115,5 +140,4 @@ public class RestCompanyModel extends TestModel
|
|||||||
{
|
{
|
||||||
this.email = email;
|
this.email = email;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
|
||||||
|
@@ -1,13 +1,38 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Objects;
|
||||||
import org.alfresco.rest.core.IRestModel;
|
|
||||||
import org.alfresco.rest.core.assertion.ModelAssertion;
|
|
||||||
import org.alfresco.utility.model.TestModel;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
import org.alfresco.rest.core.IRestModel;
|
||||||
|
import org.alfresco.utility.model.TestModel;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generated by 'Kristian.Dimitrov@hyland.com' on '2022-07-13 15:53' from 'Alfresco Content Services REST API' swagger file
|
* Generated by 'Kristian.Dimitrov@hyland.com' on '2022-07-13 15:53' from 'Alfresco Content Services REST API' swagger file
|
||||||
* Generated from 'Alfresco Content Services REST API' swagger file
|
* Generated from 'Alfresco Content Services REST API' swagger file
|
||||||
@@ -15,18 +40,6 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
|||||||
*/
|
*/
|
||||||
public class RestCompositeConditionDefinitionModel extends TestModel implements IRestModel<RestCompositeConditionDefinitionModel>
|
public class RestCompositeConditionDefinitionModel extends TestModel implements IRestModel<RestCompositeConditionDefinitionModel>
|
||||||
{
|
{
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestCompositeConditionDefinitionModel> assertThat()
|
|
||||||
{
|
|
||||||
return new ModelAssertion<RestCompositeConditionDefinitionModel>(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestCompositeConditionDefinitionModel> and()
|
|
||||||
{
|
|
||||||
return assertThat();
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty(value = "entry")
|
@JsonProperty(value = "entry")
|
||||||
RestCompositeConditionDefinitionModel model;
|
RestCompositeConditionDefinitionModel model;
|
||||||
|
|
||||||
@@ -95,6 +108,31 @@ public class RestCompositeConditionDefinitionModel extends TestModel implements
|
|||||||
public void setSimpleConditions(List<RestSimpleConditionDefinitionModel> simpleConditions)
|
public void setSimpleConditions(List<RestSimpleConditionDefinitionModel> simpleConditions)
|
||||||
{
|
{
|
||||||
this.simpleConditions = simpleConditions;
|
this.simpleConditions = simpleConditions;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString()
|
||||||
|
{
|
||||||
|
return "RestCompositeConditionDefinitionModel{" + "inverted=" + inverted + ", booleanMode='" + booleanMode + '\'' + ", compositeConditions=" + compositeConditions
|
||||||
|
+ ", simpleConditions=" + simpleConditions + '}';
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o)
|
||||||
|
{
|
||||||
|
if (this == o)
|
||||||
|
return true;
|
||||||
|
if (o == null || getClass() != o.getClass())
|
||||||
|
return false;
|
||||||
|
RestCompositeConditionDefinitionModel that = (RestCompositeConditionDefinitionModel) o;
|
||||||
|
return inverted == that.inverted && Objects.equals(booleanMode, that.booleanMode) && Objects.equals(compositeConditions, that.compositeConditions) && Objects.equals(
|
||||||
|
simpleConditions, that.simpleConditions);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode()
|
||||||
|
{
|
||||||
|
return Objects.hash(inverted, booleanMode, compositeConditions, simpleConditions);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1,3 +1,28 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@@ -59,4 +84,4 @@ public class RestConstraintDefinitionModel
|
|||||||
{
|
{
|
||||||
this.parameters = parameters;
|
this.parameters = parameters;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,3 +1,28 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import org.alfresco.utility.model.TestModel;
|
import org.alfresco.utility.model.TestModel;
|
||||||
|
@@ -1,3 +1,28 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
/*
|
/*
|
||||||
* Copyright 2021 Alfresco Software, Ltd. All rights reserved.
|
* Copyright 2021 Alfresco Software, Ltd. All rights reserved.
|
||||||
* License rights for this program may be obtained from Alfresco Software, Ltd.
|
* License rights for this program may be obtained from Alfresco Software, Ltd.
|
||||||
@@ -8,12 +33,11 @@ package org.alfresco.rest.model;
|
|||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import org.alfresco.rest.core.IRestModel;
|
|
||||||
import org.alfresco.rest.core.assertion.ModelAssertion;
|
|
||||||
import org.alfresco.utility.model.TestModel;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
import org.alfresco.rest.core.IRestModel;
|
||||||
|
import org.alfresco.utility.model.TestModel;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generated by 'dedwards' on '2021-12-16 08:32' from 'Alfresco Content Services REST API' swagger file
|
* Generated by 'dedwards' on '2021-12-16 08:32' from 'Alfresco Content Services REST API' swagger file
|
||||||
* Generated from 'Alfresco Content Services REST API' swagger file
|
* Generated from 'Alfresco Content Services REST API' swagger file
|
||||||
@@ -21,18 +45,6 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
|||||||
*/
|
*/
|
||||||
public class RestContentStorageInfoModel extends TestModel implements IRestModel<RestContentStorageInfoModel>
|
public class RestContentStorageInfoModel extends TestModel implements IRestModel<RestContentStorageInfoModel>
|
||||||
{
|
{
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestContentStorageInfoModel> assertThat()
|
|
||||||
{
|
|
||||||
return new ModelAssertion<RestContentStorageInfoModel>(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestContentStorageInfoModel> and()
|
|
||||||
{
|
|
||||||
return assertThat();
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty(value = "entry")
|
@JsonProperty(value = "entry")
|
||||||
RestContentStorageInfoModel model;
|
RestContentStorageInfoModel model;
|
||||||
|
|
||||||
|
@@ -1,33 +1,45 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
import org.alfresco.rest.core.IRestModel;
|
import org.alfresco.rest.core.IRestModel;
|
||||||
import org.alfresco.rest.core.assertion.ModelAssertion;
|
|
||||||
import org.alfresco.utility.model.CustomAspectModel;
|
import org.alfresco.utility.model.CustomAspectModel;
|
||||||
import org.alfresco.utility.model.CustomAspectPropertiesModel;
|
import org.alfresco.utility.model.CustomAspectPropertiesModel;
|
||||||
import org.testng.Assert;
|
import org.testng.Assert;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Bogdan Bocancea
|
* @author Bogdan Bocancea
|
||||||
*/
|
*/
|
||||||
public class RestCustomAspectModel extends CustomAspectModel implements IRestModel<RestCustomAspectModel>
|
public class RestCustomAspectModel extends CustomAspectModel implements IRestModel<RestCustomAspectModel>
|
||||||
{
|
{
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestCustomAspectModel> assertThat()
|
|
||||||
{
|
|
||||||
return new ModelAssertion<RestCustomAspectModel>(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestCustomAspectModel> and()
|
|
||||||
{
|
|
||||||
return assertThat();
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty(value = "entry")
|
@JsonProperty(value = "entry")
|
||||||
RestCustomAspectModel model;
|
RestCustomAspectModel model;
|
||||||
|
|
||||||
|
@@ -1,11 +1,35 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import org.alfresco.rest.core.IRestModel;
|
|
||||||
import org.alfresco.rest.core.assertion.ModelAssertion;
|
|
||||||
import org.alfresco.utility.model.CustomContentModel;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
import org.alfresco.rest.core.IRestModel;
|
||||||
|
import org.alfresco.utility.model.CustomContentModel;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Bogdan Bocancea
|
* @author Bogdan Bocancea
|
||||||
*/
|
*/
|
||||||
@@ -14,18 +38,6 @@ public class RestCustomModel extends CustomContentModel implements IRestModel<Re
|
|||||||
@JsonProperty(value = "entry")
|
@JsonProperty(value = "entry")
|
||||||
RestCustomModel model;
|
RestCustomModel model;
|
||||||
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestCustomModel> and()
|
|
||||||
{
|
|
||||||
return assertThat();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestCustomModel> assertThat()
|
|
||||||
{
|
|
||||||
return new ModelAssertion<>(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public RestCustomModel onModel()
|
public RestCustomModel onModel()
|
||||||
{
|
{
|
||||||
|
@@ -1,13 +1,38 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
import org.alfresco.rest.core.IRestModel;
|
import org.alfresco.rest.core.IRestModel;
|
||||||
import org.alfresco.rest.core.assertion.ModelAssertion;
|
|
||||||
import org.alfresco.utility.model.CustomAspectPropertiesModel;
|
import org.alfresco.utility.model.CustomAspectPropertiesModel;
|
||||||
import org.alfresco.utility.model.TestModel;
|
import org.alfresco.utility.model.TestModel;
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Bogdan Bocancea
|
* @author Bogdan Bocancea
|
||||||
*/
|
*/
|
||||||
@@ -55,18 +80,6 @@ public class RestCustomTypeModel extends TestModel implements IRestModel<RestCus
|
|||||||
return model;
|
return model;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestCustomTypeModel> and()
|
|
||||||
{
|
|
||||||
return assertThat();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestCustomTypeModel> assertThat()
|
|
||||||
{
|
|
||||||
return new ModelAssertion<RestCustomTypeModel>(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName()
|
public String getName()
|
||||||
{
|
{
|
||||||
return name;
|
return name;
|
||||||
|
@@ -1,11 +1,35 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import org.alfresco.rest.core.IRestModel;
|
|
||||||
import org.alfresco.rest.core.assertion.ModelAssertion;
|
|
||||||
import org.alfresco.utility.model.TestModel;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
import org.alfresco.rest.core.IRestModel;
|
||||||
|
import org.alfresco.utility.model.TestModel;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Handles single Deployment Entry JSON response
|
* Handles single Deployment Entry JSON response
|
||||||
* "entry": {
|
* "entry": {
|
||||||
@@ -83,16 +107,4 @@ public class RestDeploymentModel extends TestModel implements IRestModel<RestDep
|
|||||||
{
|
{
|
||||||
this.deployedAt = deployedAt;
|
this.deployedAt = deployedAt;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestDeploymentModel> and()
|
|
||||||
{
|
|
||||||
return assertThat();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestDeploymentModel> assertThat()
|
|
||||||
{
|
|
||||||
return new ModelAssertion<>(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@@ -1,3 +1,28 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import static org.alfresco.utility.report.log.Step.STEP;
|
import static org.alfresco.utility.report.log.Step.STEP;
|
||||||
@@ -43,4 +68,4 @@ public class RestDeploymentModelsCollection extends RestModels<RestDeploymentMod
|
|||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,25 +1,37 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import org.alfresco.rest.core.IRestModel;
|
|
||||||
import org.alfresco.rest.core.assertion.ModelAssertion;
|
|
||||||
import org.alfresco.utility.model.TestModel;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
import org.alfresco.rest.core.IRestModel;
|
||||||
|
import org.alfresco.utility.model.TestModel;
|
||||||
|
|
||||||
public class RestDiscoveryModel extends TestModel implements IRestModel<RestDiscoveryModel>
|
public class RestDiscoveryModel extends TestModel implements IRestModel<RestDiscoveryModel>
|
||||||
{
|
{
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestDiscoveryModel> assertThat()
|
|
||||||
{
|
|
||||||
return new ModelAssertion<RestDiscoveryModel>(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestDiscoveryModel> and()
|
|
||||||
{
|
|
||||||
return assertThat();
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty(value = "entry")
|
@JsonProperty(value = "entry")
|
||||||
RestDiscoveryModel model;
|
RestDiscoveryModel model;
|
||||||
|
|
||||||
|
@@ -1,11 +1,35 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import org.alfresco.rest.core.IRestModel;
|
|
||||||
import org.alfresco.rest.core.assertion.ModelAssertion;
|
|
||||||
import org.alfresco.utility.model.TestModel;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
import org.alfresco.rest.core.IRestModel;
|
||||||
|
import org.alfresco.utility.model.TestModel;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Handles responses for GET /downloads/{downloadId} and POST /downloads rest calls
|
* Handles responses for GET /downloads/{downloadId} and POST /downloads rest calls
|
||||||
* E.g
|
* E.g
|
||||||
@@ -23,18 +47,6 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
|||||||
|
|
||||||
public class RestDownloadsModel extends TestModel implements IRestModel<RestDownloadsModel>
|
public class RestDownloadsModel extends TestModel implements IRestModel<RestDownloadsModel>
|
||||||
{
|
{
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestDownloadsModel> assertThat()
|
|
||||||
{
|
|
||||||
return new ModelAssertion<RestDownloadsModel>(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestDownloadsModel> and()
|
|
||||||
{
|
|
||||||
return assertThat();
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty(value = "entry")
|
@JsonProperty(value = "entry")
|
||||||
RestDownloadsModel model;
|
RestDownloadsModel model;
|
||||||
|
|
||||||
|
@@ -1,3 +1,28 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@@ -1,11 +1,35 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import org.alfresco.rest.core.IRestModel;
|
|
||||||
import org.alfresco.rest.core.assertion.ModelAssertion;
|
|
||||||
import org.alfresco.utility.model.TestModel;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
import org.alfresco.rest.core.IRestModel;
|
||||||
|
import org.alfresco.utility.model.TestModel;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generated by 'aforascu' on '2018-01-10 16:02' from 'Alfresco Content Services REST API' swagger file
|
* Generated by 'aforascu' on '2018-01-10 16:02' from 'Alfresco Content Services REST API' swagger file
|
||||||
* Generated from 'Alfresco Content Services REST API' swagger file
|
* Generated from 'Alfresco Content Services REST API' swagger file
|
||||||
@@ -13,18 +37,6 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
|||||||
*/
|
*/
|
||||||
public class RestEntitlementsInfoModel extends TestModel implements IRestModel<RestEntitlementsInfoModel>
|
public class RestEntitlementsInfoModel extends TestModel implements IRestModel<RestEntitlementsInfoModel>
|
||||||
{
|
{
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestEntitlementsInfoModel> assertThat()
|
|
||||||
{
|
|
||||||
return new ModelAssertion<RestEntitlementsInfoModel>(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestEntitlementsInfoModel> and()
|
|
||||||
{
|
|
||||||
return assertThat();
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty(value = "entry")
|
@JsonProperty(value = "entry")
|
||||||
RestEntitlementsInfoModel model;
|
RestEntitlementsInfoModel model;
|
||||||
|
|
||||||
|
@@ -1,3 +1,28 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import org.springframework.http.HttpStatus;
|
import org.springframework.http.HttpStatus;
|
||||||
|
@@ -1,11 +1,35 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import org.alfresco.rest.core.IRestModel;
|
|
||||||
import org.alfresco.rest.core.assertion.ModelAssertion;
|
|
||||||
import org.alfresco.utility.model.TestModel;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
import org.alfresco.rest.core.IRestModel;
|
||||||
|
import org.alfresco.utility.model.TestModel;
|
||||||
|
|
||||||
public class RestFavoriteSiteModel extends TestModel implements IRestModel<RestFavoriteSiteModel>
|
public class RestFavoriteSiteModel extends TestModel implements IRestModel<RestFavoriteSiteModel>
|
||||||
{
|
{
|
||||||
@JsonProperty(value = "entry")
|
@JsonProperty(value = "entry")
|
||||||
@@ -27,16 +51,4 @@ public class RestFavoriteSiteModel extends TestModel implements IRestModel<RestF
|
|||||||
{
|
{
|
||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestFavoriteSiteModel> and()
|
|
||||||
{
|
|
||||||
return assertThat();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestFavoriteSiteModel> assertThat()
|
|
||||||
{
|
|
||||||
return new ModelAssertion<RestFavoriteSiteModel>(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@@ -1,260 +1,272 @@
|
|||||||
package org.alfresco.rest.model;
|
/*-
|
||||||
|
* #%L
|
||||||
import org.alfresco.rest.core.IRestModel;
|
* alfresco-tas-restapi
|
||||||
import org.alfresco.rest.core.assertion.ModelAssertion;
|
* %%
|
||||||
import org.alfresco.utility.model.TestModel;
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
/**
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
* Handles single Folder JSON responses
|
* provided under the following open source license terms:
|
||||||
* Example:
|
*
|
||||||
"createdAt": "2016-10-03T09:48:52.385+0000",
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
"sizeInBytes": 19,
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
"versionLabel": "1.0",
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
"createdBy": "admin",
|
* (at your option) any later version.
|
||||||
"modifiedAt": "2016-10-03T09:48:52.385+0000",
|
*
|
||||||
"name": "file-OUQAyqdsNi.txt",
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
"guid": "00f6b250-a841-4ff6-b660-5b45cee30497",
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
"modifiedBy": "admin",
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
"mimeType": "text/plain",
|
* GNU Lesser General Public License for more details.
|
||||||
"id": "00f6b250-a841-4ff6-b660-5b45cee30497"
|
*
|
||||||
*/
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
public class RestFileModel extends TestModel implements IRestModel<RestFileModel>
|
* #L%
|
||||||
{
|
*/
|
||||||
@JsonProperty(value = "entry")
|
package org.alfresco.rest.model;
|
||||||
RestFileModel model;
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
@Override
|
|
||||||
public RestFileModel onModel()
|
import org.alfresco.rest.core.IRestModel;
|
||||||
{
|
import org.alfresco.utility.model.TestModel;
|
||||||
return model;
|
|
||||||
}
|
/**
|
||||||
|
* Handles single Folder JSON responses
|
||||||
@JsonProperty(required = true)
|
* Example:
|
||||||
protected String createdAt;
|
"createdAt": "2016-10-03T09:48:52.385+0000",
|
||||||
|
"sizeInBytes": 19,
|
||||||
@JsonProperty(required = true)
|
"versionLabel": "1.0",
|
||||||
protected String sizeInBytes;
|
"createdBy": "admin",
|
||||||
|
"modifiedAt": "2016-10-03T09:48:52.385+0000",
|
||||||
@JsonProperty(required = true)
|
"name": "file-OUQAyqdsNi.txt",
|
||||||
protected String versionLabel;
|
"guid": "00f6b250-a841-4ff6-b660-5b45cee30497",
|
||||||
|
"modifiedBy": "admin",
|
||||||
@JsonProperty(required = true)
|
"mimeType": "text/plain",
|
||||||
protected String createdBy;
|
"id": "00f6b250-a841-4ff6-b660-5b45cee30497"
|
||||||
|
*/
|
||||||
@JsonProperty(required = true)
|
|
||||||
protected String modifiedAt;
|
public class RestFileModel extends TestModel implements IRestModel<RestFileModel>
|
||||||
|
{
|
||||||
@JsonProperty(required = true)
|
@JsonProperty(value = "entry")
|
||||||
protected String name;
|
RestFileModel model;
|
||||||
|
|
||||||
@JsonProperty(required = true)
|
@Override
|
||||||
protected String guid;
|
public RestFileModel onModel()
|
||||||
|
{
|
||||||
@JsonProperty(required = true)
|
return model;
|
||||||
protected String modifiedBy;
|
}
|
||||||
|
|
||||||
@JsonProperty(required = true)
|
@JsonProperty(required = true)
|
||||||
protected String mimeType;
|
protected String createdAt;
|
||||||
|
|
||||||
@JsonProperty(required = true)
|
@JsonProperty(required = true)
|
||||||
protected String id;
|
protected String sizeInBytes;
|
||||||
|
|
||||||
@JsonProperty(required = false)
|
@JsonProperty(required = true)
|
||||||
RestPathModel path;
|
protected String versionLabel;
|
||||||
|
|
||||||
private boolean isFile;
|
@JsonProperty(required = true)
|
||||||
private boolean isFolder;
|
protected String createdBy;
|
||||||
private RestByUserModel createdByUser;
|
|
||||||
private RestByUserModel modifiedByUser;
|
@JsonProperty(required = true)
|
||||||
private RestContentModel content;
|
protected String modifiedAt;
|
||||||
private String parentId;
|
|
||||||
|
@JsonProperty(required = true)
|
||||||
public RestFileModel()
|
protected String name;
|
||||||
{
|
|
||||||
}
|
@JsonProperty(required = true)
|
||||||
|
protected String guid;
|
||||||
public String getCreatedAt()
|
|
||||||
{
|
@JsonProperty(required = true)
|
||||||
return createdAt;
|
protected String modifiedBy;
|
||||||
}
|
|
||||||
|
@JsonProperty(required = true)
|
||||||
public void setCreatedAt(String createdAt)
|
protected String mimeType;
|
||||||
{
|
|
||||||
this.createdAt = createdAt;
|
@JsonProperty(required = true)
|
||||||
}
|
protected String id;
|
||||||
|
|
||||||
public String getSizeInBytes()
|
@JsonProperty(required = false)
|
||||||
{
|
RestPathModel path;
|
||||||
return sizeInBytes;
|
|
||||||
}
|
private boolean isFile;
|
||||||
|
private boolean isFolder;
|
||||||
public void setSizeInBytes(String sizeInBytes)
|
private RestByUserModel createdByUser;
|
||||||
{
|
private RestByUserModel modifiedByUser;
|
||||||
this.sizeInBytes = sizeInBytes;
|
private RestContentModel content;
|
||||||
}
|
private String parentId;
|
||||||
|
|
||||||
public String getVersionLabel()
|
public RestFileModel()
|
||||||
{
|
{
|
||||||
return versionLabel;
|
}
|
||||||
}
|
|
||||||
|
public String getCreatedAt()
|
||||||
public void setVersionLabel(String versionLabel)
|
{
|
||||||
{
|
return createdAt;
|
||||||
this.versionLabel = versionLabel;
|
}
|
||||||
}
|
|
||||||
|
public void setCreatedAt(String createdAt)
|
||||||
public String getCreatedBy()
|
{
|
||||||
{
|
this.createdAt = createdAt;
|
||||||
return createdBy;
|
}
|
||||||
}
|
|
||||||
|
public String getSizeInBytes()
|
||||||
public void setCreatedBy(String createdBy)
|
{
|
||||||
{
|
return sizeInBytes;
|
||||||
this.createdBy = createdBy;
|
}
|
||||||
}
|
|
||||||
|
public void setSizeInBytes(String sizeInBytes)
|
||||||
public String getModifiedBy()
|
{
|
||||||
{
|
this.sizeInBytes = sizeInBytes;
|
||||||
return modifiedBy;
|
}
|
||||||
}
|
|
||||||
|
public String getVersionLabel()
|
||||||
public void setModifiedBy(String modifiedBy)
|
{
|
||||||
{
|
return versionLabel;
|
||||||
this.modifiedBy = modifiedBy;
|
}
|
||||||
}
|
|
||||||
|
public void setVersionLabel(String versionLabel)
|
||||||
public String getModifiedAt()
|
{
|
||||||
{
|
this.versionLabel = versionLabel;
|
||||||
return modifiedAt;
|
}
|
||||||
}
|
|
||||||
|
public String getCreatedBy()
|
||||||
public void setModifiedAt(String modifiedAt)
|
{
|
||||||
{
|
return createdBy;
|
||||||
this.modifiedAt = modifiedAt;
|
}
|
||||||
}
|
|
||||||
|
public void setCreatedBy(String createdBy)
|
||||||
public String getGuid()
|
{
|
||||||
{
|
this.createdBy = createdBy;
|
||||||
return guid;
|
}
|
||||||
}
|
|
||||||
|
public String getModifiedBy()
|
||||||
public void setGuid(String guid)
|
{
|
||||||
{
|
return modifiedBy;
|
||||||
this.guid = guid;
|
}
|
||||||
}
|
|
||||||
|
public void setModifiedBy(String modifiedBy)
|
||||||
public String getId()
|
{
|
||||||
{
|
this.modifiedBy = modifiedBy;
|
||||||
return id;
|
}
|
||||||
}
|
|
||||||
|
public String getModifiedAt()
|
||||||
public void setId(String id)
|
{
|
||||||
{
|
return modifiedAt;
|
||||||
this.id = id;
|
}
|
||||||
}
|
|
||||||
|
public void setModifiedAt(String modifiedAt)
|
||||||
public String getName()
|
{
|
||||||
{
|
this.modifiedAt = modifiedAt;
|
||||||
return name;
|
}
|
||||||
}
|
|
||||||
|
public String getGuid()
|
||||||
public void setName(String name)
|
{
|
||||||
{
|
return guid;
|
||||||
this.name = name;
|
}
|
||||||
}
|
|
||||||
|
public void setGuid(String guid)
|
||||||
public String getMimeType()
|
{
|
||||||
{
|
this.guid = guid;
|
||||||
return mimeType;
|
}
|
||||||
}
|
|
||||||
|
public String getId()
|
||||||
public void setMimeType(String mimeType)
|
{
|
||||||
{
|
return id;
|
||||||
this.mimeType = mimeType;
|
}
|
||||||
}
|
|
||||||
|
public void setId(String id)
|
||||||
public boolean getIsFile()
|
{
|
||||||
{
|
this.id = id;
|
||||||
return isFile;
|
}
|
||||||
}
|
|
||||||
|
public String getName()
|
||||||
public void setIsFile(boolean isFile)
|
{
|
||||||
{
|
return name;
|
||||||
this.isFile = isFile;
|
}
|
||||||
}
|
|
||||||
|
public void setName(String name)
|
||||||
public RestByUserModel getCreatedByUser()
|
{
|
||||||
{
|
this.name = name;
|
||||||
return createdByUser;
|
}
|
||||||
}
|
|
||||||
|
public String getMimeType()
|
||||||
public void setCreatedByUser(RestByUserModel createdByUser)
|
{
|
||||||
{
|
return mimeType;
|
||||||
this.createdByUser = createdByUser;
|
}
|
||||||
}
|
|
||||||
|
public void setMimeType(String mimeType)
|
||||||
public RestByUserModel getModifiedByUser()
|
{
|
||||||
{
|
this.mimeType = mimeType;
|
||||||
return modifiedByUser;
|
}
|
||||||
}
|
|
||||||
|
public boolean getIsFile()
|
||||||
public void setModifiedByUser(RestByUserModel modifiedByUser)
|
{
|
||||||
{
|
return isFile;
|
||||||
this.modifiedByUser = modifiedByUser;
|
}
|
||||||
}
|
|
||||||
|
public void setIsFile(boolean isFile)
|
||||||
public RestContentModel getContent()
|
{
|
||||||
{
|
this.isFile = isFile;
|
||||||
return content;
|
}
|
||||||
}
|
|
||||||
|
public RestByUserModel getCreatedByUser()
|
||||||
public void setContent(RestContentModel content)
|
{
|
||||||
{
|
return createdByUser;
|
||||||
this.content = content;
|
}
|
||||||
}
|
|
||||||
|
public void setCreatedByUser(RestByUserModel createdByUser)
|
||||||
public String getParentId()
|
{
|
||||||
{
|
this.createdByUser = createdByUser;
|
||||||
return parentId;
|
}
|
||||||
}
|
|
||||||
|
public RestByUserModel getModifiedByUser()
|
||||||
public void setParentId(String parentId)
|
{
|
||||||
{
|
return modifiedByUser;
|
||||||
this.parentId = parentId;
|
}
|
||||||
}
|
|
||||||
|
public void setModifiedByUser(RestByUserModel modifiedByUser)
|
||||||
public boolean getIsFolder()
|
{
|
||||||
{
|
this.modifiedByUser = modifiedByUser;
|
||||||
return isFolder;
|
}
|
||||||
}
|
|
||||||
|
public RestContentModel getContent()
|
||||||
public void setIsFolder(boolean isFolder)
|
{
|
||||||
{
|
return content;
|
||||||
this.isFolder = isFolder;
|
}
|
||||||
}
|
|
||||||
|
public void setContent(RestContentModel content)
|
||||||
public RestPathModel getPath()
|
{
|
||||||
{
|
this.content = content;
|
||||||
return path;
|
}
|
||||||
}
|
|
||||||
|
public String getParentId()
|
||||||
public void setPath(RestPathModel path)
|
{
|
||||||
{
|
return parentId;
|
||||||
this.path = path;
|
}
|
||||||
}
|
|
||||||
|
public void setParentId(String parentId)
|
||||||
@Override
|
{
|
||||||
public ModelAssertion<RestFileModel> and()
|
this.parentId = parentId;
|
||||||
{
|
}
|
||||||
return assertThat();
|
|
||||||
}
|
public boolean getIsFolder()
|
||||||
|
{
|
||||||
@Override
|
return isFolder;
|
||||||
public ModelAssertion<RestFileModel> assertThat()
|
}
|
||||||
{
|
|
||||||
return new ModelAssertion<RestFileModel>(this);
|
public void setIsFolder(boolean isFolder)
|
||||||
}
|
{
|
||||||
}
|
this.isFolder = isFolder;
|
||||||
|
}
|
||||||
|
|
||||||
|
public RestPathModel getPath()
|
||||||
|
{
|
||||||
|
return path;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPath(RestPathModel path)
|
||||||
|
{
|
||||||
|
this.path = path;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@@ -1,207 +1,219 @@
|
|||||||
package org.alfresco.rest.model;
|
/*-
|
||||||
|
* #%L
|
||||||
import org.alfresco.rest.core.IRestModel;
|
* alfresco-tas-restapi
|
||||||
import org.alfresco.rest.core.assertion.ModelAssertion;
|
* %%
|
||||||
import org.alfresco.utility.model.TestModel;
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
/**
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
* Handles single Folder JSON responses
|
* provided under the following open source license terms:
|
||||||
* Example:
|
*
|
||||||
"createdAt": "2016-10-03T08:15:08.722+0000",
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
"createdBy": "admin",
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
"modifiedAt": "2016-10-03T08:15:08.722+0000",
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
"name": "Folder-EJJXzPAauf",
|
* (at your option) any later version.
|
||||||
"guid": "fd84a762-7fea-4ed8-b9cd-7622ab966ac4",
|
*
|
||||||
"modifiedBy": "admin",
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
"id": "fd84a762-7fea-4ed8-b9cd-7622ab966ac4"
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
*/
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
public class RestFolderModel extends TestModel implements IRestModel<RestFolderModel>
|
*
|
||||||
{
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
@JsonProperty(value = "entry")
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
RestFolderModel model;
|
* #L%
|
||||||
|
*/
|
||||||
@Override
|
package org.alfresco.rest.model;
|
||||||
public RestFolderModel onModel()
|
|
||||||
{
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
return model;
|
|
||||||
}
|
import org.alfresco.rest.core.IRestModel;
|
||||||
|
import org.alfresco.utility.model.TestModel;
|
||||||
@JsonProperty(required = true)
|
|
||||||
protected String createdAt;
|
/**
|
||||||
|
* Handles single Folder JSON responses
|
||||||
@JsonProperty(required = true)
|
* Example:
|
||||||
protected String createdBy;
|
"createdAt": "2016-10-03T08:15:08.722+0000",
|
||||||
|
"createdBy": "admin",
|
||||||
@JsonProperty(required = true)
|
"modifiedAt": "2016-10-03T08:15:08.722+0000",
|
||||||
protected String modifiedAt;
|
"name": "Folder-EJJXzPAauf",
|
||||||
|
"guid": "fd84a762-7fea-4ed8-b9cd-7622ab966ac4",
|
||||||
@JsonProperty(required = true)
|
"modifiedBy": "admin",
|
||||||
protected String name;
|
"id": "fd84a762-7fea-4ed8-b9cd-7622ab966ac4"
|
||||||
|
*/
|
||||||
@JsonProperty(required = true)
|
|
||||||
protected String guid;
|
public class RestFolderModel extends TestModel implements IRestModel<RestFolderModel>
|
||||||
|
{
|
||||||
@JsonProperty(required = true)
|
@JsonProperty(value = "entry")
|
||||||
protected String modifiedBy;
|
RestFolderModel model;
|
||||||
|
|
||||||
@JsonProperty(required = true)
|
@Override
|
||||||
protected String id;
|
public RestFolderModel onModel()
|
||||||
|
{
|
||||||
@JsonProperty(required = false)
|
return model;
|
||||||
RestPathModel path;
|
}
|
||||||
|
|
||||||
private boolean isFolder;
|
@JsonProperty(required = true)
|
||||||
private boolean isFile;
|
protected String createdAt;
|
||||||
private RestByUserModel createdByUser;
|
|
||||||
private RestByUserModel modifiedByUser;
|
@JsonProperty(required = true)
|
||||||
private String parentId;
|
protected String createdBy;
|
||||||
|
|
||||||
public RestFolderModel()
|
@JsonProperty(required = true)
|
||||||
{
|
protected String modifiedAt;
|
||||||
}
|
|
||||||
|
@JsonProperty(required = true)
|
||||||
public String getCreatedAt()
|
protected String name;
|
||||||
{
|
|
||||||
return createdAt;
|
@JsonProperty(required = true)
|
||||||
}
|
protected String guid;
|
||||||
|
|
||||||
public void setCreatedAt(String createdAt)
|
@JsonProperty(required = true)
|
||||||
{
|
protected String modifiedBy;
|
||||||
this.createdAt = createdAt;
|
|
||||||
}
|
@JsonProperty(required = true)
|
||||||
|
protected String id;
|
||||||
public String getCreatedBy()
|
|
||||||
{
|
@JsonProperty(required = false)
|
||||||
return createdBy;
|
RestPathModel path;
|
||||||
}
|
|
||||||
|
private boolean isFolder;
|
||||||
public void setCreatedBy(String createdBy)
|
private boolean isFile;
|
||||||
{
|
private RestByUserModel createdByUser;
|
||||||
this.createdBy = createdBy;
|
private RestByUserModel modifiedByUser;
|
||||||
}
|
private String parentId;
|
||||||
|
|
||||||
public String getModifiedBy()
|
public RestFolderModel()
|
||||||
{
|
{
|
||||||
return modifiedBy;
|
}
|
||||||
}
|
|
||||||
|
public String getCreatedAt()
|
||||||
public void setModifiedBy(String modifiedBy)
|
{
|
||||||
{
|
return createdAt;
|
||||||
this.modifiedBy = modifiedBy;
|
}
|
||||||
}
|
|
||||||
|
public void setCreatedAt(String createdAt)
|
||||||
public String getModifiedAt()
|
{
|
||||||
{
|
this.createdAt = createdAt;
|
||||||
return modifiedAt;
|
}
|
||||||
}
|
|
||||||
|
public String getCreatedBy()
|
||||||
public void setModifiedAt(String modifiedAt)
|
{
|
||||||
{
|
return createdBy;
|
||||||
this.modifiedAt = modifiedAt;
|
}
|
||||||
}
|
|
||||||
|
public void setCreatedBy(String createdBy)
|
||||||
public String getGuid()
|
{
|
||||||
{
|
this.createdBy = createdBy;
|
||||||
return guid;
|
}
|
||||||
}
|
|
||||||
|
public String getModifiedBy()
|
||||||
public void setGuid(String guid)
|
{
|
||||||
{
|
return modifiedBy;
|
||||||
this.guid = guid;
|
}
|
||||||
}
|
|
||||||
|
public void setModifiedBy(String modifiedBy)
|
||||||
public String getId()
|
{
|
||||||
{
|
this.modifiedBy = modifiedBy;
|
||||||
return id;
|
}
|
||||||
}
|
|
||||||
|
public String getModifiedAt()
|
||||||
public void setId(String id)
|
{
|
||||||
{
|
return modifiedAt;
|
||||||
this.id = id;
|
}
|
||||||
}
|
|
||||||
|
public void setModifiedAt(String modifiedAt)
|
||||||
public String getName()
|
{
|
||||||
{
|
this.modifiedAt = modifiedAt;
|
||||||
return name;
|
}
|
||||||
}
|
|
||||||
|
public String getGuid()
|
||||||
public void setName(String name)
|
{
|
||||||
{
|
return guid;
|
||||||
this.name = name;
|
}
|
||||||
}
|
|
||||||
|
public void setGuid(String guid)
|
||||||
public boolean getIsFolder()
|
{
|
||||||
{
|
this.guid = guid;
|
||||||
return isFolder;
|
}
|
||||||
}
|
|
||||||
|
public String getId()
|
||||||
public void setIsFolder(boolean isFolder)
|
{
|
||||||
{
|
return id;
|
||||||
this.isFolder = isFolder;
|
}
|
||||||
}
|
|
||||||
|
public void setId(String id)
|
||||||
public boolean getIsFile()
|
{
|
||||||
{
|
this.id = id;
|
||||||
return isFile;
|
}
|
||||||
}
|
|
||||||
|
public String getName()
|
||||||
public void setIsFile(boolean isFile)
|
{
|
||||||
{
|
return name;
|
||||||
this.isFile = isFile;
|
}
|
||||||
}
|
|
||||||
|
public void setName(String name)
|
||||||
public RestByUserModel getCreatedByUser()
|
{
|
||||||
{
|
this.name = name;
|
||||||
return createdByUser;
|
}
|
||||||
}
|
|
||||||
|
public boolean getIsFolder()
|
||||||
public void setCreatedByUser(RestByUserModel createdByUser)
|
{
|
||||||
{
|
return isFolder;
|
||||||
this.createdByUser = createdByUser;
|
}
|
||||||
}
|
|
||||||
|
public void setIsFolder(boolean isFolder)
|
||||||
public RestByUserModel getModifiedByUser()
|
{
|
||||||
{
|
this.isFolder = isFolder;
|
||||||
return modifiedByUser;
|
}
|
||||||
}
|
|
||||||
|
public boolean getIsFile()
|
||||||
public void setModifiedByUser(RestByUserModel modifiedByUser)
|
{
|
||||||
{
|
return isFile;
|
||||||
this.modifiedByUser = modifiedByUser;
|
}
|
||||||
}
|
|
||||||
|
public void setIsFile(boolean isFile)
|
||||||
public String getParentId()
|
{
|
||||||
{
|
this.isFile = isFile;
|
||||||
return parentId;
|
}
|
||||||
}
|
|
||||||
|
public RestByUserModel getCreatedByUser()
|
||||||
public void setParentId(String parentId)
|
{
|
||||||
{
|
return createdByUser;
|
||||||
this.parentId = parentId;
|
}
|
||||||
}
|
|
||||||
|
public void setCreatedByUser(RestByUserModel createdByUser)
|
||||||
public RestPathModel getPath()
|
{
|
||||||
{
|
this.createdByUser = createdByUser;
|
||||||
return path;
|
}
|
||||||
}
|
|
||||||
|
public RestByUserModel getModifiedByUser()
|
||||||
public void setPath(RestPathModel path)
|
{
|
||||||
{
|
return modifiedByUser;
|
||||||
this.path = path;
|
}
|
||||||
}
|
|
||||||
|
public void setModifiedByUser(RestByUserModel modifiedByUser)
|
||||||
@Override
|
{
|
||||||
public ModelAssertion<RestFolderModel> and()
|
this.modifiedByUser = modifiedByUser;
|
||||||
{
|
}
|
||||||
return assertThat();
|
|
||||||
}
|
public String getParentId()
|
||||||
|
{
|
||||||
@Override
|
return parentId;
|
||||||
public ModelAssertion<RestFolderModel> assertThat()
|
}
|
||||||
{
|
|
||||||
return new ModelAssertion<RestFolderModel>(this);
|
public void setParentId(String parentId)
|
||||||
}
|
{
|
||||||
}
|
this.parentId = parentId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public RestPathModel getPath()
|
||||||
|
{
|
||||||
|
return path;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPath(RestPathModel path)
|
||||||
|
{
|
||||||
|
this.path = path;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@@ -1,11 +1,35 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import org.alfresco.rest.core.IRestModel;
|
|
||||||
import org.alfresco.rest.core.assertion.ModelAssertion;
|
|
||||||
import org.alfresco.utility.model.TestModel;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
import org.alfresco.rest.core.IRestModel;
|
||||||
|
import org.alfresco.utility.model.TestModel;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Handles single representation of a Start Form Model
|
* Handles single representation of a Start Form Model
|
||||||
* * "entry": {
|
* * "entry": {
|
||||||
@@ -108,20 +132,4 @@ public class RestFormModel extends TestModel implements IRestModel<RestFormModel
|
|||||||
{
|
{
|
||||||
this.required = required;
|
this.required = required;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
/**
|
|
||||||
* DSL for assertion on this rest model
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestFormModel> and()
|
|
||||||
{
|
|
||||||
return assertThat();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestFormModel> assertThat()
|
|
||||||
{
|
|
||||||
return new ModelAssertion<RestFormModel>(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@@ -1,3 +1,28 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import static org.alfresco.utility.report.log.Step.STEP;
|
import static org.alfresco.utility.report.log.Step.STEP;
|
||||||
@@ -51,4 +76,4 @@ public class RestFormModelsCollection extends RestModels<RestFormModel, RestForm
|
|||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,14 +1,38 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
import org.alfresco.rest.core.IRestModel;
|
import org.alfresco.rest.core.IRestModel;
|
||||||
import org.alfresco.rest.core.assertion.ModelAssertion;
|
|
||||||
import org.alfresco.rest.search.RestGenericMetricModel;
|
import org.alfresco.rest.search.RestGenericMetricModel;
|
||||||
import org.alfresco.utility.model.TestModel;
|
import org.alfresco.utility.model.TestModel;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generated by 'msuzuki' on '2017-05-15 13:08' from 'Alfresco Search REST API' swagger file
|
* Generated by 'msuzuki' on '2017-05-15 13:08' from 'Alfresco Search REST API' swagger file
|
||||||
* Generated from 'Alfresco Search REST API' swagger file
|
* Generated from 'Alfresco Search REST API' swagger file
|
||||||
@@ -16,18 +40,6 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
|||||||
*/
|
*/
|
||||||
public class RestGenericBucketModel extends TestModel implements IRestModel<RestGenericBucketModel>
|
public class RestGenericBucketModel extends TestModel implements IRestModel<RestGenericBucketModel>
|
||||||
{
|
{
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestGenericBucketModel> assertThat()
|
|
||||||
{
|
|
||||||
return new ModelAssertion<RestGenericBucketModel>(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestGenericBucketModel> and()
|
|
||||||
{
|
|
||||||
return assertThat();
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty(value = "entry")
|
@JsonProperty(value = "entry")
|
||||||
RestGenericBucketModel model;
|
RestGenericBucketModel model;
|
||||||
|
|
||||||
|
@@ -1,11 +1,35 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import org.alfresco.rest.core.IRestModel;
|
|
||||||
import org.alfresco.rest.core.assertion.ModelAssertion;
|
|
||||||
import org.alfresco.utility.model.TestModel;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
import org.alfresco.rest.core.IRestModel;
|
||||||
|
import org.alfresco.utility.model.TestModel;
|
||||||
|
|
||||||
public class RestGroupMember extends TestModel implements IRestModel<RestGroupMember>
|
public class RestGroupMember extends TestModel implements IRestModel<RestGroupMember>
|
||||||
{
|
{
|
||||||
@JsonProperty(required = true)
|
@JsonProperty(required = true)
|
||||||
@@ -18,19 +42,6 @@ public class RestGroupMember extends TestModel implements IRestModel<RestGroupMe
|
|||||||
@JsonProperty(value = "entry")
|
@JsonProperty(value = "entry")
|
||||||
RestGroupMember model;
|
RestGroupMember model;
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestGroupMember> and()
|
|
||||||
{
|
|
||||||
return assertThat();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestGroupMember> assertThat()
|
|
||||||
{
|
|
||||||
return new ModelAssertion<RestGroupMember>(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public RestGroupMember onModel()
|
public RestGroupMember onModel()
|
||||||
{
|
{
|
||||||
|
@@ -1,3 +1,28 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import org.alfresco.rest.core.RestModels;
|
import org.alfresco.rest.core.RestModels;
|
||||||
|
@@ -1,13 +1,37 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
import org.alfresco.rest.core.IRestModel;
|
|
||||||
import org.alfresco.rest.core.assertion.ModelAssertion;
|
|
||||||
import org.alfresco.utility.model.TestModel;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
import org.alfresco.rest.core.IRestModel;
|
||||||
|
import org.alfresco.utility.model.TestModel;
|
||||||
|
|
||||||
public class RestGroupsModel extends TestModel implements IRestModel<RestGroupsModel>
|
public class RestGroupsModel extends TestModel implements IRestModel<RestGroupsModel>
|
||||||
{
|
{
|
||||||
@JsonProperty(required = true)
|
@JsonProperty(required = true)
|
||||||
@@ -25,19 +49,6 @@ public class RestGroupsModel extends TestModel implements IRestModel<RestGroupsM
|
|||||||
@JsonProperty(value = "entry")
|
@JsonProperty(value = "entry")
|
||||||
RestGroupsModel model;
|
RestGroupsModel model;
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestGroupsModel> and()
|
|
||||||
{
|
|
||||||
return assertThat();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestGroupsModel> assertThat()
|
|
||||||
{
|
|
||||||
return new ModelAssertion<RestGroupsModel>(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public RestGroupsModel onModel()
|
public RestGroupsModel onModel()
|
||||||
{
|
{
|
||||||
|
@@ -1,3 +1,28 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import org.alfresco.rest.core.RestModels;
|
import org.alfresco.rest.core.RestModels;
|
||||||
|
@@ -1,13 +1,36 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import static org.alfresco.utility.report.log.Step.STEP;
|
import static org.alfresco.utility.report.log.Step.STEP;
|
||||||
|
|
||||||
import org.alfresco.rest.core.assertion.ModelAssertion;
|
|
||||||
import org.alfresco.utility.Utility;
|
|
||||||
import org.testng.Assert;
|
|
||||||
|
|
||||||
import io.restassured.http.Headers;
|
import io.restassured.http.Headers;
|
||||||
import io.restassured.response.ResponseBody;
|
import io.restassured.response.ResponseBody;
|
||||||
|
import org.alfresco.utility.Utility;
|
||||||
|
import org.testng.Assert;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by Claudia Agache on 10/13/2016.
|
* Created by Claudia Agache on 10/13/2016.
|
||||||
@@ -43,21 +66,6 @@ public class RestHtmlResponse
|
|||||||
Assert.assertFalse(body.toString().isEmpty(), "Body should not be empty.");
|
Assert.assertFalse(body.toString().isEmpty(), "Body should not be empty.");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* DSL for assertion on this rest model
|
|
||||||
*
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
public ModelAssertion<RestHtmlResponse> assertThat()
|
|
||||||
{
|
|
||||||
return new ModelAssertion<RestHtmlResponse>(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
public ModelAssertion<RestHtmlResponse> and()
|
|
||||||
{
|
|
||||||
return assertThat();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Assetion that a html element with specific html path has the specified value
|
* Assetion that a html element with specific html path has the specified value
|
||||||
*
|
*
|
||||||
@@ -68,4 +76,4 @@ public class RestHtmlResponse
|
|||||||
{
|
{
|
||||||
Assert.assertEquals(body.htmlPath().get(elementHtmlPath), value);
|
Assert.assertEquals(body.htmlPath().get(elementHtmlPath), value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,3 +1,28 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
/*
|
/*
|
||||||
* Copyright 2020 Alfresco Software, Ltd. All rights reserved.
|
* Copyright 2020 Alfresco Software, Ltd. All rights reserved.
|
||||||
* License rights for this program may be obtained from Alfresco Software, Ltd.
|
* License rights for this program may be obtained from Alfresco Software, Ltd.
|
||||||
@@ -124,4 +149,4 @@ public class RestIdentityServiceConfigurationModel extends TestModel{
|
|||||||
public void setCredentialsProvider(String credentialsProvider) {
|
public void setCredentialsProvider(String credentialsProvider) {
|
||||||
this.credentialsProvider = credentialsProvider;
|
this.credentialsProvider = credentialsProvider;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,11 +1,35 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import org.alfresco.rest.core.IRestModel;
|
|
||||||
import org.alfresco.rest.core.assertion.ModelAssertion;
|
|
||||||
import org.alfresco.utility.model.TestModel;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
import org.alfresco.rest.core.IRestModel;
|
||||||
|
import org.alfresco.utility.model.TestModel;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
"entry": {
|
"entry": {
|
||||||
@@ -105,16 +129,4 @@ public class RestItemModel extends TestModel implements IRestModel<RestItemModel
|
|||||||
{
|
{
|
||||||
this.modifiedAt = modifiedAt;
|
this.modifiedAt = modifiedAt;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestItemModel> and()
|
|
||||||
{
|
|
||||||
return assertThat();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestItemModel> assertThat()
|
|
||||||
{
|
|
||||||
return new ModelAssertion<RestItemModel>(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@@ -1,3 +1,28 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import org.alfresco.rest.core.RestModels;
|
import org.alfresco.rest.core.RestModels;
|
||||||
@@ -41,4 +66,4 @@ public class RestItemModelsCollection extends RestModels<RestItemModel, RestItem
|
|||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,11 +1,35 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import org.alfresco.rest.core.IRestModel;
|
|
||||||
import org.alfresco.rest.core.assertion.ModelAssertion;
|
|
||||||
import org.alfresco.utility.model.TestModel;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
import org.alfresco.rest.core.IRestModel;
|
||||||
|
import org.alfresco.utility.model.TestModel;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generated by 'aforascu' on '2018-01-10 16:02' from 'Alfresco Content Services REST API' swagger file
|
* Generated by 'aforascu' on '2018-01-10 16:02' from 'Alfresco Content Services REST API' swagger file
|
||||||
* Generated from 'Alfresco Content Services REST API' swagger file
|
* Generated from 'Alfresco Content Services REST API' swagger file
|
||||||
@@ -13,18 +37,6 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
|||||||
*/
|
*/
|
||||||
public class RestLicenseInfoModel extends TestModel implements IRestModel<RestLicenseInfoModel>
|
public class RestLicenseInfoModel extends TestModel implements IRestModel<RestLicenseInfoModel>
|
||||||
{
|
{
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestLicenseInfoModel> assertThat()
|
|
||||||
{
|
|
||||||
return new ModelAssertion<RestLicenseInfoModel>(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestLicenseInfoModel> and()
|
|
||||||
{
|
|
||||||
return assertThat();
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty(value = "entry")
|
@JsonProperty(value = "entry")
|
||||||
RestLicenseInfoModel model;
|
RestLicenseInfoModel model;
|
||||||
|
|
||||||
|
@@ -1,13 +1,35 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import java.util.List;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
import org.alfresco.rest.core.IRestModel;
|
import org.alfresco.rest.core.IRestModel;
|
||||||
import org.alfresco.rest.core.assertion.ModelAssertion;
|
|
||||||
import org.alfresco.utility.model.TestModel;
|
import org.alfresco.utility.model.TestModel;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generated by 'Kristian.Dimitrov@hyland.com' on '2022-07-13 15:53' from 'Alfresco Content Services REST API' swagger file
|
* Generated by 'Kristian.Dimitrov@hyland.com' on '2022-07-13 15:53' from 'Alfresco Content Services REST API' swagger file
|
||||||
* Generated from 'Alfresco Content Services REST API' swagger file
|
* Generated from 'Alfresco Content Services REST API' swagger file
|
||||||
@@ -15,18 +37,6 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
|||||||
*/
|
*/
|
||||||
public class RestLinkedRuleSetBodyCreateModel extends TestModel implements IRestModel<RestLinkedRuleSetBodyCreateModel>
|
public class RestLinkedRuleSetBodyCreateModel extends TestModel implements IRestModel<RestLinkedRuleSetBodyCreateModel>
|
||||||
{
|
{
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestLinkedRuleSetBodyCreateModel> assertThat()
|
|
||||||
{
|
|
||||||
return new ModelAssertion<RestLinkedRuleSetBodyCreateModel>(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestLinkedRuleSetBodyCreateModel> and()
|
|
||||||
{
|
|
||||||
return assertThat();
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty(value = "entry")
|
@JsonProperty(value = "entry")
|
||||||
RestLinkedRuleSetBodyCreateModel model;
|
RestLinkedRuleSetBodyCreateModel model;
|
||||||
|
|
||||||
|
@@ -1,11 +1,35 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import org.alfresco.rest.core.IRestModel;
|
|
||||||
import org.alfresco.rest.core.assertion.ModelAssertion;
|
|
||||||
import org.alfresco.utility.model.TestModel;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
import org.alfresco.rest.core.IRestModel;
|
||||||
|
import org.alfresco.utility.model.TestModel;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generated by 'aforascu' on '2018-01-10 16:02' from 'Alfresco Content Services REST API' swagger file
|
* Generated by 'aforascu' on '2018-01-10 16:02' from 'Alfresco Content Services REST API' swagger file
|
||||||
* Generated from 'Alfresco Content Services REST API' swagger file
|
* Generated from 'Alfresco Content Services REST API' swagger file
|
||||||
@@ -13,18 +37,6 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
|||||||
*/
|
*/
|
||||||
public class RestModuleInfoModel extends TestModel implements IRestModel<RestModuleInfoModel>
|
public class RestModuleInfoModel extends TestModel implements IRestModel<RestModuleInfoModel>
|
||||||
{
|
{
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestModuleInfoModel> assertThat()
|
|
||||||
{
|
|
||||||
return new ModelAssertion<RestModuleInfoModel>(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestModuleInfoModel> and()
|
|
||||||
{
|
|
||||||
return assertThat();
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty(value = "entry")
|
@JsonProperty(value = "entry")
|
||||||
RestModuleInfoModel model;
|
RestModuleInfoModel model;
|
||||||
|
|
||||||
|
@@ -1,14 +1,38 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import static org.alfresco.utility.report.log.Step.STEP;
|
import static org.alfresco.utility.report.log.Step.STEP;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
import org.alfresco.rest.core.IRestModel;
|
import org.alfresco.rest.core.IRestModel;
|
||||||
import org.alfresco.rest.core.assertion.ModelAssertion;
|
|
||||||
import org.alfresco.utility.model.UserModel;
|
import org.alfresco.utility.model.UserModel;
|
||||||
import org.testng.Assert;
|
import org.testng.Assert;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by Cristina Axinte on 9/26/2016.
|
* Created by Cristina Axinte on 9/26/2016.
|
||||||
*
|
*
|
||||||
@@ -64,20 +88,4 @@ public class RestNetworkModel extends RestPersonNetworkModel implements IRestMod
|
|||||||
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
/**
|
|
||||||
* DSL for assertion on this rest model
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestNetworkModel> and()
|
|
||||||
{
|
|
||||||
return assertThat();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestNetworkModel> assertThat()
|
|
||||||
{
|
|
||||||
return new ModelAssertion<RestNetworkModel>(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@@ -1,7 +1,32 @@
|
|||||||
package org.alfresco.rest.model;
|
/*-
|
||||||
|
* #%L
|
||||||
import org.alfresco.rest.core.RestModels;
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
public class RestNetworkModelsCollection extends RestModels<RestNetworkModel, RestNetworkModelsCollection>
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
|
import org.alfresco.rest.core.RestModels;
|
||||||
|
|
||||||
|
public class RestNetworkModelsCollection extends RestModels<RestNetworkModel, RestNetworkModelsCollection>
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@@ -1,29 +1,41 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import org.alfresco.rest.core.IRestModel;
|
|
||||||
import org.alfresco.rest.core.assertion.ModelAssertion;
|
|
||||||
import org.alfresco.utility.model.TestModel;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
import org.alfresco.rest.core.IRestModel;
|
||||||
|
import org.alfresco.utility.model.TestModel;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generated by 'pbrodner' on '2016-12-19 14:12' from 'Alfresco Core REST API' swagger file
|
* Generated by 'pbrodner' on '2016-12-19 14:12' from 'Alfresco Core REST API' swagger file
|
||||||
* Base Path {@linkplain /alfresco/api/-default-/public/alfresco/versions/1}
|
* Base Path {@linkplain /alfresco/api/-default-/public/alfresco/versions/1}
|
||||||
*/
|
*/
|
||||||
public class RestNetworkQuotaModel extends TestModel implements IRestModel<RestNetworkQuotaModel>
|
public class RestNetworkQuotaModel extends TestModel implements IRestModel<RestNetworkQuotaModel>
|
||||||
{
|
{
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestNetworkQuotaModel> assertThat()
|
|
||||||
{
|
|
||||||
return new ModelAssertion<RestNetworkQuotaModel>(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestNetworkQuotaModel> and()
|
|
||||||
{
|
|
||||||
return assertThat();
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty(value = "entry")
|
@JsonProperty(value = "entry")
|
||||||
RestNetworkQuotaModel model;
|
RestNetworkQuotaModel model;
|
||||||
|
|
||||||
@@ -71,4 +83,4 @@ public class RestNetworkQuotaModel extends TestModel implements IRestModel<RestN
|
|||||||
{
|
{
|
||||||
this.usage = usage;
|
this.usage = usage;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,11 +1,35 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import org.alfresco.rest.core.IRestModel;
|
|
||||||
import org.alfresco.rest.core.assertion.ModelAssertion;
|
|
||||||
import org.alfresco.utility.model.TestModel;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
import org.alfresco.rest.core.IRestModel;
|
||||||
|
import org.alfresco.utility.model.TestModel;
|
||||||
|
|
||||||
public class RestNodeAssocTargetModel extends TestModel implements IRestModel<RestNodeAssocTargetModel>
|
public class RestNodeAssocTargetModel extends TestModel implements IRestModel<RestNodeAssocTargetModel>
|
||||||
{
|
{
|
||||||
@JsonProperty(value = "aggregate")
|
@JsonProperty(value = "aggregate")
|
||||||
@@ -52,17 +76,4 @@ public class RestNodeAssocTargetModel extends TestModel implements IRestModel<Re
|
|||||||
{
|
{
|
||||||
this.assocType = assocType;
|
this.assocType = assocType;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestNodeAssocTargetModel> and()
|
|
||||||
{
|
|
||||||
return assertThat();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestNodeAssocTargetModel> assertThat()
|
|
||||||
{
|
|
||||||
return new ModelAssertion<RestNodeAssocTargetModel>(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -1,30 +1,42 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.alfresco.rest.core.IRestModel;
|
|
||||||
import org.alfresco.rest.core.assertion.ModelAssertion;
|
|
||||||
import org.alfresco.utility.model.TestModel;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
import org.alfresco.rest.core.IRestModel;
|
||||||
|
import org.alfresco.utility.model.TestModel;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by Andrei Forascu on 30/08/2017.
|
* Created by Andrei Forascu on 30/08/2017.
|
||||||
*/
|
*/
|
||||||
public class RestNodeAssociationModel extends TestModel implements IRestModel<RestNodeAssociationModel>
|
public class RestNodeAssociationModel extends TestModel implements IRestModel<RestNodeAssociationModel>
|
||||||
{
|
{
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestNodeAssociationModel> assertThat()
|
|
||||||
{
|
|
||||||
return new ModelAssertion<RestNodeAssociationModel>(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestNodeAssociationModel> and()
|
|
||||||
{
|
|
||||||
return assertThat();
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty(value = "entry")
|
@JsonProperty(value = "entry")
|
||||||
RestNodeAssociationModel model;
|
RestNodeAssociationModel model;
|
||||||
|
|
||||||
|
@@ -1,3 +1,28 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import org.alfresco.rest.core.RestModels;
|
import org.alfresco.rest.core.RestModels;
|
||||||
|
@@ -1,28 +1,40 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import org.alfresco.rest.core.IRestModel;
|
|
||||||
import org.alfresco.rest.core.assertion.ModelAssertion;
|
|
||||||
import org.alfresco.utility.model.TestModel;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
import org.alfresco.rest.core.IRestModel;
|
||||||
|
import org.alfresco.utility.model.TestModel;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents an association between two nodes
|
* Represents an association between two nodes
|
||||||
*/
|
*/
|
||||||
public class RestNodeAssociationTypeModel extends TestModel implements IRestModel<RestNodeAssociationTypeModel>
|
public class RestNodeAssociationTypeModel extends TestModel implements IRestModel<RestNodeAssociationTypeModel>
|
||||||
{
|
{
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestNodeAssociationTypeModel> assertThat()
|
|
||||||
{
|
|
||||||
return new ModelAssertion<RestNodeAssociationTypeModel>(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestNodeAssociationTypeModel> and()
|
|
||||||
{
|
|
||||||
return assertThat();
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty(value = "entry")
|
@JsonProperty(value = "entry")
|
||||||
RestNodeAssociationTypeModel model;
|
RestNodeAssociationTypeModel model;
|
||||||
|
|
||||||
|
@@ -1,31 +1,43 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.alfresco.rest.core.IRestModel;
|
|
||||||
import org.alfresco.rest.core.assertion.ModelAssertion;
|
|
||||||
import org.alfresco.utility.model.TestModel;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
import org.alfresco.rest.core.IRestModel;
|
||||||
|
import org.alfresco.utility.model.TestModel;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generated from 'Alfresco Core REST API' swagger file
|
* Generated from 'Alfresco Core REST API' swagger file
|
||||||
* Base Path {@linkplain /alfresco/api/-default-/public/alfresco/versions/1}
|
* Base Path {@linkplain /alfresco/api/-default-/public/alfresco/versions/1}
|
||||||
*/
|
*/
|
||||||
public class RestNodeBodyModel extends TestModel implements IRestModel<RestNodeBodyModel>
|
public class RestNodeBodyModel extends TestModel implements IRestModel<RestNodeBodyModel>
|
||||||
{
|
{
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestNodeBodyModel> assertThat()
|
|
||||||
{
|
|
||||||
return new ModelAssertion<RestNodeBodyModel>(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestNodeBodyModel> and()
|
|
||||||
{
|
|
||||||
return assertThat();
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty(value = "entry")
|
@JsonProperty(value = "entry")
|
||||||
RestNodeBodyModel model;
|
RestNodeBodyModel model;
|
||||||
|
|
||||||
|
@@ -1,3 +1,28 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
@@ -1,3 +1,28 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import org.alfresco.rest.core.RestModels;
|
import org.alfresco.rest.core.RestModels;
|
||||||
@@ -5,4 +30,4 @@ import org.alfresco.rest.core.RestModels;
|
|||||||
public class RestNodeChildAssocModelCollection extends RestModels<RestNodeChildAssociationModel, RestNodeChildAssocModelCollection>
|
public class RestNodeChildAssocModelCollection extends RestModels<RestNodeChildAssociationModel, RestNodeChildAssocModelCollection>
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -1,25 +1,37 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import org.alfresco.rest.core.IRestModel;
|
|
||||||
import org.alfresco.rest.core.assertion.ModelAssertion;
|
|
||||||
import org.alfresco.utility.model.TestModel;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
import org.alfresco.rest.core.IRestModel;
|
||||||
|
import org.alfresco.utility.model.TestModel;
|
||||||
|
|
||||||
public class RestNodeChildAssociationModel extends TestModel implements IRestModel<RestNodeChildAssociationModel>
|
public class RestNodeChildAssociationModel extends TestModel implements IRestModel<RestNodeChildAssociationModel>
|
||||||
{
|
{
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestNodeChildAssociationModel> assertThat()
|
|
||||||
{
|
|
||||||
return new ModelAssertion<RestNodeChildAssociationModel>(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestNodeChildAssociationModel> and()
|
|
||||||
{
|
|
||||||
return assertThat();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public RestNodeChildAssociationModel onModel()
|
public RestNodeChildAssociationModel onModel()
|
||||||
{
|
{
|
||||||
|
@@ -1,31 +1,43 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.alfresco.rest.core.IRestModel;
|
|
||||||
import org.alfresco.rest.core.assertion.ModelAssertion;
|
|
||||||
import org.alfresco.utility.model.TestModel;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
import org.alfresco.rest.core.IRestModel;
|
||||||
|
import org.alfresco.utility.model.TestModel;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generated from 'Alfresco Core REST API' swagger file
|
* Generated from 'Alfresco Core REST API' swagger file
|
||||||
* Base Path {@linkplain /alfresco/api/-default-/public/alfresco/versions/1}
|
* Base Path {@linkplain /alfresco/api/-default-/public/alfresco/versions/1}
|
||||||
*/
|
*/
|
||||||
public class RestNodeModel extends TestModel implements IRestModel<RestNodeModel>
|
public class RestNodeModel extends TestModel implements IRestModel<RestNodeModel>
|
||||||
{
|
{
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestNodeModel> assertThat()
|
|
||||||
{
|
|
||||||
return new ModelAssertion<RestNodeModel>(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestNodeModel> and()
|
|
||||||
{
|
|
||||||
return assertThat();
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty(value = "entry")
|
@JsonProperty(value = "entry")
|
||||||
RestNodeModel model;
|
RestNodeModel model;
|
||||||
|
|
||||||
|
@@ -1,3 +1,28 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import org.alfresco.rest.core.RestModels;
|
import org.alfresco.rest.core.RestModels;
|
||||||
|
@@ -1,7 +1,31 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import org.alfresco.rest.core.assertion.IModelAssertion;
|
import org.alfresco.rest.core.assertion.IModelAssertion;
|
||||||
import org.alfresco.rest.core.assertion.ModelAssertion;
|
|
||||||
import org.alfresco.utility.model.TestModel;
|
import org.alfresco.utility.model.TestModel;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -82,16 +106,4 @@ public class RestPaginationModel extends TestModel implements IModelAssertion<Re
|
|||||||
{
|
{
|
||||||
this.maxItems = maxItems;
|
this.maxItems = maxItems;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestPaginationModel> assertThat()
|
|
||||||
{
|
|
||||||
return new ModelAssertion<>(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestPaginationModel> and()
|
|
||||||
{
|
|
||||||
return assertThat();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@@ -1,11 +1,35 @@
|
|||||||
|
/*-
|
||||||
|
* #%L
|
||||||
|
* alfresco-tas-restapi
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2022 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
import org.alfresco.rest.core.IRestModel;
|
|
||||||
import org.alfresco.rest.core.assertion.ModelAssertion;
|
|
||||||
import org.alfresco.utility.model.TestModel;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
import org.alfresco.rest.core.IRestModel;
|
||||||
|
import org.alfresco.utility.model.TestModel;
|
||||||
|
|
||||||
public class RestParameterDefinitionModel extends TestModel implements IRestModel<RestParameterDefinitionModel>
|
public class RestParameterDefinitionModel extends TestModel implements IRestModel<RestParameterDefinitionModel>
|
||||||
{
|
{
|
||||||
private String name;
|
private String name;
|
||||||
@@ -88,18 +112,6 @@ public class RestParameterDefinitionModel extends TestModel implements IRestMode
|
|||||||
@JsonProperty(value = "entry")
|
@JsonProperty(value = "entry")
|
||||||
RestParameterDefinitionModel parameterDefinitionModel;
|
RestParameterDefinitionModel parameterDefinitionModel;
|
||||||
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestParameterDefinitionModel> and()
|
|
||||||
{
|
|
||||||
return assertThat();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ModelAssertion<RestParameterDefinitionModel> assertThat()
|
|
||||||
{
|
|
||||||
return new ModelAssertion<RestParameterDefinitionModel>(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public RestParameterDefinitionModel onModel()
|
public RestParameterDefinitionModel onModel()
|
||||||
{
|
{
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user