/** * Returns true if entry is a media entry, i.e. has rel="edit-media". * * @return true if entry is a media entry */ public boolean isMediaEntry() { boolean mediaEntry = false; final List<Link> links = getOtherLinks(); for (final Link link : links) { if ("edit-media".equals(link.getRel())) { mediaEntry = true; break; } } return mediaEntry; }
/** * Returns true if entry is a media entry, i.e. has rel="edit-media". * * @return true if entry is a media entry */ public boolean isMediaEntry() { boolean mediaEntry = false; final List<Link> links = getOtherLinks(); for (final Link link : links) { if ("edit-media".equals(link.getRel())) { mediaEntry = true; break; } } return mediaEntry; }
for (final Object element : newEntry.getOtherLinks()) { final Link link = (Link) element; if ("edit".equals(link.getRel())) { for (final Object element : newEntry.getOtherLinks()) { final Link link = (Link) element; if ("edit".equals(link.getRel())) {
List<Link> otherLinks = entry.getOtherLinks(); if (otherLinks != null) { for (final Link link : otherLinks) {
for (Object objLink : mediaEntry.getOtherLinks()) { Link link = (Link) objLink; if ("edit".equals(link.getRel())) {
for (Object objLink : newEntry.getOtherLinks()) { Link link = (Link) objLink; if ("edit".equals(link.getRel())) {
final List<Link> otherLinks = entry.getOtherLinks(); if (Lists.isNotEmpty(otherLinks)) { final List<Link> oLinks = otherLinks;
final List<Link> otherLinks = entry.getOtherLinks(); if (Lists.isNotEmpty(otherLinks)) { final List<Link> oLinks = otherLinks;
final List<Link> otherLinks = entry.getOtherLinks(); if (Lists.isNotEmpty(otherLinks)) { for (final Link otherLink : otherLinks) {
final List<Link> otherLinks = entry.getOtherLinks(); if (Lists.isNotEmpty(otherLinks)) { for (final Link otherLink : otherLinks) {
final List<Link> otherLinks = entry.getOtherLinks(); for (final Link link : otherLinks) { eEntry.addContent(generateLinkElement(link));
final List<Link> otherLinks = entry.getOtherLinks(); for (final Link link : otherLinks) { eEntry.addContent(generateLinkElement(link));
final List<Link> otherLinks = entry.getOtherLinks(); if (otherLinks != null) { for (final Link link : otherLinks) {
final List<Link> otherLinks = entry.getOtherLinks(); if (otherLinks != null) { for (final Link link : otherLinks) {