class RepositoryResourceServiceImpl implements RepositoryResourceService {

	@Override
	public Optional<RepositoryResource> findProject(Integer repositoryId, String projectKey) {
		return repositoryResourceDao.findByRepositoryIdAndParentIdAndResourceTypeAndKeyIgnoreCase(repositoryId, Constant.TREE_ROOT_ID, RepositoryResourceType.PROJECT, projectKey);
	}

}