added rest methods for updating positions

This commit is contained in:
Athou
2013-06-02 11:51:20 +02:00
parent 7ffd044a86
commit 555f35407b
6 changed files with 120 additions and 7 deletions

View File

@@ -24,6 +24,9 @@ public class CategoryModificationRequest implements Serializable {
@ApiProperty(value = "new parent category id")
private String parentId;
@ApiProperty(value = "new display position, null if not changed")
private Integer position;
public Long getId() {
return id;
}
@@ -48,4 +51,12 @@ public class CategoryModificationRequest implements Serializable {
this.parentId = parentId;
}
public Integer getPosition() {
return position;
}
public void setPosition(Integer position) {
this.position = position;
}
}

View File

@@ -24,6 +24,9 @@ public class FeedModificationRequest implements Serializable {
@ApiProperty(value = "new parent category id")
private String categoryId;
@ApiProperty(value = "new display position, null if not changed")
private Integer position;
public Long getId() {
return id;
}
@@ -48,4 +51,12 @@ public class FeedModificationRequest implements Serializable {
this.categoryId = categoryId;
}
public Integer getPosition() {
return position;
}
public void setPosition(Integer position) {
this.position = position;
}
}