コード例 #1
0
 /* (non-Javadoc)
  * @see org.openiam.idm.srvc.grp.ws.GroupDataWebService#addGroup(org.openiam.idm.srvc.grp.dto.Group)
  */
 public GroupResponse addGroup(Group grp) {
   GroupResponse resp = new GroupResponse(ResponseStatus.SUCCESS);
   grp = groupManager.addGroup(grp);
   if (grp.getGrpId() == null) {
     resp.setStatus(ResponseStatus.FAILURE);
   }
   resp.setGroup(grp);
   return resp;
 }
コード例 #2
0
 /* (non-Javadoc)
  * @see org.openiam.idm.srvc.grp.ws.GroupDataWebService#getParentGroup(java.lang.String, boolean)
  */
 public GroupResponse getParentGroup(String groupId, boolean dependants) {
   GroupResponse resp = new GroupResponse(ResponseStatus.SUCCESS);
   Group grp = groupManager.getParentGroup(groupId, dependants);
   if (grp == null) {
     resp.setStatus(ResponseStatus.FAILURE);
     return resp;
   }
   resp.setGroup(grp);
   return resp;
 }
コード例 #3
0
 /* (non-Javadoc)
  * @see org.openiam.idm.srvc.grp.ws.GroupDataWebService#getGroupWithDependants(java.lang.String)
  */
 public GroupResponse getGroupWithDependants(String grpId) {
   GroupResponse resp = new GroupResponse(ResponseStatus.SUCCESS);
   Group grp = groupManager.getGroupWithDependants(grpId);
   if (grp == null) {
     resp.setStatus(ResponseStatus.FAILURE);
     return resp;
   }
   resp.setGroup(grp);
   return resp;
 }