mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
ACS-3363 Add inheritedBy to rule set. (#247)
This commit is contained in:
@@ -25,6 +25,7 @@
|
|||||||
*/
|
*/
|
||||||
package org.alfresco.rest.model;
|
package org.alfresco.rest.model;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
@@ -57,6 +58,8 @@ public class RestRuleSetModel extends TestModel implements IRestModel<RestRuleSe
|
|||||||
private String owningFolder;
|
private String owningFolder;
|
||||||
/** The reason why the rule set is included for the folder. */
|
/** The reason why the rule set is included for the folder. */
|
||||||
private String inclusionType;
|
private String inclusionType;
|
||||||
|
/** A list of node ids for folders that inherit this rule set. */
|
||||||
|
private List<String> inheritedBy;
|
||||||
|
|
||||||
public String getId()
|
public String getId()
|
||||||
{
|
{
|
||||||
@@ -88,19 +91,31 @@ public class RestRuleSetModel extends TestModel implements IRestModel<RestRuleSe
|
|||||||
this.inclusionType = inclusionType;
|
this.inclusionType = inclusionType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public List<String> getInheritedBy()
|
||||||
|
{
|
||||||
|
return inheritedBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInheritedBy(List<String> inheritedBy)
|
||||||
|
{
|
||||||
|
this.inheritedBy = inheritedBy;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o)
|
public boolean equals(Object o)
|
||||||
{
|
{
|
||||||
if (this == o) return true;
|
if (this == o) return true;
|
||||||
if (o == null || getClass() != o.getClass()) return false;
|
if (o == null || getClass() != o.getClass()) return false;
|
||||||
RestRuleSetModel that = (RestRuleSetModel) o;
|
RestRuleSetModel that = (RestRuleSetModel) o;
|
||||||
return Objects.equals(id, that.id) && Objects.equals(owningFolder, that.owningFolder) &&
|
return Objects.equals(id, that.id)
|
||||||
Objects.equals(inclusionType, that.inclusionType);
|
&& Objects.equals(owningFolder, that.owningFolder)
|
||||||
|
&& Objects.equals(inclusionType, that.inclusionType)
|
||||||
|
&& Objects.equals(inheritedBy, that.inheritedBy);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode()
|
public int hashCode()
|
||||||
{
|
{
|
||||||
return Objects.hash(id, owningFolder, inclusionType);
|
return Objects.hash(id, owningFolder, inclusionType, inheritedBy);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user