@Test public void testFindByNullActor() { deleteAll(); Shortcut shortcut4common = this.createInstance(this.getDefaultConfig()); shortcut4common.setActorId(new Long(0)); this.shortcutService.save(shortcut4common); Assert.assertNotNull(shortcut4common.getId()); List<Shortcut> shortcuts = this.shortcutService.findByActor(null, false, false); Assert.assertNotNull(shortcuts); Assert.assertEquals(1, shortcuts.size()); Assert.assertEquals(shortcut4common, shortcuts.get(0)); shortcuts = this.shortcutService.findByActor(null, true, false); Assert.assertNotNull(shortcuts); Assert.assertEquals(1, shortcuts.size()); Assert.assertEquals(shortcut4common, shortcuts.get(0)); shortcuts = this.shortcutService.findByActor(null, true, true); Assert.assertNotNull(shortcuts); Assert.assertEquals(1, shortcuts.size()); Assert.assertEquals(shortcut4common, shortcuts.get(0)); }
public List<Shortcut> findByActor(Long actorId) { return this.shortcutDao.findByActor(actorId, true, true); }
ShortcutServiceImpl extends DefaultCrudService<Shortcut> implements
  ShortcutService { public List<Shortcut> findByActor(Long actorId) { return this.shortcutDao.findByActor(actorId, true, true); } }
ShortcutServiceImpl extends DefaultCrudService<Shortcut> implements
  ShortcutService { public List<Shortcut> findByActor(Long actorId) { return this.shortcutDao.findByActor(actorId, true, true); }  }
ShortcutServiceImpl extends DefaultCrudService<Shortcut> implements
  ShortcutService { public List<Shortcut> findByActor(Long actorId) { return this.shortcutDao.findByActor(actorId, true, true); }  @Autowired void setShortcutDao(ShortcutDao shortcutDao); List<Shortcut> findCommon(); List<Shortcut> findByActor(Long actorId); List<Shortcut> findByActor(Long actorId, boolean includeAncestor,
                                    boolean includeCommon); List<Shortcut> findByActor(Long actorId,
                                    Set<Actor> ancestorOrganizations, Set<Role> roles,
                                    Set<Resource> modules); }
ShortcutServiceImpl extends DefaultCrudService<Shortcut> implements
  ShortcutService { public List<Shortcut> findByActor(Long actorId) { return this.shortcutDao.findByActor(actorId, true, true); }  @Autowired void setShortcutDao(ShortcutDao shortcutDao); List<Shortcut> findCommon(); List<Shortcut> findByActor(Long actorId); List<Shortcut> findByActor(Long actorId, boolean includeAncestor,
                                    boolean includeCommon); List<Shortcut> findByActor(Long actorId,
                                    Set<Actor> ancestorOrganizations, Set<Role> roles,
                                    Set<Resource> modules);  }