106107108109110111112113114115
obj = getLink(linkDao, link.getUrl()); } else if (link.getUrlHash() != null) { obj = getLinkByUrlHash(linkDao, link.getUrlHash()); } if (obj == null) { throw new NoSuchLinkException("no such link=" + link.getUrl()); } link.setId(obj.getId()); } }
60616263646566
public IsolatedPreset.IsolatedLink getIsolatedLink(Integer l) throws NoSuchLinkException { int li = l.intValue(); if (li >= 0 && li < links.length) return links[li]; throw new NoSuchLinkException(l.toString()); }