/* (non-Javadoc) * @see org.openiam.idm.srvc.grp.ws.GroupDataWebService#search(org.openiam.idm.srvc.grp.dto.GroupSearch) */ public GroupListResponse search(GroupSearch search) { GroupListResponse resp = new GroupListResponse(ResponseStatus.SUCCESS); List<Group> grpList = groupManager.search(search); if (grpList == null || grpList.isEmpty()) { resp.setStatus(ResponseStatus.FAILURE); return resp; } resp.setGroupList(grpList); return resp; }
/* (non-Javadoc) * @see org.openiam.idm.srvc.grp.ws.GroupDataWebService#getChildGroups(java.lang.String, boolean) */ public GroupListResponse getChildGroups(String parentGroupId, boolean subgroups) { GroupListResponse resp = new GroupListResponse(ResponseStatus.SUCCESS); List<Group> grpList = groupManager.getChildGroups(parentGroupId, subgroups); if (grpList == null || grpList.isEmpty()) { resp.setStatus(ResponseStatus.FAILURE); return resp; } resp.setGroupList(grpList); return resp; }
/* (non-Javadoc) * @see org.openiam.idm.srvc.grp.ws.GroupDataWebService#getAllGroupsWithDependents(boolean) */ public GroupListResponse getAllGroupsWithDependents(boolean subgroups) { GroupListResponse resp = new GroupListResponse(ResponseStatus.SUCCESS); List<Group> grpList = groupManager.getAllGroupsWithDependents(subgroups); if (grpList == null || grpList.isEmpty()) { resp.setStatus(ResponseStatus.FAILURE); return resp; } resp.setGroupList(grpList); return resp; }
public GroupListResponse getUserInGroupsAsFlatList(String userId) { log.info("getUserInGroupsAsFlatList: userId=" + userId); GroupListResponse resp = new GroupListResponse(ResponseStatus.SUCCESS); List<Group> grpList = groupManager.getUserInGroupsAsFlatList(userId); if (grpList == null || grpList.isEmpty()) { resp.setStatus(ResponseStatus.FAILURE); return resp; } resp.setGroupList(grpList); return resp; }
/* (non-Javadoc) * @see org.openiam.idm.srvc.grp.ws.GroupDataWebService#getGroupsNotLinkedToUser(java.lang.String, java.lang.String, boolean) */ public GroupListResponse getGroupsNotLinkedToUser( String userId, String parentGroupId, boolean nested) { GroupListResponse resp = new GroupListResponse(ResponseStatus.SUCCESS); List<Group> grpList = groupManager.getGroupsNotLinkedToUser(userId, parentGroupId, nested); if (grpList == null || grpList.isEmpty()) { resp.setStatus(ResponseStatus.FAILURE); return resp; } resp.setGroupList(grpList); return resp; }