Contains all of the informations concerning a given link. The content of the link is stored as if it were a text paragraph.
Standard properties include : none. @author Fromentin Xavier, Schnell Michaƫl, Dervin Cyrielle, Brabant Quentin @version 1.0
4142434445464748
return userWorkspace.getNotConfirmed(); } public Link getBookLink() { Link result = linkSource.createPageRenderLinkWithContext("book", current.getHotel()); return result; }
122123124125126127128129130131132133134
LinkFactory factory = new LinkFactoryImpl(request, response, map, null, optimizer, null, contextValueEncoder, securityManager); factory.addListener(listener); Link link = factory.createPageLink(page, false); assertEquals(link.toRedirectURI(), ENCODED); // Make sure the link was passed to the LinkFactoryListener assertSame(link, holder.get());
174175176177178179180181182183184185186
contextValueEncoder, securityManager); factory.addListener(listener); Link link = factory.createPageLink(page, false); assertEquals(link.toRedirectURI(), ENCODED); // Make sure the link was passed to the LinkFactoryListener assertSame(link, holder.get());
222223224225226227228229230231232233234
LinkFactory factory = new LinkFactoryImpl(request, response, map, null, optimizer, null, contextValueEncoder, securityManager); factory.addListener(listener); Link link = factory.createPageLink(page, false, "biff", "bazz"); assertEquals(link.toRedirectURI(), ENCODED); // Make sure the link was passed to the LinkFactoryListener assertSame(link, holder.get());
269270271272273274275276277278279280281
LinkFactory factory = new LinkFactoryImpl(request, response, map, null, optimizer, null, contextValueEncoder, securityManager); factory.addListener(listener); Link link = factory.createPageLink(page, true); assertEquals(link.toRedirectURI(), ENCODED); // Make sure the link was passed to the LinkFactoryListener assertSame(link, holder.get());
319320321322323324325326327328329330331
LinkFactory factory = new LinkFactoryImpl(request, response, map, cache, optimizer, null, contextValueEncoder, securityManager); factory.addListener(listener); Link link = factory.createPageLink(PAGE_LOGICAL_NAME, false); assertEquals(link.toRedirectURI(), ENCODED); // Make sure the link was passed to the LinkFactoryListener assertSame(link, holder.get());
371372373374375376377378379380381382383
LinkFactory factory = new LinkFactoryImpl(request, response, map, cache, optimizer, null, contextValueEncoder, securityManager); factory.addListener(listener); Link link = factory.createPageLink(logicalName, false); assertEquals(link.toRedirectURI(), ENCODED); // Make sure the link was passed to the LinkFactoryListener assertSame(link, holder.get());
423424425426427428429430431432433434435
476477478479480481482483484485486
{ return new IAnswer<Void>() { public Void answer() throws Throwable { Link link = (Link) EasyMock.getCurrentArguments()[0]; holder.put(link); return null; }
544545546547548549550551552553554555
LinkFactory factory = new LinkFactoryImpl(request, response, map, cache, optimizer, queue, contextValueEncoder, securityManager); factory.addListener(listener); Link link = factory.createActionLink(page, null, "myaction", false, "1.2.3", "4.5.6"); assertEquals(link.toURI(), ENCODED); assertSame(link, holder.get()); verify(); }