Package edu.stanford.bmir.protege.web.shared.crud.oboid

Examples of edu.stanford.bmir.protege.web.shared.crud.oboid.UserIdRange


        }
    }

    private void setCurrentId(UserId userId, long currentId) {
        if (userId2CurrentIdMap.containsKey(userId)) {
            UserIdRange userIdRange = userId2RangeEndMap.get(userId);
            long limitForUser = userIdRange.getEnd();
            if(currentId > limitForUser) {
                throw new CannotGenerateFreshEntityIdForUserException(userIdRange);
            }
            userId2CurrentIdMap.put(userId, currentId);
        }
View Full Code Here


        long start = getStart().get();
        long end = getEnd().get();
        if(end < start) {
            end = getDefaultEndValue();
        }
        return Optional.of(new UserIdRange(UserId.getUserId(userIdEditor.getText().trim()), start, end));
    }
View Full Code Here

    }

    @Test
    public void constructorCopiesSpecifiedUserRanges() {
        List<UserIdRange> rangeList = new ArrayList<UserIdRange>();
        UserIdRange userIdRange = mock(UserIdRange.class);
        rangeList.add(userIdRange);
        OBOIdSuffixSettings settings = new OBOIdSuffixSettings(rangeList);
        rangeList.clear();
        assertEquals(Arrays.asList(userIdRange), settings.getUserIdRanges());
    }
View Full Code Here

TOP

Related Classes of edu.stanford.bmir.protege.web.shared.crud.oboid.UserIdRange

Copyright © 2018 www.massapicom. 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.