@Override
 public void classpageUserRemove(String code, List<String> mailIds, User apiCaller)
     throws Exception {
   UserGroup userGroup = this.getUserGroupService().findUserGroupByGroupCode(code);
   Classpage classpage = this.getCollectionRepository().getClasspageByCode(code);
   if (userGroup != null && classpage != null) {
     for (String mailId : mailIds) {
       Identity identity = this.getUserRepository().findByEmailIdOrUserName(mailId, true, false);
       if (identity != null) {
         UserGroupAssociation userGroupAssociation =
             this.getUserRepository()
                 .getUserGroupMemebrByGroupUid(
                     userGroup.getPartyUid(), identity.getUser().getPartyUid());
         if (userGroupAssociation != null) {
           this.getUserGroupRepository().remove(userGroupAssociation);
         }
         InviteUser inviteUser =
             this.getInviteRepository().findInviteUserById(mailId, classpage.getGooruOid());
         if (inviteUser != null) {
           this.getInviteRepository().remove(inviteUser);
         }
       }
     }
   }
 }
 @Override
 public List<Map<String, Object>> classpageUserJoin(
     String code, List<String> mailIds, User apiCaller) throws Exception {
   List<Map<String, Object>> classpageMember = new ArrayList<Map<String, Object>>();
   UserGroup userGroup = this.getUserGroupService().findUserGroupByGroupCode(code);
   Classpage classpage = this.getCollectionRepository().getClasspageByCode(code);
   if (userGroup != null && classpage != null) {
     for (String mailId : mailIds) {
       Identity identity = this.getUserRepository().findByEmailIdOrUserName(mailId, true, false);
       if (identity != null) {
         InviteUser inviteUser =
             this.getInviteRepository().findInviteUserById(mailId, classpage.getGooruOid());
         if (inviteUser != null) {
           inviteUser.setStatus(
               this.getCustomTableRepository().getCustomTableValue(INVITE_USER_STATUS, ACTIVE));
           inviteUser.setJoinedDate(new Date(System.currentTimeMillis()));
           this.getInviteRepository().save(inviteUser);
         }
         if (this.getUserRepository()
                 .getUserGroupMemebrByGroupUid(
                     userGroup.getPartyUid(), identity.getUser().getPartyUid())
             == null) {
           UserGroupAssociation groupAssociation = new UserGroupAssociation();
           groupAssociation.setIsGroupOwner(0);
           groupAssociation.setUser(identity.getUser());
           groupAssociation.setUserGroup(userGroup);
           this.getUserRepository().save(groupAssociation);
           classpageMember.add(setMemberResponse(groupAssociation, ACTIVE));
         }
       }
     }
   }
   return classpageMember;
 }