package edu.isi.ske.kefed.io.repository;

import org.elasticsearch.index.query.QueryBuilder;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.elasticsearch.core.query.SearchQuery;
import org.springframework.stereotype.Component;

import edu.isi.ske.kefed.io.model.User;

@Component
public class UserRepositoryImpl implements UserRepository{

	@Override
	public <S extends User> S index(S entity) {
		// Generate Index Externally
		return null;
	}

	@Override
	public Iterable<User> search(QueryBuilder query) {
		//Search on Query Specified
		return null;
	}

	@Override
	public Page<User> search(QueryBuilder query, Pageable pageable) {
		//Search with Pagination
		return null;
	}

	@Override
	public Page<User> search(SearchQuery searchQuery) {
		//Simple Search Query
		return null;
	}

	@Override
	public Page<User> searchSimilar(User entity, String[] fields, Pageable pageable) {
		//Find out Similar Items
		return null;
	}

	@Override
	public void refresh() {
		//Suto Refresh Indexes
		
	}

	@Override
	public Iterable<User> findAll(Sort sort) {
		//Find All by sorting
		return null;
	}

	@Override
	public Page<User> findAll(Pageable pageable) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public <S extends User> S save(S entity) {
		//Save
		return null;
	}

	@Override
	public <S extends User> Iterable<S> save(Iterable<S> entities) {
		//Save multiple Elements
		return null;
	}

	@Override
	public User findOne(String id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public boolean exists(String id) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public Iterable<User> findAll() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Iterable<User> findAll(Iterable<String> ids) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public long count() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void delete(String id) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void delete(User entity) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void delete(Iterable<? extends User> entities) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void deleteAll() {
		// TODO Auto-generated method stub
		
	}
	
	    
	    
}

@@ -433,46 +433,10 @@
 mpl 
-implements UserRepository%7B%0A%0A%09@Override
+%7B%0A
 %0A%09pu
@@ -523,35 +523,24 @@
 n null;%0A%09%7D%0A%0A
-%09@Override%0A
 %09public Iter
@@ -624,35 +624,24 @@
 n null;%0A%09%7D%0A%0A
-%09@Override%0A
 %09public Page
@@ -737,35 +737,24 @@
 n null;%0A%09%7D%0A%0A
-%09@Override%0A
 %09public Page
@@ -833,35 +833,24 @@
 n null;%0A%09%7D%0A%0A
-%09@Override%0A
 %09public Page
@@ -963,35 +963,24 @@
 n null;%0A%09%7D%0A%0A
-%09@Override%0A
 %09public void
@@ -1020,35 +1020,24 @@
 exes%0A%09%09%0A%09%7D%0A%0A
-%09@Override%0A
 %09public Iter
@@ -1107,35 +1107,24 @@
 n null;%0A%09%7D%0A%0A
-%09@Override%0A
 %09public Page
@@ -1211,35 +1211,24 @@
 n null;%0A%09%7D%0A%0A
-%09@Override%0A
 %09public %3CS e
@@ -1283,35 +1283,24 @@
 n null;%0A%09%7D%0A%0A
-%09@Override%0A
 %09public %3CS e
@@ -1395,35 +1395,24 @@
 n null;%0A%09%7D%0A%0A
-%09@Override%0A
 %09public User
@@ -1485,35 +1485,24 @@
 n null;%0A%09%7D%0A%0A
-%09@Override%0A
 %09public bool
@@ -1578,35 +1578,24 @@
  false;%0A%09%7D%0A%0A
-%09@Override%0A
 %09public Iter
@@ -1669,35 +1669,24 @@
 n null;%0A%09%7D%0A%0A
-%09@Override%0A
 %09public Iter
@@ -1780,35 +1780,24 @@
 n null;%0A%09%7D%0A%0A
-%09@Override%0A
 %09public long
@@ -1856,35 +1856,24 @@
 turn 0;%0A%09%7D%0A%0A
-%09@Override%0A
 %09public void
@@ -1933,35 +1933,24 @@
 stub%0A%09%09%0A%09%7D%0A%0A
-%09@Override%0A
 %09public void
@@ -2012,35 +2012,24 @@
 stub%0A%09%09%0A%09%7D%0A%0A
-%09@Override%0A
 %09public void
@@ -2121,19 +2121,8 @@
 %09%7D%0A%0A
-%09@Override%0A
 %09pub

Update Index method - Elastic Search