@Override public String getId() { return config.getId(); }
@Override public boolean equals(Object obj) { if (obj instanceof Site) { SiteConfiguration osc = ((Site) obj).getConfiguration(); // this will return false if one of the two sites is not activated // -> this should be OK return siteConfiguration != null && osc != null && getId().equals(osc.getId()); } else { return false; } }
@Override public boolean equals(Object obj) { if (obj instanceof Site) { SiteConfiguration osc = ((Site) obj).getConfiguration(); // this will return false if one of the two sites is not activated // -> this should be OK return siteConfiguration != null && osc != null && getId().equals(osc.getId()); } else { return false; } }
@Override public Entity getEntity(String id) throws ManagedSiteException { Representation rep; try { rep = getYard().getRepresentation(id); } catch (YardException e) { throw new ManagedSiteException(e.getMessage(), e); } if(rep != null){ Entity entity = new EntityImpl(config.getId(), rep, null); SiteUtils.initEntityMetadata(entity, siteMetadata, null); return entity; } else { return null; } }