public List<UserTag> findSKOSNarrower(User user, UserTag userTag) throws NoSuchUserException, NoSuchTagException, NoSuchUserTagException, MissingIdException { logger.debug("findSKOSNarrower: user="******",userTag=" + userTag); if (GnizrDaoUtil.hasMissingId(user)) { GnizrDaoUtil.fillId(userDao, user); } if (GnizrDaoUtil.hasMissingId(userTag)) { GnizrDaoUtil.fillId(tagDao, userDao, userTag); } List<UserTag> result = new ArrayList<UserTag>(); seekNarrower(user, userTag, result, userTag.getId()); return result; }
public List<UserTag> findUserTagInstance(User user, UserTag classTag) throws NoSuchUserException, NoSuchTagException, NoSuchUserTagException, MissingIdException { logger.debug("findUserTagInstance: user="******",classTag=" + classTag); if (GnizrDaoUtil.hasMissingId(user)) { GnizrDaoUtil.fillId(userDao, user); } if (GnizrDaoUtil.hasMissingId(classTag)) { GnizrDaoUtil.fillId(tagDao, userDao, classTag); } List<UserTag> instanceTag = new ArrayList<UserTag>(); List<TagAssertion> asrts = tagAssertionDao.findTagAssertion(user, null, rdfTypePrpt, classTag); if (asrts != null && !asrts.isEmpty()) { addUserTagSubjectToList(asrts, instanceTag, classTag.getId()); } return instanceTag; }
public List<UserTag> findRDFType(User user, UserTag userTag) throws NoSuchUserException, NoSuchTagException, NoSuchUserTagException, MissingIdException { logger.debug("findRDFType: user="******",userTag=" + userTag); if (GnizrDaoUtil.hasMissingId(user)) { GnizrDaoUtil.fillId(userDao, user); } if (GnizrDaoUtil.hasMissingId(userTag)) { GnizrDaoUtil.fillId(tagDao, userDao, userTag); } List<TagAssertion> asrts = null; List<UserTag> classTags = new ArrayList<UserTag>(); asrts = tagAssertionDao.findTagAssertion(user, userTag, rdfTypePrpt, null); if (asrts != null && !asrts.isEmpty()) { addUserTagObjectToList(asrts, classTags, -1); } return classTags; }
public List<UserTag> findSKOSRelated(User user, UserTag userTag) throws NoSuchUserException, NoSuchTagException, NoSuchUserTagException, MissingIdException { logger.debug("findSKOSRelated: user="******",userTag=" + userTag); if (GnizrDaoUtil.hasMissingId(user)) { GnizrDaoUtil.fillId(userDao, user); } if (GnizrDaoUtil.hasMissingId(userTag)) { GnizrDaoUtil.fillId(tagDao, userDao, userTag); } List<TagAssertion> asrts = null; List<UserTag> relatedTags = new ArrayList<UserTag>(); asrts = tagAssertionDao.findTagAssertion(user, userTag, skosRelatedPrpt, null); if (asrts != null && !asrts.isEmpty()) { addUserTagObjectToList(asrts, relatedTags, userTag.getId()); } asrts = tagAssertionDao.findTagAssertion(user, null, skosRelatedPrpt, userTag); if (asrts != null && !asrts.isEmpty()) { addUserTagSubjectToList(asrts, relatedTags, userTag.getId()); } return relatedTags; }