/** * Returns the first dict collection in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching dict collection * @throws NoSuchDictCollectionException if a matching dict collection could not be found */ @Override public DictCollection findByUuid_First(String uuid, OrderByComparator<DictCollection> orderByComparator) throws NoSuchDictCollectionException { DictCollection dictCollection = fetchByUuid_First(uuid, orderByComparator); if (dictCollection != null) { return dictCollection; } StringBundler msg = new StringBundler(4); msg.append(_NO_SUCH_ENTITY_WITH_KEY); msg.append("uuid="); msg.append(uuid); msg.append(StringPool.CLOSE_CURLY_BRACE); throw new NoSuchDictCollectionException(msg.toString()); }
/** * Returns the last dict collection in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching dict collection * @throws NoSuchDictCollectionException if a matching dict collection could not be found */ @Override public DictCollection findByUuid_Last(String uuid, OrderByComparator<DictCollection> orderByComparator) throws NoSuchDictCollectionException { DictCollection dictCollection = fetchByUuid_Last(uuid, orderByComparator); if (dictCollection != null) { return dictCollection; } StringBundler msg = new StringBundler(4); msg.append(_NO_SUCH_ENTITY_WITH_KEY); msg.append("uuid="); msg.append(uuid); msg.append(StringPool.CLOSE_CURLY_BRACE); throw new NoSuchDictCollectionException(msg.toString()); }
/** * Returns the first dict collection in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching dict collection * @throws NoSuchDictCollectionException if a matching dict collection could not be found */ @Override public DictCollection findByUuid_C_First(String uuid, long companyId, OrderByComparator<DictCollection> orderByComparator) throws NoSuchDictCollectionException { DictCollection dictCollection = fetchByUuid_C_First(uuid, companyId, orderByComparator); if (dictCollection != null) { return dictCollection; } StringBundler msg = new StringBundler(6); msg.append(_NO_SUCH_ENTITY_WITH_KEY); msg.append("uuid="); msg.append(uuid); msg.append(", companyId="); msg.append(companyId); msg.append(StringPool.CLOSE_CURLY_BRACE); throw new NoSuchDictCollectionException(msg.toString()); }
/** * Returns the last dict collection in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching dict collection * @throws NoSuchDictCollectionException if a matching dict collection could not be found */ @Override public DictCollection findByUuid_C_Last(String uuid, long companyId, OrderByComparator<DictCollection> orderByComparator) throws NoSuchDictCollectionException { DictCollection dictCollection = fetchByUuid_C_Last(uuid, companyId, orderByComparator); if (dictCollection != null) { return dictCollection; } StringBundler msg = new StringBundler(6); msg.append(_NO_SUCH_ENTITY_WITH_KEY); msg.append("uuid="); msg.append(uuid); msg.append(", companyId="); msg.append(companyId); msg.append(StringPool.CLOSE_CURLY_BRACE); throw new NoSuchDictCollectionException(msg.toString()); }
/** * Returns the first dict collection in the ordered set where groupId = ?. * * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching dict collection * @throws NoSuchDictCollectionException if a matching dict collection could not be found */ @Override public DictCollection findByF_dictCollectionByGroup_First(long groupId, OrderByComparator<DictCollection> orderByComparator) throws NoSuchDictCollectionException { DictCollection dictCollection = fetchByF_dictCollectionByGroup_First(groupId, orderByComparator); if (dictCollection != null) { return dictCollection; } StringBundler msg = new StringBundler(4); msg.append(_NO_SUCH_ENTITY_WITH_KEY); msg.append("groupId="); msg.append(groupId); msg.append(StringPool.CLOSE_CURLY_BRACE); throw new NoSuchDictCollectionException(msg.toString()); }
/** * Returns the first comment in the ordered set where groupId = ?. * * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching comment * @throws NoSuchCommentException if a matching comment could not be found */ @Override public Comment findByF_groupId_First(long groupId, OrderByComparator<Comment> orderByComparator) throws NoSuchCommentException { Comment comment = fetchByF_groupId_First(groupId, orderByComparator); if (comment != null) { return comment; } StringBundler msg = new StringBundler(4); msg.append(_NO_SUCH_ENTITY_WITH_KEY); msg.append("groupId="); msg.append(groupId); msg.append(StringPool.CLOSE_CURLY_BRACE); throw new NoSuchCommentException(msg.toString()); }
/** * Returns the first voting in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching voting * @throws NoSuchVotingException if a matching voting could not be found */ @Override public Voting findByUuid_First(String uuid, OrderByComparator<Voting> orderByComparator) throws NoSuchVotingException { Voting voting = fetchByUuid_First(uuid, orderByComparator); if (voting != null) { return voting; } StringBundler msg = new StringBundler(4); msg.append(_NO_SUCH_ENTITY_WITH_KEY); msg.append("uuid="); msg.append(uuid); msg.append(StringPool.CLOSE_CURLY_BRACE); throw new NoSuchVotingException(msg.toString()); }
/** * Returns the first voting in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching voting * @throws NoSuchVotingException if a matching voting could not be found */ @Override public Voting findByUuid_C_First(String uuid, long companyId, OrderByComparator<Voting> orderByComparator) throws NoSuchVotingException { Voting voting = fetchByUuid_C_First(uuid, companyId, orderByComparator); if (voting != null) { return voting; } StringBundler msg = new StringBundler(6); msg.append(_NO_SUCH_ENTITY_WITH_KEY); msg.append("uuid="); msg.append(uuid); msg.append(", companyId="); msg.append(companyId); msg.append(StringPool.CLOSE_CURLY_BRACE); throw new NoSuchVotingException(msg.toString()); }
/** * Returns the last voting in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching voting * @throws NoSuchVotingException if a matching voting could not be found */ @Override public Voting findByUuid_C_Last(String uuid, long companyId, OrderByComparator<Voting> orderByComparator) throws NoSuchVotingException { Voting voting = fetchByUuid_C_Last(uuid, companyId, orderByComparator); if (voting != null) { return voting; } StringBundler msg = new StringBundler(6); msg.append(_NO_SUCH_ENTITY_WITH_KEY); msg.append("uuid="); msg.append(uuid); msg.append(", companyId="); msg.append(companyId); msg.append(StringPool.CLOSE_CURLY_BRACE); throw new NoSuchVotingException(msg.toString()); }
/** * Returns the first voting result in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching voting result * @throws NoSuchVotingResultException if a matching voting result could not be found */ @Override public VotingResult findByUuid_C_First(String uuid, long companyId, OrderByComparator<VotingResult> orderByComparator) throws NoSuchVotingResultException { VotingResult votingResult = fetchByUuid_C_First(uuid, companyId, orderByComparator); if (votingResult != null) { return votingResult; } StringBundler msg = new StringBundler(6); msg.append(_NO_SUCH_ENTITY_WITH_KEY); msg.append("uuid="); msg.append(uuid); msg.append(", companyId="); msg.append(companyId); msg.append(StringPool.CLOSE_CURLY_BRACE); throw new NoSuchVotingResultException(msg.toString()); }
/** * Returns the last dict item in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching dict item * @throws NoSuchDictItemException if a matching dict item could not be found */ @Override public DictItem findByUuid_Last(String uuid, OrderByComparator<DictItem> orderByComparator) throws NoSuchDictItemException { DictItem dictItem = fetchByUuid_Last(uuid, orderByComparator); if (dictItem != null) { return dictItem; } StringBundler msg = new StringBundler(4); msg.append(_NO_SUCH_ENTITY_WITH_KEY); msg.append("uuid="); msg.append(uuid); msg.append(StringPool.CLOSE_CURLY_BRACE); throw new NoSuchDictItemException(msg.toString()); }
/** * Returns the last comment in the ordered set where groupId = ?. * * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching comment * @throws NoSuchCommentException if a matching comment could not be found */ @Override public Comment findByF_groupId_Last(long groupId, OrderByComparator<Comment> orderByComparator) throws NoSuchCommentException { Comment comment = fetchByF_groupId_Last(groupId, orderByComparator); if (comment != null) { return comment; } StringBundler msg = new StringBundler(4); msg.append(_NO_SUCH_ENTITY_WITH_KEY); msg.append("groupId="); msg.append(groupId); msg.append(StringPool.CLOSE_CURLY_BRACE); throw new NoSuchCommentException(msg.toString()); }
/** * Returns the last dict item in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching dict item * @throws NoSuchDictItemException if a matching dict item could not be found */ @Override public DictItem findByUuid_C_Last(String uuid, long companyId, OrderByComparator<DictItem> orderByComparator) throws NoSuchDictItemException { DictItem dictItem = fetchByUuid_C_Last(uuid, companyId, orderByComparator); if (dictItem != null) { return dictItem; } StringBundler msg = new StringBundler(6); msg.append(_NO_SUCH_ENTITY_WITH_KEY); msg.append("uuid="); msg.append(uuid); msg.append(", companyId="); msg.append(companyId); msg.append(StringPool.CLOSE_CURLY_BRACE); throw new NoSuchDictItemException(msg.toString()); }
/** * Returns the last dict item in the ordered set where dictCollectionId = ?. * * @param dictCollectionId the dict collection ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching dict item * @throws NoSuchDictItemException if a matching dict item could not be found */ @Override public DictItem findByF_dictCollectionId_Last(long dictCollectionId, OrderByComparator<DictItem> orderByComparator) throws NoSuchDictItemException { DictItem dictItem = fetchByF_dictCollectionId_Last(dictCollectionId, orderByComparator); if (dictItem != null) { return dictItem; } StringBundler msg = new StringBundler(4); msg.append(_NO_SUCH_ENTITY_WITH_KEY); msg.append("dictCollectionId="); msg.append(dictCollectionId); msg.append(StringPool.CLOSE_CURLY_BRACE); throw new NoSuchDictItemException(msg.toString()); }
/** * Returns the first dict item in the ordered set where dictCollectionId = ? and groupId = ?. * * @param dictCollectionId the dict collection ID * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching dict item * @throws NoSuchDictItemException if a matching dict item could not be found */ @Override public DictItem findByF_dictItemByGroup_First(long dictCollectionId, long groupId, OrderByComparator<DictItem> orderByComparator) throws NoSuchDictItemException { DictItem dictItem = fetchByF_dictItemByGroup_First(dictCollectionId, groupId, orderByComparator); if (dictItem != null) { return dictItem; } StringBundler msg = new StringBundler(6); msg.append(_NO_SUCH_ENTITY_WITH_KEY); msg.append("dictCollectionId="); msg.append(dictCollectionId); msg.append(", groupId="); msg.append(groupId); msg.append(StringPool.CLOSE_CURLY_BRACE); throw new NoSuchDictItemException(msg.toString()); }
/** * Returns the last dict item in the ordered set where dictCollectionId = ? and groupId = ?. * * @param dictCollectionId the dict collection ID * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching dict item * @throws NoSuchDictItemException if a matching dict item could not be found */ @Override public DictItem findByF_dictItemByGroup_Last(long dictCollectionId, long groupId, OrderByComparator<DictItem> orderByComparator) throws NoSuchDictItemException { DictItem dictItem = fetchByF_dictItemByGroup_Last(dictCollectionId, groupId, orderByComparator); if (dictItem != null) { return dictItem; } StringBundler msg = new StringBundler(6); msg.append(_NO_SUCH_ENTITY_WITH_KEY); msg.append("dictCollectionId="); msg.append(dictCollectionId); msg.append(", groupId="); msg.append(groupId); msg.append(StringPool.CLOSE_CURLY_BRACE); throw new NoSuchDictItemException(msg.toString()); }
/** * Returns the first dict item in the ordered set where parentItemId = ?. * * @param parentItemId the parent item ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching dict item * @throws NoSuchDictItemException if a matching dict item could not be found */ @Override public DictItem findByF_parentItemId_First(long parentItemId, OrderByComparator<DictItem> orderByComparator) throws NoSuchDictItemException { DictItem dictItem = fetchByF_parentItemId_First(parentItemId, orderByComparator); if (dictItem != null) { return dictItem; } StringBundler msg = new StringBundler(4); msg.append(_NO_SUCH_ENTITY_WITH_KEY); msg.append("parentItemId="); msg.append(parentItemId); msg.append(StringPool.CLOSE_CURLY_BRACE); throw new NoSuchDictItemException(msg.toString()); }
/** * Returns the last dict item in the ordered set where parentItemId = ?. * * @param parentItemId the parent item ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching dict item * @throws NoSuchDictItemException if a matching dict item could not be found */ @Override public DictItem findByF_parentItemId_Last(long parentItemId, OrderByComparator<DictItem> orderByComparator) throws NoSuchDictItemException { DictItem dictItem = fetchByF_parentItemId_Last(parentItemId, orderByComparator); if (dictItem != null) { return dictItem; } StringBundler msg = new StringBundler(4); msg.append(_NO_SUCH_ENTITY_WITH_KEY); msg.append("parentItemId="); msg.append(parentItemId); msg.append(StringPool.CLOSE_CURLY_BRACE); throw new NoSuchDictItemException(msg.toString()); }
/** * Returns the last dict item group in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching dict item group * @throws NoSuchDictItemGroupException if a matching dict item group could not be found */ @Override public DictItemGroup findByUuid_Last(String uuid, OrderByComparator<DictItemGroup> orderByComparator) throws NoSuchDictItemGroupException { DictItemGroup dictItemGroup = fetchByUuid_Last(uuid, orderByComparator); if (dictItemGroup != null) { return dictItemGroup; } StringBundler msg = new StringBundler(4); msg.append(_NO_SUCH_ENTITY_WITH_KEY); msg.append("uuid="); msg.append(uuid); msg.append(StringPool.CLOSE_CURLY_BRACE); throw new NoSuchDictItemGroupException(msg.toString()); }
/** * Returns the first dict item group in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching dict item group * @throws NoSuchDictItemGroupException if a matching dict item group could not be found */ @Override public DictItemGroup findByUuid_C_First(String uuid, long companyId, OrderByComparator<DictItemGroup> orderByComparator) throws NoSuchDictItemGroupException { DictItemGroup dictItemGroup = fetchByUuid_C_First(uuid, companyId, orderByComparator); if (dictItemGroup != null) { return dictItemGroup; } StringBundler msg = new StringBundler(6); msg.append(_NO_SUCH_ENTITY_WITH_KEY); msg.append("uuid="); msg.append(uuid); msg.append(", companyId="); msg.append(companyId); msg.append(StringPool.CLOSE_CURLY_BRACE); throw new NoSuchDictItemGroupException(msg.toString()); }
/** * Returns the last dict item group in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching dict item group * @throws NoSuchDictItemGroupException if a matching dict item group could not be found */ @Override public DictItemGroup findByUuid_C_Last(String uuid, long companyId, OrderByComparator<DictItemGroup> orderByComparator) throws NoSuchDictItemGroupException { DictItemGroup dictItemGroup = fetchByUuid_C_Last(uuid, companyId, orderByComparator); if (dictItemGroup != null) { return dictItemGroup; } StringBundler msg = new StringBundler(6); msg.append(_NO_SUCH_ENTITY_WITH_KEY); msg.append("uuid="); msg.append(uuid); msg.append(", companyId="); msg.append(companyId); msg.append(StringPool.CLOSE_CURLY_BRACE); throw new NoSuchDictItemGroupException(msg.toString()); }
/** * Beautify file size * * @param size * @param locale * @return */ protected String getSize() { long size = Long.valueOf(_document.get("size")); StringBundler sb = new StringBundler(); if (size >= MBYTES) { sb.append(Math.round(size / (float) MBYTES)).append(" MB"); } else if (size >= KBYTES) { sb.append(Math.round(size / (float) KBYTES)).append(" KB"); } else { sb.append(1).append(" KB"); } return sb.toString(); }
/** * Returns the first dict item group in the ordered set where groupId = ? and dictGroupId = ?. * * @param groupId the group ID * @param dictGroupId the dict group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching dict item group * @throws NoSuchDictItemGroupException if a matching dict item group could not be found */ @Override public DictItemGroup findByF_dictGroupId_First(long groupId, long dictGroupId, OrderByComparator<DictItemGroup> orderByComparator) throws NoSuchDictItemGroupException { DictItemGroup dictItemGroup = fetchByF_dictGroupId_First(groupId, dictGroupId, orderByComparator); if (dictItemGroup != null) { return dictItemGroup; } StringBundler msg = new StringBundler(6); msg.append(_NO_SUCH_ENTITY_WITH_KEY); msg.append("groupId="); msg.append(groupId); msg.append(", dictGroupId="); msg.append(dictGroupId); msg.append(StringPool.CLOSE_CURLY_BRACE); throw new NoSuchDictItemGroupException(msg.toString()); }
/** * Returns the last dict item group in the ordered set where groupId = ? and dictGroupId = ?. * * @param groupId the group ID * @param dictGroupId the dict group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching dict item group * @throws NoSuchDictItemGroupException if a matching dict item group could not be found */ @Override public DictItemGroup findByF_dictGroupId_Last(long groupId, long dictGroupId, OrderByComparator<DictItemGroup> orderByComparator) throws NoSuchDictItemGroupException { DictItemGroup dictItemGroup = fetchByF_dictGroupId_Last(groupId, dictGroupId, orderByComparator); if (dictItemGroup != null) { return dictItemGroup; } StringBundler msg = new StringBundler(6); msg.append(_NO_SUCH_ENTITY_WITH_KEY); msg.append("groupId="); msg.append(groupId); msg.append(", dictGroupId="); msg.append(dictGroupId); msg.append(StringPool.CLOSE_CURLY_BRACE); throw new NoSuchDictItemGroupException(msg.toString()); }
/** * Returns the first dict item group in the ordered set where groupId = ? and dictItemId = ?. * * @param groupId the group ID * @param dictItemId the dict item ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching dict item group * @throws NoSuchDictItemGroupException if a matching dict item group could not be found */ @Override public DictItemGroup findByF_dictItemId_First(long groupId, long dictItemId, OrderByComparator<DictItemGroup> orderByComparator) throws NoSuchDictItemGroupException { DictItemGroup dictItemGroup = fetchByF_dictItemId_First(groupId, dictItemId, orderByComparator); if (dictItemGroup != null) { return dictItemGroup; } StringBundler msg = new StringBundler(6); msg.append(_NO_SUCH_ENTITY_WITH_KEY); msg.append("groupId="); msg.append(groupId); msg.append(", dictItemId="); msg.append(dictItemId); msg.append(StringPool.CLOSE_CURLY_BRACE); throw new NoSuchDictItemGroupException(msg.toString()); }
/** * Returns the last dict item group in the ordered set where groupId = ? and dictItemId = ?. * * @param groupId the group ID * @param dictItemId the dict item ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching dict item group * @throws NoSuchDictItemGroupException if a matching dict item group could not be found */ @Override public DictItemGroup findByF_dictItemId_Last(long groupId, long dictItemId, OrderByComparator<DictItemGroup> orderByComparator) throws NoSuchDictItemGroupException { DictItemGroup dictItemGroup = fetchByF_dictItemId_Last(groupId, dictItemId, orderByComparator); if (dictItemGroup != null) { return dictItemGroup; } StringBundler msg = new StringBundler(6); msg.append(_NO_SUCH_ENTITY_WITH_KEY); msg.append("groupId="); msg.append(groupId); msg.append(", dictItemId="); msg.append(dictItemId); msg.append(StringPool.CLOSE_CURLY_BRACE); throw new NoSuchDictItemGroupException(msg.toString()); }
/** * Returns the first dict group in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching dict group * @throws NoSuchDictGroupException if a matching dict group could not be found */ @Override public DictGroup findByUuid_First(String uuid, OrderByComparator<DictGroup> orderByComparator) throws NoSuchDictGroupException { DictGroup dictGroup = fetchByUuid_First(uuid, orderByComparator); if (dictGroup != null) { return dictGroup; } StringBundler msg = new StringBundler(4); msg.append(_NO_SUCH_ENTITY_WITH_KEY); msg.append("uuid="); msg.append(uuid); msg.append(StringPool.CLOSE_CURLY_BRACE); throw new NoSuchDictGroupException(msg.toString()); }
/** * Returns the last dict group in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching dict group * @throws NoSuchDictGroupException if a matching dict group could not be found */ @Override public DictGroup findByUuid_Last(String uuid, OrderByComparator<DictGroup> orderByComparator) throws NoSuchDictGroupException { DictGroup dictGroup = fetchByUuid_Last(uuid, orderByComparator); if (dictGroup != null) { return dictGroup; } StringBundler msg = new StringBundler(4); msg.append(_NO_SUCH_ENTITY_WITH_KEY); msg.append("uuid="); msg.append(uuid); msg.append(StringPool.CLOSE_CURLY_BRACE); throw new NoSuchDictGroupException(msg.toString()); }
/** * Returns the last dict group in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching dict group * @throws NoSuchDictGroupException if a matching dict group could not be found */ @Override public DictGroup findByUuid_C_Last(String uuid, long companyId, OrderByComparator<DictGroup> orderByComparator) throws NoSuchDictGroupException { DictGroup dictGroup = fetchByUuid_C_Last(uuid, companyId, orderByComparator); if (dictGroup != null) { return dictGroup; } StringBundler msg = new StringBundler(6); msg.append(_NO_SUCH_ENTITY_WITH_KEY); msg.append("uuid="); msg.append(uuid); msg.append(", companyId="); msg.append(companyId); msg.append(StringPool.CLOSE_CURLY_BRACE); throw new NoSuchDictGroupException(msg.toString()); }
/** * Returns the first dict group in the ordered set where dictCollectionId = ? and groupId = ?. * * @param dictCollectionId the dict collection ID * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching dict group * @throws NoSuchDictGroupException if a matching dict group could not be found */ @Override public DictGroup findByGID_DC_First(long dictCollectionId, long groupId, OrderByComparator<DictGroup> orderByComparator) throws NoSuchDictGroupException { DictGroup dictGroup = fetchByGID_DC_First(dictCollectionId, groupId, orderByComparator); if (dictGroup != null) { return dictGroup; } StringBundler msg = new StringBundler(6); msg.append(_NO_SUCH_ENTITY_WITH_KEY); msg.append("dictCollectionId="); msg.append(dictCollectionId); msg.append(", groupId="); msg.append(groupId); msg.append(StringPool.CLOSE_CURLY_BRACE); throw new NoSuchDictGroupException(msg.toString()); }
/** * Returns the last dict group in the ordered set where dictCollectionId = ? and groupId = ?. * * @param dictCollectionId the dict collection ID * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching dict group * @throws NoSuchDictGroupException if a matching dict group could not be found */ @Override public DictGroup findByGID_DC_Last(long dictCollectionId, long groupId, OrderByComparator<DictGroup> orderByComparator) throws NoSuchDictGroupException { DictGroup dictGroup = fetchByGID_DC_Last(dictCollectionId, groupId, orderByComparator); if (dictGroup != null) { return dictGroup; } StringBundler msg = new StringBundler(6); msg.append(_NO_SUCH_ENTITY_WITH_KEY); msg.append("dictCollectionId="); msg.append(dictCollectionId); msg.append(", groupId="); msg.append(groupId); msg.append(StringPool.CLOSE_CURLY_BRACE); throw new NoSuchDictGroupException(msg.toString()); }
/** * Returns the first comment in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching comment * @throws NoSuchCommentException if a matching comment could not be found */ @Override public Comment findByUuid_First(String uuid, OrderByComparator<Comment> orderByComparator) throws NoSuchCommentException { Comment comment = fetchByUuid_First(uuid, orderByComparator); if (comment != null) { return comment; } StringBundler msg = new StringBundler(4); msg.append(_NO_SUCH_ENTITY_WITH_KEY); msg.append("uuid="); msg.append(uuid); msg.append(StringPool.CLOSE_CURLY_BRACE); throw new NoSuchCommentException(msg.toString()); }
protected String getEntryRowIds() { StringBundler sb = new StringBundler(13); sb.append("['"); sb.append(_liferayPortletResponse.getNamespace()); sb.append(RowChecker.ROW_IDS); sb.append(TaskRecord.class.getSimpleName()); sb.append("']"); return sb.toString(); }
protected String getStagedModelMessage(Locale locale) { StringBundler sb = new StringBundler(8); sb.append("<strong>"); sb.append(LanguageUtil.get(locale, getStatusMessageKey())); sb.append(StringPool.TRIPLE_PERIOD); sb.append("</strong>"); sb.append(ResourceActionsUtil.getModelResource(locale, _stagedModelType)); sb.append("<em>"); sb.append(HtmlUtil.escape(_stagedModelName)); sb.append("</em>"); return sb.toString(); }
protected String getEntryRowIds() { StringBundler sb = new StringBundler(13); sb.append("['"); sb.append(_liferayPortletResponse.getNamespace()); sb.append(RowChecker.ROW_IDS); sb.append(Contact.class.getSimpleName()); sb.append("']"); return sb.toString(); }
/** * Set image metadata. * * @param metaData * @throws Exception */ protected void setImageMetadata(Map<String, String> metaData) throws Exception { // Dimensions StringBundler sb = new StringBundler(); sb.append(_document.get(getTikaRawMetadataField("WIDTH"))); sb.append(" x "); sb.append(_document.get(getTikaRawMetadataField("LENGTH"))); sb.append(" px"); metaData.put("dimensions", sb.toString()); }
/** * {@inheritDoc} */ @Override public String getLink() throws Exception { StringBundler sb = new StringBundler(); sb.append( getAssetRenderer().getURLView( (LiferayPortletResponse) _portletResponse, WindowState.MAXIMIZED)); return sb.toString(); }
/** * Returns the dict collection where collectionCode = ? and groupId = ? or throws a {@link NoSuchDictCollectionException} if it could not be found. * * @param collectionCode the collection code * @param groupId the group ID * @return the matching dict collection * @throws NoSuchDictCollectionException if a matching dict collection could not be found */ @Override public DictCollection findByF_dictCollectionCode(String collectionCode, long groupId) throws NoSuchDictCollectionException { DictCollection dictCollection = fetchByF_dictCollectionCode(collectionCode, groupId); if (dictCollection == null) { StringBundler msg = new StringBundler(6); msg.append(_NO_SUCH_ENTITY_WITH_KEY); msg.append("collectionCode="); msg.append(collectionCode); msg.append(", groupId="); msg.append(groupId); msg.append(StringPool.CLOSE_CURLY_BRACE); if (_log.isDebugEnabled()) { _log.debug(msg.toString()); } throw new NoSuchDictCollectionException(msg.toString()); } return dictCollection; }
/** * Get a view url for an article which is not bound to a layout or has a * default view page. * * @return url string * @throws PortalException */ protected String getNotLayoutBoundJournalArticleUrl() throws PortalException { ThemeDisplay themeDisplay = (ThemeDisplay) _portletRequest.getAttribute(WebKeys.THEME_DISPLAY); Layout layout = GSearchUtil.getLayoutByFriendlyURL( _portletRequest, _assetPublisherPageFriendlyURL); String assetPublisherInstanceId = GSearchUtil.findDefaultAssetPublisherInstanceId(layout); JournalArticle journalArticle = getJournalArticle(); StringBundler sb = new StringBundler(); sb.append(PortalUtil.getLayoutFriendlyURL(layout, themeDisplay)); sb.append("/-/asset_publisher/"); sb.append(assetPublisherInstanceId); sb.append("/content/"); sb.append(journalArticle.getUrlTitle()); sb.append("?_"); sb.append(AssetPublisherPortletKeys.ASSET_PUBLISHER); sb.append("_INSTANCE_"); sb.append(assetPublisherInstanceId); sb.append("_groupId="); sb.append(journalArticle.getGroupId()); return sb.toString(); }