Examples of ItemGuidIF


Examples of de.nava.informa.core.ItemGuidIF

            String permaLinkStr = permaLinkAttribute.getValue();
            if (permaLinkStr != null) {
              permaLink = Boolean.valueOf(permaLinkStr).booleanValue();
            }
          }
          ItemGuidIF itemGuid = cBuilder.createItemGuid(rssItem, guidUrl,
              permaLink);
          rssItem.setGuid(itemGuid);
        }
      }
View Full Code Here

Examples of de.nava.informa.core.ItemGuidIF

    // Copy values
    InformaUtils.copyItemProperties(ethalon, item);

    // Copy guid if present
    final ItemGuidIF ethalonGuid = ethalon.getGuid();
    if (ethalonGuid != null) {
      item.setGuid(new ItemGuid(item, ethalonGuid.getLocation(), ethalonGuid.isPermaLink()));
    }

    return item;
  }
View Full Code Here

Examples of de.nava.informa.core.ItemGuidIF

   */
  public boolean equals(Object o) {
    if (this == o) return true;
    if (!(o instanceof ItemGuidIF)) return false;

    final ItemGuidIF itemGuid = (ItemGuidIF) o;

    if (location != null ? !location.equals(itemGuid.getLocation()) : itemGuid.getLocation() != null) return false;

    return true;
  }
View Full Code Here

Examples of de.nava.informa.core.ItemGuidIF

  }
 
  public ItemGuidIF createItemGuid(ItemIF item, String location, boolean permaLink) {
    Query query = session.createQuery("from ItemGuid as guid where guid.location = ? ");
    query.setString(0, location);
    ItemGuidIF guid = (ItemGuidIF) query.uniqueResult();
    if (guid == null) {
      guid = new ItemGuid(item, location, permaLink);
      guid.setPermaLink(permaLink);
      session.save(guid);
    }
    return guid;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.