mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-09-10 14:11:58 +00:00
Compare commits
18 Commits
tas-restap
...
tas-restap
Author | SHA1 | Date | |
---|---|---|---|
|
1852309798 | ||
|
ee2e248e39 | ||
|
b2f90ff6bc | ||
|
59641e833e | ||
|
6dd7d32b2e | ||
|
83bf4d0a2f | ||
|
1af9f31b68 | ||
|
2b98e73468 | ||
|
966dd7d144 | ||
|
375c68f932 | ||
|
8ce6117a95 | ||
|
08e393c39f | ||
|
2f4303f4eb | ||
|
953a1cc3f9 | ||
|
23a1ddca6a | ||
|
439dd3771f | ||
|
df7ebe30b3 | ||
|
c482153183 |
@@ -4,7 +4,7 @@
|
||||
<groupId>org.alfresco.tas</groupId>
|
||||
<artifactId>restapi</artifactId>
|
||||
<name>alfresco-tas-restapi</name>
|
||||
<version>1.119</version>
|
||||
<version>1.125</version>
|
||||
<parent>
|
||||
<groupId>org.alfresco</groupId>
|
||||
<artifactId>alfresco-super-pom</artifactId>
|
||||
@@ -28,7 +28,7 @@
|
||||
<suiteXmlFile>src/main/resources/shared-resources/testCount.xml</suiteXmlFile>
|
||||
<maven.build.sourceVersion>11</maven.build.sourceVersion>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<tas.utility.version>3.0.54</tas.utility.version>
|
||||
<tas.utility.version>3.0.56</tas.utility.version>
|
||||
<rest-assured.version>5.2.0</rest-assured.version>
|
||||
<httpclient-osgi-version>4.5.6</httpclient-osgi-version>
|
||||
<jackson-databind.version>2.13.4</jackson-databind.version>
|
||||
@@ -67,7 +67,7 @@
|
||||
<connection>scm:git:https://github.com/Alfresco/alfresco-tas-restapi.git</connection>
|
||||
<developerConnection>scm:git:https://github.com/Alfresco/alfresco-tas-restapi.git</developerConnection>
|
||||
<url>https://github.com/Alfresco/alfresco-tas-restapi</url>
|
||||
<tag>v1.119</tag>
|
||||
<tag>v1.125</tag>
|
||||
</scm>
|
||||
|
||||
<issueManagement>
|
||||
@@ -308,13 +308,6 @@
|
||||
<version>${org.glassfish.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- needed for swagger parser bellow -->
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-api</artifactId>
|
||||
<version>2.0.1</version>
|
||||
</dependency>
|
||||
|
||||
<!-- swagger parser -->
|
||||
<dependency>
|
||||
<groupId>io.swagger</groupId>
|
||||
|
@@ -4,34 +4,34 @@
|
||||
* %%
|
||||
* 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
|
||||
* 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 com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
import org.alfresco.rest.core.IRestModel;
|
||||
import org.alfresco.utility.model.TestModel;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
/**
|
||||
* Generated by 'aforascu' on '2018-01-10 16:02' from 'Alfresco Content Services REST API' swagger file
|
||||
* Generated by 'saspery' on '2022-09-28 06:54' from 'Alfresco Content Services REST API' swagger file
|
||||
* Generated from 'Alfresco Content Services REST API' swagger file
|
||||
* Base Path {@linkplain /alfresco/api}
|
||||
*/
|
||||
@@ -55,6 +55,8 @@ public class RestEntitlementsInfoModel extends TestModel implements IRestModel<R
|
||||
|
||||
private boolean isCryptodocEnabled;
|
||||
|
||||
private boolean isCustomEmbeddedWorkflowEnabled;
|
||||
|
||||
public int getMaxUsers()
|
||||
{
|
||||
return this.maxUsers;
|
||||
@@ -94,5 +96,15 @@ public class RestEntitlementsInfoModel extends TestModel implements IRestModel<R
|
||||
{
|
||||
this.isCryptodocEnabled = isCryptodocEnabled;
|
||||
}
|
||||
|
||||
public boolean getIsCustomEmbeddedWorkflowEnabled()
|
||||
{
|
||||
return this.isCustomEmbeddedWorkflowEnabled;
|
||||
}
|
||||
|
||||
public void setIsCustomEmbeddedWorkflowEnabled(boolean isCustomEmbeddedWorkflowEnabled)
|
||||
{
|
||||
this.isCustomEmbeddedWorkflowEnabled = isCustomEmbeddedWorkflowEnabled;
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -70,17 +70,17 @@ public class RestRuleModel extends TestModel implements IRestModel<RestRuleModel
|
||||
Whether the rule is enabled
|
||||
*/
|
||||
|
||||
private boolean enabled;
|
||||
private boolean isEnabled;
|
||||
/**
|
||||
Whether the rule also applies to subfolders
|
||||
*/
|
||||
|
||||
private boolean cascade;
|
||||
private boolean isInheritable;
|
||||
/**
|
||||
Whether the rule should be run in the background
|
||||
*/
|
||||
|
||||
private boolean asynchronous;
|
||||
private boolean isAsynchronous;
|
||||
/**
|
||||
If the rule should be run in the background then an optional error script can be referenced
|
||||
*/
|
||||
@@ -146,34 +146,34 @@ If the field is omitted then the rule will apply to all nodes.
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public boolean getEnabled()
|
||||
public boolean getIsEnabled()
|
||||
{
|
||||
return this.enabled;
|
||||
return this.isEnabled;
|
||||
}
|
||||
|
||||
public void setEnabled(boolean enabled)
|
||||
public void setIsEnabled(boolean isEnabled)
|
||||
{
|
||||
this.enabled = enabled;
|
||||
this.isEnabled = isEnabled;
|
||||
}
|
||||
|
||||
public boolean getCascade()
|
||||
public boolean getIsInheritable()
|
||||
{
|
||||
return this.cascade;
|
||||
return this.isInheritable;
|
||||
}
|
||||
|
||||
public void setCascade(boolean cascade)
|
||||
public void setIsInheritable(boolean isInheritable)
|
||||
{
|
||||
this.cascade = cascade;
|
||||
this.isInheritable = isInheritable;
|
||||
}
|
||||
|
||||
public boolean getAsynchronous()
|
||||
public boolean getIsAsynchronous()
|
||||
{
|
||||
return this.asynchronous;
|
||||
return this.isAsynchronous;
|
||||
}
|
||||
|
||||
public void setAsynchronous(boolean asynchronous)
|
||||
public void setIsAsynchronous(boolean isAsynchronous)
|
||||
{
|
||||
this.asynchronous = asynchronous;
|
||||
this.isAsynchronous = isAsynchronous;
|
||||
}
|
||||
|
||||
public String getErrorScript()
|
||||
@@ -229,8 +229,8 @@ If the field is omitted then the rule will apply to all nodes.
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
return "RestRuleModel{" + "id='" + id + '\'' + ", name='" + name + '\'' + ", description='" + description + '\'' + ", enabled=" + enabled + ", cascade=" + cascade
|
||||
+ ", asynchronous=" + asynchronous + ", errorScript='" + errorScript + '\'' + ", isShared=" + isShared + ", triggers=" + triggers + ", conditions=" + conditions
|
||||
return "RestRuleModel{" + "id='" + id + '\'' + ", name='" + name + '\'' + ", description='" + description + '\'' + ", isEnabled=" + isEnabled + ", isInheritable=" + isInheritable
|
||||
+ ", isAsynchronous=" + isAsynchronous + ", errorScript='" + errorScript + '\'' + ", isShared=" + isShared + ", triggers=" + triggers + ", conditions=" + conditions
|
||||
+ ", actions=" + actions + '}';
|
||||
}
|
||||
|
||||
@@ -242,7 +242,7 @@ If the field is omitted then the rule will apply to all nodes.
|
||||
if (o == null || getClass() != o.getClass())
|
||||
return false;
|
||||
RestRuleModel ruleModel = (RestRuleModel) o;
|
||||
return enabled == ruleModel.enabled && cascade == ruleModel.cascade && asynchronous == ruleModel.asynchronous && Objects.equals(id, ruleModel.id) && Objects.equals(
|
||||
return isEnabled == ruleModel.isEnabled && isInheritable == ruleModel.isInheritable && isAsynchronous == ruleModel.isAsynchronous && Objects.equals(id, ruleModel.id) && Objects.equals(
|
||||
name, ruleModel.name) && Objects.equals(description, ruleModel.description) && Objects.equals(errorScript, ruleModel.errorScript) && Objects.equals(
|
||||
isShared, ruleModel.isShared) && Objects.equals(triggers, ruleModel.triggers) && Objects.equals(conditions, ruleModel.conditions) && Objects.equals(
|
||||
actions, ruleModel.actions);
|
||||
@@ -251,7 +251,7 @@ If the field is omitted then the rule will apply to all nodes.
|
||||
@Override
|
||||
public int hashCode()
|
||||
{
|
||||
return Objects.hash(id, name, description, enabled, cascade, asynchronous, errorScript, isShared, triggers, conditions, actions);
|
||||
return Objects.hash(id, name, description, isEnabled, isInheritable, isAsynchronous, errorScript, isShared, triggers, conditions, actions);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -117,24 +117,24 @@ public class RestRuleSetModel extends TestModel implements IRestModel<RestRuleSe
|
||||
this.linkedToBy = linkedToBy;
|
||||
}
|
||||
|
||||
public Boolean getInherited()
|
||||
public Boolean getIsInherited()
|
||||
{
|
||||
return isInherited;
|
||||
}
|
||||
|
||||
public void setInherited(Boolean inherited)
|
||||
public void setIsInherited(Boolean isInherited)
|
||||
{
|
||||
isInherited = inherited;
|
||||
this.isInherited = isInherited;
|
||||
}
|
||||
|
||||
public Boolean getLinkedTo()
|
||||
public Boolean getIsLinkedTo()
|
||||
{
|
||||
return isLinkedTo;
|
||||
}
|
||||
|
||||
public void setLinkedTo(Boolean linkedTo)
|
||||
public void setIsLinkedTo(Boolean isLinkedTo)
|
||||
{
|
||||
isLinkedTo = linkedTo;
|
||||
this.isLinkedTo = isLinkedTo;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@@ -1067,4 +1067,16 @@ public class Node extends ModelRequest<Node>
|
||||
RestRequest request = RestRequest.requestWithBody(HttpMethod.POST, body.toJson(), "nodes/{nodeId}/rule-set-links", repoModel.getNodeRef());
|
||||
return restWrapper.processModel(RestRuleSetLinkModel.class, request);
|
||||
}
|
||||
|
||||
/**
|
||||
* Try to delete a ruleset link performing a DELETE call on "/nodes/{folderNodeId}/rule-set-links/{rulesetId}"
|
||||
*
|
||||
* @param ruleSetId the id of the ruleset to be unlinked from the folder
|
||||
* @return
|
||||
*/
|
||||
public void unlinkRuleSet(String ruleSetId)
|
||||
{
|
||||
RestRequest request = RestRequest.simpleRequest(HttpMethod.DELETE, "nodes/{nodeId}/ratings/{ratingId}", repoModel.getNodeRef(), ruleSetId);
|
||||
restWrapper.processEmptyModel(request);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user