@Override public Void execute() throws IdentityStoreException, GroupNotFoundException { identityStore.deleteGroup(uniqueGroupId); return null; } }).pushEvent(IdentityStoreInterceptorConstants.POST_DELETE_GROUP, (eventProperties) -> {
@Override public void deleteGroup(String uniqueGroupId) throws IdentityStoreException, GroupNotFoundException { identityStore.deleteGroup(uniqueGroupId); doDeleteGroup(uniqueGroupId, identityStore.getPrimaryDomainName()); }
@Override public void deleteGroup(String groupId) throws NotFoundException, CharonException, NotImplementedException, BadRequestException { if (log.isDebugEnabled()) { log.debug("Deleting Group: " + groupId); } try { //todo: need to fix deleteGroup method in IdentityStore properly and remove getGroup method identityStore.getGroup(groupId); identityStore.deleteGroup(groupId); if (log.isDebugEnabled()) { log.debug("User with the id : " + groupId + " is deleted through SCIM."); } } catch (GroupNotFoundException e) { throw new NotFoundException("Group with the group id : " + groupId + " does not exists."); } catch (IdentityStoreException e) { throw new CharonException("Error in deleting the group with the id: " + groupId, e); } }