Examples of GroupNotFoundException


Examples of org.mifosplatform.portfolio.group.exception.GroupNotFoundException

        final Long noteId = command.entityId();

        final NoteType type = NoteType.GROUP;

        final Group group = this.groupRepository.findOne(resourceId);
        if (group == null) { throw new GroupNotFoundException(resourceId); }
        final Note noteForUpdate = this.noteRepository.findByGroupIdAndId(resourceId, noteId);

        if (noteForUpdate == null) { throw new NoteNotFoundException(noteId, resourceId, type.name().toLowerCase()); }

        final Map<String, Object> changes = noteForUpdate.update(command);
View Full Code Here

Examples of org.mifosplatform.portfolio.group.exception.GroupNotFoundException

            final Long groupId = command.longValueOfParameterNamed(ClientApiConstants.groupIdParamName);

            Group clientParentGroup = null;
            if (groupId != null) {
                clientParentGroup = this.groupRepository.findOne(groupId);
                if (clientParentGroup == null) { throw new GroupNotFoundException(groupId); }
            }

            Staff staff = null;
            final Long staffId = command.longValueOfParameterNamed(ClientApiConstants.staffIdParamName);
            if (staffId != null) {
View Full Code Here

Examples of org.nemesis.forum.exception.GroupNotFoundException

      } else {
        pstmt.setString(1, name);
      }
      ResultSet rs = pstmt.executeQuery();
      if (!rs.next()) {
        throw new GroupNotFoundException();
      }
      this.id = rs.getInt("groupID");
      this.name = rs.getString("name");
      this.description = rs.getString("description");
    } catch (SQLException sqle) {
      log.error("SQLException in DbGroup.java:" + "loadFromDb():reading group data " , sqle);
      throw new GroupNotFoundException();
    } finally {
      try {
        pstmt.close();
      } catch (Exception e) {
        log.error("",e);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.