@Test public void testApplicationLinks() { String basePath = "/"+APPLICATION; ApplicationLinks links = applicationMapper.computeApplicationLinks(basePath, null); assertNotNull(links); assertEquals(basePath, links.getSelf()); assertEquals(basePath+"/members", links.getMembers()); assertEquals(basePath+"/notifications", links.getNotifications()); assertEquals(basePath+"/picture", links.getPicture()); }
public ApplicationLinks computeApplicationLinks(String basePath, OffsetDateTime updateDate) { ApplicationLinks applicationLinks = new ApplicationLinks(); applicationLinks.setMembers(basePath+"/members"); applicationLinks.setNotifications(basePath+"/notifications"); applicationLinks.setPicture(basePath + "/picture" + (updateDate == null? "" : "?" + updateDate.hashCode())); applicationLinks.setBackground(basePath + "/background" + (updateDate == null? "" : "?" + updateDate.hashCode())); applicationLinks.setSelf(basePath); return applicationLinks; }
ApplicationMapper { public ApplicationLinks computeApplicationLinks(String basePath, OffsetDateTime updateDate) { ApplicationLinks applicationLinks = new ApplicationLinks(); applicationLinks.setMembers(basePath+"/members"); applicationLinks.setNotifications(basePath+"/notifications"); applicationLinks.setPicture(basePath + "/picture" + (updateDate == null? "" : "?" + updateDate.hashCode())); applicationLinks.setBackground(basePath + "/background" + (updateDate == null? "" : "?" + updateDate.hashCode())); applicationLinks.setSelf(basePath); return applicationLinks; } }
ApplicationMapper { public ApplicationLinks computeApplicationLinks(String basePath, OffsetDateTime updateDate) { ApplicationLinks applicationLinks = new ApplicationLinks(); applicationLinks.setMembers(basePath+"/members"); applicationLinks.setNotifications(basePath+"/notifications"); applicationLinks.setPicture(basePath + "/picture" + (updateDate == null? "" : "?" + updateDate.hashCode())); applicationLinks.setBackground(basePath + "/background" + (updateDate == null? "" : "?" + updateDate.hashCode())); applicationLinks.setSelf(basePath); return applicationLinks; }  }
ApplicationMapper { public ApplicationLinks computeApplicationLinks(String basePath, OffsetDateTime updateDate) { ApplicationLinks applicationLinks = new ApplicationLinks(); applicationLinks.setMembers(basePath+"/members"); applicationLinks.setNotifications(basePath+"/notifications"); applicationLinks.setPicture(basePath + "/picture" + (updateDate == null? "" : "?" + updateDate.hashCode())); applicationLinks.setBackground(basePath + "/background" + (updateDate == null? "" : "?" + updateDate.hashCode())); applicationLinks.setSelf(basePath); return applicationLinks; }  Application convert(ApplicationListItem applicationListItem, UriInfo uriInfo); ApplicationLinks computeApplicationLinks(String basePath, OffsetDateTime updateDate); Application convert(ApplicationEntity applicationEntity, UriInfo uriInfo); }
ApplicationMapper { public ApplicationLinks computeApplicationLinks(String basePath, OffsetDateTime updateDate) { ApplicationLinks applicationLinks = new ApplicationLinks(); applicationLinks.setMembers(basePath+"/members"); applicationLinks.setNotifications(basePath+"/notifications"); applicationLinks.setPicture(basePath + "/picture" + (updateDate == null? "" : "?" + updateDate.hashCode())); applicationLinks.setBackground(basePath + "/background" + (updateDate == null? "" : "?" + updateDate.hashCode())); applicationLinks.setSelf(basePath); return applicationLinks; }  Application convert(ApplicationListItem applicationListItem, UriInfo uriInfo); ApplicationLinks computeApplicationLinks(String basePath, OffsetDateTime updateDate); Application convert(ApplicationEntity applicationEntity, UriInfo uriInfo);  }