@Test public void testGetDirectReference() { assertEquals(DIRECT_REFERENCE_LONG, Long.valueOf(sut.getDirectReference(INDIRECT_REFERENCE))); }
@Override public long getDirectReference(String indirectReference) { HttpSession session = getSession(); AccessReferenceMap<String> map = getMap(); Long directReference = null; try { directReference = Long.parseLong((String) map .getDirectReference(indirectReference)); } catch (AccessControlException e1) { logger.error(e1.getLogMessage()); } return directReference; }
AccessReferenceMapperImpl implements AccessReferenceMapper { @Override public long getDirectReference(String indirectReference) { HttpSession session = getSession(); AccessReferenceMap<String> map = getMap(); Long directReference = null; try { directReference = Long.parseLong((String) map .getDirectReference(indirectReference)); } catch (AccessControlException e1) { logger.error(e1.getLogMessage()); } return directReference; } }
AccessReferenceMapperImpl implements AccessReferenceMapper { @Override public long getDirectReference(String indirectReference) { HttpSession session = getSession(); AccessReferenceMap<String> map = getMap(); Long directReference = null; try { directReference = Long.parseLong((String) map .getDirectReference(indirectReference)); } catch (AccessControlException e1) { logger.error(e1.getLogMessage()); } return directReference; }  }
AccessReferenceMapperImpl implements AccessReferenceMapper { @Override public long getDirectReference(String indirectReference) { HttpSession session = getSession(); AccessReferenceMap<String> map = getMap(); Long directReference = null; try { directReference = Long.parseLong((String) map .getDirectReference(indirectReference)); } catch (AccessControlException e1) { logger.error(e1.getLogMessage()); } return directReference; }  @Override long getDirectReference(String indirectReference); @Override String getIndirectReference(String directReference); @Override void setupAccessReferenceMap(Iterable<? extends HasId> objects); }
AccessReferenceMapperImpl implements AccessReferenceMapper { @Override public long getDirectReference(String indirectReference) { HttpSession session = getSession(); AccessReferenceMap<String> map = getMap(); Long directReference = null; try { directReference = Long.parseLong((String) map .getDirectReference(indirectReference)); } catch (AccessControlException e1) { logger.error(e1.getLogMessage()); } return directReference; }  @Override long getDirectReference(String indirectReference); @Override String getIndirectReference(String directReference); @Override void setupAccessReferenceMap(Iterable<? extends HasId> objects);  }