Added functions to some repositories to facilitate data export

pull/650/head
arielak 2014-04-23 13:02:19 -04:00
parent 953b213d04
commit 775a0c6143
1 changed files with 3 additions and 0 deletions

View File

@ -16,11 +16,14 @@
******************************************************************************/ ******************************************************************************/
package org.mitre.oauth2.repository; package org.mitre.oauth2.repository;
import java.util.Collection;
import org.mitre.oauth2.model.AuthenticationHolderEntity; import org.mitre.oauth2.model.AuthenticationHolderEntity;
import org.springframework.security.oauth2.provider.OAuth2Authentication; import org.springframework.security.oauth2.provider.OAuth2Authentication;
public interface AuthenticationHolderRepository { public interface AuthenticationHolderRepository {
public Collection<AuthenticationHolderEntity> getAll();
public AuthenticationHolderEntity getById(Long id); public AuthenticationHolderEntity getById(Long id);
public AuthenticationHolderEntity getByAuthentication(OAuth2Authentication a); public AuthenticationHolderEntity getByAuthentication(OAuth2Authentication a);