@Test public void testFindUser() { Actor unit = this.createActor(Actor.TYPE_UNIT, "unit1"); this.actorService.save(unit); Assert.assertNotNull(unit.getId()); Actor user1 = this.createActor(Actor.TYPE_USER, "user1"); this.actorService.save(user1); Assert.assertNotNull(user1.getId()); ActorRelation ar1 = createActorRelation(unit, user1, ActorRelation.TYPE_BELONG, null); actorRelationService.save(ar1); List<Actor> users = this.actorService.findUser(unit.getId()); Assert.assertNotNull(users); Assert.assertEquals(1, users.size()); Assert.assertEquals(user1, users.get(0)); }
public List<Actor> findUser(Long organizationId) { return this.actorDao.findUser(organizationId); }
ActorServiceImpl extends DefaultCrudService<Actor> implements
  ActorService { public List<Actor> findUser(Long organizationId) { return this.actorDao.findUser(organizationId); } }
ActorServiceImpl extends DefaultCrudService<Actor> implements
  ActorService { public List<Actor> findUser(Long organizationId) { return this.actorDao.findUser(organizationId); }  }
ActorServiceImpl extends DefaultCrudService<Actor> implements
  ActorService { public List<Actor> findUser(Long organizationId) { return this.actorDao.findUser(organizationId); }  void setActorDao(ActorDao actorDao); ActorDao getActorDao(); @Override void delete(Serializable id); @Override void delete(Serializable[] ids); Actor loadByCode(String actorCode); Actor loadBelong(Long followerId, Integer[] masterTypes); List<Actor> findBelong(Long followerId, Integer[] masterTypes); List<Actor> findBelong(Long[] followerIds, Integer[] masterTypes); List<Actor> findMaster(Long followerId, Integer[] relationTypes,
                                Integer[] masterTypes); List<Actor> findFollower(Long masterId, Integer[] relationTypes,
                                  Integer[] followerTypes); List<Actor> findFollowerWithName(Long masterId, String followerName,
                                          Integer[] relationTypes, Integer[] followerTypes,
                                          Integer[] followerStatuses); List<Actor> findFollwerWithIds(Long[] masterIds,
                                        Integer[] relationTypes, Integer[] followerTypes); List<Actor> findTopUnit(); List<Actor> findAllUnit(Integer... statues); List<Actor> findLowerOrganization(Long higherOrganizationId,
                                           Integer... lowerOrganizationTypes); List<Actor> findHigherOrganization(Long lowerOrganizationId,
                                            Integer... higherOrganizationTypes); List<Actor> findUser(Long organizationId); List<Actor> findAncestorOrganization(Long lowerOrganizationId,
                                              Integer... ancestorOrganizationTypes); List<Actor> findDescendantOrganization(Long higherOrganizationId,
                                                Integer... descendantOrganizationTypes); List<Actor> findDescendantUser(Long organizationId,
                                        Integer... descendantOrganizationTypes); List<Resource> findCanUseModules(Long actorId); Actor save4belong(Actor follower, Long belongId); Actor save4belong(Actor follower, Long[] belongIds); List<Actor> find(Integer[] actorTypes, Integer[] actorStatues); List<ActorHistory> findHistory(Integer[] actorTypes,
                                        Integer[] actorStatues); List<Map<String, String>> find4option(Integer[] actorTypes,
                                               Integer[] actorStatues); List<Map<String, String>> findHistory4option(Integer[] actorTypes,
                                                      Integer[] actorStatues); String loadActorNameByCode(String actorCode); String loadActorFullNameByCode(String actorCode); List<Actor> findByName(String actorName, Integer[] actorTypes,
                                Integer[] actorStatues); boolean isUnique(Long id, String code, int type); String[] findMailAddressByGroup(List<String> groupCodes); String[] findMailAddressByUser(String[] userCodes); List<Actor> findUser(Long organizationId, Integer[] status); List<Actor> findDescendantUser(Long organizationId,
                                        Integer[] status, Integer... descendantOrganizationTypes); @Override List<String> findFollowerCode(String masterCode, Integer[] relationTypes
    , Integer[] followerTypes, Integer[] followerStatuses); }
ActorServiceImpl extends DefaultCrudService<Actor> implements
  ActorService { public List<Actor> findUser(Long organizationId) { return this.actorDao.findUser(organizationId); }  void setActorDao(ActorDao actorDao); ActorDao getActorDao(); @Override void delete(Serializable id); @Override void delete(Serializable[] ids); Actor loadByCode(String actorCode); Actor loadBelong(Long followerId, Integer[] masterTypes); List<Actor> findBelong(Long followerId, Integer[] masterTypes); List<Actor> findBelong(Long[] followerIds, Integer[] masterTypes); List<Actor> findMaster(Long followerId, Integer[] relationTypes,
                                Integer[] masterTypes); List<Actor> findFollower(Long masterId, Integer[] relationTypes,
                                  Integer[] followerTypes); List<Actor> findFollowerWithName(Long masterId, String followerName,
                                          Integer[] relationTypes, Integer[] followerTypes,
                                          Integer[] followerStatuses); List<Actor> findFollwerWithIds(Long[] masterIds,
                                        Integer[] relationTypes, Integer[] followerTypes); List<Actor> findTopUnit(); List<Actor> findAllUnit(Integer... statues); List<Actor> findLowerOrganization(Long higherOrganizationId,
                                           Integer... lowerOrganizationTypes); List<Actor> findHigherOrganization(Long lowerOrganizationId,
                                            Integer... higherOrganizationTypes); List<Actor> findUser(Long organizationId); List<Actor> findAncestorOrganization(Long lowerOrganizationId,
                                              Integer... ancestorOrganizationTypes); List<Actor> findDescendantOrganization(Long higherOrganizationId,
                                                Integer... descendantOrganizationTypes); List<Actor> findDescendantUser(Long organizationId,
                                        Integer... descendantOrganizationTypes); List<Resource> findCanUseModules(Long actorId); Actor save4belong(Actor follower, Long belongId); Actor save4belong(Actor follower, Long[] belongIds); List<Actor> find(Integer[] actorTypes, Integer[] actorStatues); List<ActorHistory> findHistory(Integer[] actorTypes,
                                        Integer[] actorStatues); List<Map<String, String>> find4option(Integer[] actorTypes,
                                               Integer[] actorStatues); List<Map<String, String>> findHistory4option(Integer[] actorTypes,
                                                      Integer[] actorStatues); String loadActorNameByCode(String actorCode); String loadActorFullNameByCode(String actorCode); List<Actor> findByName(String actorName, Integer[] actorTypes,
                                Integer[] actorStatues); boolean isUnique(Long id, String code, int type); String[] findMailAddressByGroup(List<String> groupCodes); String[] findMailAddressByUser(String[] userCodes); List<Actor> findUser(Long organizationId, Integer[] status); List<Actor> findDescendantUser(Long organizationId,
                                        Integer[] status, Integer... descendantOrganizationTypes); @Override List<String> findFollowerCode(String masterCode, Integer[] relationTypes
    , Integer[] followerTypes, Integer[] followerStatuses);  }