[IOT-1527] GroupManager according to the revised group resource model
authoryeonghun.nam <yeonghun.nam@samsung.com>
Tue, 25 Oct 2016 07:35:52 +0000 (16:35 +0900)
committerJee Hyeok Kim <jihyeok13.kim@samsung.com>
Tue, 15 Nov 2016 00:46:07 +0000 (00:46 +0000)
commita59953bbc30e99b58eec487d035ead886bb51185
tree488c72b03c47dcfc345bce1a1cd63464666b53c8
parentc5ef5fae4f08b1fcb9c5c3c6dc50b6798c3fe975
[IOT-1527] GroupManager according to the revised group resource model

1. GroupManager to manage group management requests
  - GET oic/acl/group/<gid>
  - POST oic/acl/group/<gid>
  - POST oic/acl/group/<gid>?op=add
  - POST oic/acl/group/<gid>?op=delete
  - DELETE oic/acl/group/<gid>
2. User Authorization based group management

patch #28 #1: resources are not recorded to the group if devices regarding to the resources are already registered to the group
patch #28 #2: verification logic is added; when a device is registered to the parent group, recources of the device can be registered to subgroups

Change-Id: I5d90a0eea537e43fe06789db1897c90a766e01c4
Signed-off-by: yeonghun.nam <yeonghun.nam@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13609
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jee Hyeok Kim <jihyeok13.kim@samsung.com>
cloud/account/src/main/java/org/iotivity/cloud/accountserver/resources/account/AccountManager.java
cloud/account/src/main/java/org/iotivity/cloud/accountserver/resources/acl/group/GroupManager.java
cloud/account/src/main/java/org/iotivity/cloud/accountserver/resources/acl/invite/InviteManager.java
cloud/account/src/test/java/org/iotivity/cloud/accountserver/resources/account/AccountResourceTest.java
cloud/account/src/test/java/org/iotivity/cloud/accountserver/resources/acl/group/GroupResourceTest.java
cloud/account/src/test/java/org/iotivity/cloud/accountserver/resources/acl/invite/InviteResourceTest.java
cloud/interface/src/main/java/org/iotivity/cloud/ciserver/Constants.java
cloud/interface/src/main/java/org/iotivity/cloud/ciserver/resources/proxy/account/AclGroup.java
cloud/interface/src/main/java/org/iotivity/cloud/ciserver/resources/proxy/rd/ResourceDirectory.java
cloud/interface/src/main/java/org/iotivity/cloud/ciserver/resources/proxy/rd/ResourceFind.java