com.capitalone.dashboard.service.UserInfoService Maven / Gradle / Ivy
package com.capitalone.dashboard.service;
import java.util.Collection;
import org.springframework.security.core.GrantedAuthority;
import com.capitalone.dashboard.model.AuthType;
import com.capitalone.dashboard.model.UserInfo;
public interface UserInfoService {
Collection getAuthorities(String username, String firstName, String middleName, String lastName, String displayName, String emailAddress, AuthType authType);
UserInfo getUserInfo(String username, String firstName, String middleName, String lastName, String displayName, String emailAddress, AuthType authType);
Collection getUsers();
UserInfo promoteToAdmin(String username, AuthType authType);
UserInfo demoteFromAdmin(String username, AuthType authType);
boolean isUserValid(String userId, AuthType authType);
}