fixed model for share-info
This commit is contained in:
parent
c38b82f75b
commit
ef89e478cb
@ -12,6 +12,10 @@ public class PermissionLight {
|
||||
private String id;
|
||||
@JsonProperty
|
||||
private PermissionLevel permission;
|
||||
@JsonProperty
|
||||
private Long personId;
|
||||
@JsonProperty
|
||||
private Long groupId;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
@ -21,6 +25,11 @@ public class PermissionLight {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public PermissionLight withId(String id) {
|
||||
this.setId(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
public PermissionLevel getPermission() {
|
||||
return permission;
|
||||
}
|
||||
@ -28,5 +37,37 @@ public class PermissionLight {
|
||||
public void setPermission(PermissionLevel permission) {
|
||||
this.permission = permission;
|
||||
}
|
||||
|
||||
public PermissionLight withPermission(PermissionLevel permission) {
|
||||
this.setPermission(permission);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Long getPersonId() {
|
||||
return personId;
|
||||
}
|
||||
|
||||
public void setPersonId(Long personId) {
|
||||
this.personId = personId;
|
||||
}
|
||||
|
||||
public PermissionLight withPersonId(Long personId) {
|
||||
this.setPersonId(personId);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Long getGroupId() {
|
||||
return groupId;
|
||||
}
|
||||
|
||||
public void setGroupId(Long groupId) {
|
||||
this.groupId = groupId;
|
||||
}
|
||||
|
||||
public PermissionLight withGroupId(Long groupId) {
|
||||
this.setGroupId(groupId);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
package com.inteligr8.alfresco.activiti.model;
|
||||
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
@ -11,10 +12,36 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
public class ShareInfoRequest {
|
||||
|
||||
@JsonProperty
|
||||
private List<PermissionLight> added;
|
||||
private List<PermissionLight> added = new LinkedList<>();
|
||||
@JsonProperty
|
||||
private List<PermissionLight> removed;
|
||||
private List<PermissionLight> removed = new LinkedList<>();
|
||||
@JsonProperty
|
||||
private List<PermissionLight> updated;
|
||||
private List<PermissionLight> updated = new LinkedList<>();
|
||||
|
||||
|
||||
|
||||
public List<PermissionLight> getAdded() {
|
||||
return added;
|
||||
}
|
||||
|
||||
public void setAdded(List<PermissionLight> added) {
|
||||
this.added = added;
|
||||
}
|
||||
|
||||
public List<PermissionLight> getRemoved() {
|
||||
return removed;
|
||||
}
|
||||
|
||||
public void setRemoved(List<PermissionLight> removed) {
|
||||
this.removed = removed;
|
||||
}
|
||||
|
||||
public List<PermissionLight> getUpdated() {
|
||||
return updated;
|
||||
}
|
||||
|
||||
public void setUpdated(List<PermissionLight> updated) {
|
||||
this.updated = updated;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user