KEYCLOAK-12218 Remove redundant modificators from module "server-spi-private"

This commit is contained in:
Andrei Arlou 2019-11-23 22:39:33 +03:00 committed by Stian Thorgersen
parent cd671177d2
commit 04cbea71d0
10 changed files with 36 additions and 36 deletions

View file

@ -30,7 +30,7 @@ import org.keycloak.provider.ProviderFactory;
* @version $Revision: 1 $
*/
public interface IdentityProviderMapper extends Provider, ProviderFactory<IdentityProviderMapper>,ConfiguredProvider {
public static final String ANY_PROVIDER = "*";
String ANY_PROVIDER = "*";
String[] getCompatibleProviders();
String getDisplayCategory();

View file

@ -33,15 +33,15 @@ public interface EmailTemplateProvider extends Provider {
String IDENTITY_PROVIDER_BROKER_CONTEXT = "identityProviderBrokerCtx";
public EmailTemplateProvider setAuthenticationSession(AuthenticationSessionModel authenticationSession);
EmailTemplateProvider setAuthenticationSession(AuthenticationSessionModel authenticationSession);
public EmailTemplateProvider setRealm(RealmModel realm);
EmailTemplateProvider setRealm(RealmModel realm);
public EmailTemplateProvider setUser(UserModel user);
EmailTemplateProvider setUser(UserModel user);
public EmailTemplateProvider setAttribute(String name, Object value);
EmailTemplateProvider setAttribute(String name, Object value);
public void sendEvent(Event event) throws EmailException;
void sendEvent(Event event) throws EmailException;
/**
* Reset password sent from forgot password link on login
@ -50,7 +50,7 @@ public interface EmailTemplateProvider extends Provider {
* @param expirationInMinutes
* @throws EmailException
*/
public void sendPasswordReset(String link, long expirationInMinutes) throws EmailException;
void sendPasswordReset(String link, long expirationInMinutes) throws EmailException;
/**
* Test SMTP connection with current logged in user
@ -59,7 +59,7 @@ public interface EmailTemplateProvider extends Provider {
* @param user SMTP recipient
* @throws EmailException
*/
public void sendSmtpTestEmail(Map<String, String> config, UserModel user) throws EmailException;
void sendSmtpTestEmail(Map<String, String> config, UserModel user) throws EmailException;
/**
* Send to confirm that user wants to link his account with identity broker link
@ -73,9 +73,9 @@ public interface EmailTemplateProvider extends Provider {
* @param expirationInMinutes
* @throws EmailException
*/
public void sendExecuteActions(String link, long expirationInMinutes) throws EmailException;
void sendExecuteActions(String link, long expirationInMinutes) throws EmailException;
public void sendVerifyEmail(String link, long expirationInMinutes) throws EmailException;
void sendVerifyEmail(String link, long expirationInMinutes) throws EmailException;
/**
* Send formatted email

View file

@ -25,8 +25,8 @@ import org.keycloak.provider.Provider;
*/
public interface EventListenerProvider extends Provider {
public void onEvent(Event event);
void onEvent(Event event);
public void onEvent(AdminEvent event, boolean includeRepresentation);
void onEvent(AdminEvent event, boolean includeRepresentation);
}

View file

@ -25,24 +25,24 @@ import java.util.List;
*/
public interface EventQuery {
public EventQuery type(EventType... types);
EventQuery type(EventType... types);
public EventQuery realm(String realmId);
EventQuery realm(String realmId);
public EventQuery client(String clientId);
EventQuery client(String clientId);
public EventQuery user(String userId);
EventQuery user(String userId);
public EventQuery fromDate(Date fromDate);
EventQuery fromDate(Date fromDate);
public EventQuery toDate(Date toDate);
EventQuery toDate(Date toDate);
public EventQuery ipAddress(String ipAddress);
EventQuery ipAddress(String ipAddress);
public EventQuery firstResult(int result);
EventQuery firstResult(int result);
public EventQuery maxResults(int results);
EventQuery maxResults(int results);
public List<Event> getResultList();
List<Event> getResultList();
}

View file

@ -24,20 +24,20 @@ import org.keycloak.events.admin.AdminEventQuery;
*/
public interface EventStoreProvider extends EventListenerProvider {
public EventQuery createQuery();
EventQuery createQuery();
public AdminEventQuery createAdminQuery();
AdminEventQuery createAdminQuery();
public void clear();
void clear();
public void clear(String realmId);
void clear(String realmId);
public void clear(String realmId, long olderThan);
void clear(String realmId, long olderThan);
public void clearAdmin();
void clearAdmin();
public void clearAdmin(String realmId);
void clearAdmin(String realmId);
public void clearAdmin(String realmId, long olderThan);
void clearAdmin(String realmId, long olderThan);
}

View file

@ -40,7 +40,7 @@ public interface DBLockProvider extends Provider {
/**
* Lock namespace to have different lock types or contexts.
*/
public enum Namespace {
enum Namespace {
DATABASE(1),
KEYCLOAK_BOOT(1000),
@ -48,7 +48,7 @@ public interface DBLockProvider extends Provider {
private final int id;
private Namespace(int id) {
Namespace(int id) {
this.id = id;
}

View file

@ -34,7 +34,7 @@ public class TypedPropertyCriteria implements PropertyCriteria {
* consider properties where its type is a superclass or superinterface of <code>propertyClass</code>. .</li> </ul>
* </p>
*/
public static enum MatchOption {
public enum MatchOption {
SUB_TYPE, SUPER_TYPE, ALL
}

View file

@ -37,7 +37,7 @@ import javax.ws.rs.core.UriInfo;
*/
public interface LoginProtocol extends Provider {
public static enum Error {
enum Error {
/**
* Login cancelled by the user

View file

@ -32,6 +32,6 @@ public interface ServerInfoAwareProviderFactory {
*
* @return Map with keys describing value and relevant values itself
*/
public Map<String, String> getOperationalInfo();
Map<String, String> getOperationalInfo();
}

View file

@ -24,6 +24,6 @@ import org.keycloak.models.KeycloakSession;
*/
public interface ScheduledTask {
public void run(KeycloakSession session);
void run(KeycloakSession session);
}