Skip to content

Commit

Permalink
Fixed about 300 warns.
Browse files Browse the repository at this point in the history
  • Loading branch information
Acarus committed Sep 28, 2016
1 parent e4e4e29 commit 926b41c
Show file tree
Hide file tree
Showing 92 changed files with 1,021 additions and 765 deletions.
Expand Up @@ -76,7 +76,7 @@ public void onClick(ClickEvent event) {
goTo(newCtlPlace);
}
}));
KaaAdmin.getDataSource().getAvailableApplicationCTLSchemaReferences(applicationId,
KaaAdmin.getDataSource().getAvailableApplicationCtlSchemaReferences(applicationId,
new BusyAsyncCallback<List<CtlSchemaReferenceDto>>() {
@Override
public void onFailureImpl(Throwable caught) {
Expand Down
Expand Up @@ -79,7 +79,7 @@ public void onClick(ClickEvent event) {
}
}));

KaaAdmin.getDataSource().getTenantLevelCTLSchemaReferenceForECF(place.getEcfId(), place.getEventClassDtoList(), new BusyAsyncCallback<List<CtlSchemaReferenceDto>>() {
KaaAdmin.getDataSource().getTenantLevelCtlSchemaReferenceForEcf(place.getEcfId(), place.getEventClassDtoList(), new BusyAsyncCallback<List<CtlSchemaReferenceDto>>() {
@Override
public void onFailureImpl(Throwable caught) {
Utils.handleException(caught, detailsView);
Expand Down
Expand Up @@ -71,6 +71,6 @@ public void onSuccess(String key) {
ServletHelper.exportCtlSchema(key);
}
};
KaaAdmin.getDataSource().prepareCTLSchemaExport(ctlSchemaId, method, schemaExportCallback);
KaaAdmin.getDataSource().prepareCtlSchemaExport(ctlSchemaId, method, schemaExportCallback);
}
}
Expand Up @@ -171,7 +171,7 @@ protected void doSave(final EventBus eventBus) {
final SdkProfileDto sdkProfileDto = entity;


KaaAdmin.getDataSource().validateECFListInSdkProfile(aefMaps, new AsyncCallback<Void>() {
KaaAdmin.getDataSource().validateEcfListInSdkProfile(aefMaps, new AsyncCallback<Void>() {
@Override
public void onFailure(Throwable caught) {
Utils.handleException(caught, detailsView);
Expand Down
Expand Up @@ -71,7 +71,7 @@ protected ConfigurationSchemaPlace existingSchemaPlace(String applicationId, Str

@Override
protected void createEmptyCtlSchemaForm(AsyncCallback<CtlSchemaFormDto> callback) {
KaaAdmin.getDataSource().createNewCTLSchemaFormInstance(null,
KaaAdmin.getDataSource().createNewCtlSchemaFormInstance(null,
null,
applicationId,
ConverterType.CONFIGURATION_FORM_AVRO_CONVERTER,
Expand Down
Expand Up @@ -34,11 +34,13 @@
import org.kaaproject.kaa.server.admin.client.servlet.ServletHelper;
import org.kaaproject.kaa.server.admin.client.util.Utils;

public class ConfigurationSchemasActivity extends AbstractBaseCtlSchemasActivity<ConfigurationSchemaDto, ConfigurationSchemasPlace> {
public class ConfigurationSchemasActivity
extends AbstractBaseCtlSchemasActivity<ConfigurationSchemaDto, ConfigurationSchemasPlace> {

private String applicationId;

public ConfigurationSchemasActivity(ConfigurationSchemasPlace place, ClientFactory clientFactory) {
public ConfigurationSchemasActivity(ConfigurationSchemasPlace place,
ClientFactory clientFactory) {
super(place, ConfigurationSchemaDto.class, clientFactory);
this.applicationId = place.getApplicationId();
}
Expand Down Expand Up @@ -88,13 +90,16 @@ public void onSuccess(String key) {

switch (action) {
case KaaRowAction.DOWNLOAD_SCHEMA:
KaaAdmin.getDataSource().getRecordData(applicationId, schemaVersion, RecordFiles.CONFIGURATION_SCHEMA, callback);
KaaAdmin.getDataSource().getRecordData(
applicationId, schemaVersion, RecordFiles.CONFIGURATION_SCHEMA, callback);
break;
case KaaRowAction.DOWNLOAD_BASE_SCHEMA:
KaaAdmin.getDataSource().getRecordData(applicationId, schemaVersion, RecordFiles.CONFIGURATION_BASE_SCHEMA, callback);
KaaAdmin.getDataSource().getRecordData(
applicationId, schemaVersion, RecordFiles.CONFIGURATION_BASE_SCHEMA, callback);
break;
case KaaRowAction.DOWNLOAD_OVERRIDE_SCHEMA:
KaaAdmin.getDataSource().getRecordData(applicationId, schemaVersion, RecordFiles.CONFIGURATION_OVERRIDE_SCHEMA, callback);
KaaAdmin.getDataSource().getRecordData(
applicationId, schemaVersion, RecordFiles.CONFIGURATION_OVERRIDE_SCHEMA, callback);
break;
default:
break;
Expand Down
Expand Up @@ -136,7 +136,7 @@ public void onSuccess(String key) {
ServletHelper.exportCtlSchema(key);
}
};
KaaAdmin.getDataSource().prepareCTLSchemaExport(entity.getId(), method, schemaExportCallback);
KaaAdmin.getDataSource().prepareCtlSchemaExport(entity.getId(), method, schemaExportCallback);
}

@Override
Expand Down Expand Up @@ -174,9 +174,9 @@ protected CtlSchemaView getView(boolean create) {
protected void getEntity(String id,
AsyncCallback<CtlSchemaFormDto> callback) {
if (version == null) {
KaaAdmin.getDataSource().getLatestCTLSchemaForm(id, callback);
KaaAdmin.getDataSource().getLatestCtlSchemaForm(id, callback);
} else {
KaaAdmin.getDataSource().getCTLSchemaFormByMetaInfoIdAndVer(id, version, callback);
KaaAdmin.getDataSource().getCtlSchemaFormByMetaInfoIdAndVer(id, version, callback);
}
}

Expand Down Expand Up @@ -296,7 +296,7 @@ public void onNo() {

@Override
public void onYes() {
KaaAdmin.getDataSource().deleteCTLSchemaByFqnVersionTenantIdAndApplicationId(fqn, version,
KaaAdmin.getDataSource().deleteCtlSchemaByFqnVersionTenantIdAndApplicationId(fqn, version,
entity.getMetaInfo().getTenantId(), place.getApplicationId(), new BusyAsyncCallback<Void>() {
@Override
public void onSuccessImpl(Void result) {
Expand Down Expand Up @@ -344,7 +344,7 @@ protected void onEntityRetrieved() {
converterType = ConverterType.FORM_AVRO_CONVERTER;
}

KaaAdmin.getDataSource().createNewCTLSchemaFormInstance(place.getMetaInfoId(),
KaaAdmin.getDataSource().createNewCtlSchemaFormInstance(place.getMetaInfoId(),
place.getVersion(), place.getApplicationId(), converterType,
new BusyAsyncCallback<CtlSchemaFormDto>() {
@Override
Expand Down Expand Up @@ -515,7 +515,7 @@ public void onSuccessImpl(EventClassViewDto eventClassViewDto) {
});
}
} else {
KaaAdmin.getDataSource().editCTLSchemaForm(entity, ConverterType.FORM_AVRO_CONVERTER, callback);
KaaAdmin.getDataSource().editCtlSchemaForm(entity, ConverterType.FORM_AVRO_CONVERTER, callback);
}
}

Expand Down
Expand Up @@ -107,8 +107,8 @@ protected void onEntityRetrieved() {
detailsView.getEndpointConfiguration().setValue(entity.getEndpointConfig());

if (entity.getUserId() != null) {
detailsView.getUserID().setValue(entity.getUserId());
detailsView.getUserExternalID().setValue(entity.getUserExternalId());
detailsView.getUserId().setValue(entity.getUserId());
detailsView.getUserExternalId().setValue(entity.getUserExternalId());
for (Widget widget : detailsView.getUserInfoList()) {
widget.setVisible(true);
}
Expand Down
Expand Up @@ -110,7 +110,7 @@ public void onSuccess(EventClassViewDto eventClassViewDto) {

@Override
protected void createEmptyCtlSchemaForm(AsyncCallback<CtlSchemaFormDto> callback) {
KaaAdmin.getDataSource().createNewCTLSchemaFormInstance(null,
KaaAdmin.getDataSource().createNewCtlSchemaFormInstance(null,
null,
null,
ConverterType.FORM_AVRO_CONVERTER,
Expand Down
Expand Up @@ -64,7 +64,7 @@ protected void editEntity(LogSchemaViewDto entity, AsyncCallback<LogSchemaViewDt

@Override
protected void createEmptyCtlSchemaForm(AsyncCallback<CtlSchemaFormDto> callback) {
KaaAdmin.getDataSource().createNewCTLSchemaFormInstance(null,
KaaAdmin.getDataSource().createNewCtlSchemaFormInstance(null,
null,
applicationId,
ConverterType.FORM_AVRO_CONVERTER,
Expand Down
Expand Up @@ -64,7 +64,7 @@ protected void editEntity(NotificationSchemaViewDto entity,

@Override
protected void createEmptyCtlSchemaForm(AsyncCallback<CtlSchemaFormDto> callback) {
KaaAdmin.getDataSource().createNewCTLSchemaFormInstance(null, null, applicationId,
KaaAdmin.getDataSource().createNewCtlSchemaFormInstance(null, null, applicationId,
ConverterType.FORM_AVRO_CONVERTER,
callback);
}
Expand Down
Expand Up @@ -66,7 +66,7 @@ protected void editEntity(ProfileSchemaViewDto entity,

@Override
protected void createEmptyCtlSchemaForm(AsyncCallback<CtlSchemaFormDto> callback) {
KaaAdmin.getDataSource().createNewCTLSchemaFormInstance(null,
KaaAdmin.getDataSource().createNewCtlSchemaFormInstance(null,
null,
applicationId,
ConverterType.FORM_AVRO_CONVERTER,
Expand Down
Expand Up @@ -66,7 +66,7 @@ protected void editEntity(ServerProfileSchemaViewDto entity,

@Override
protected void createEmptyCtlSchemaForm(AsyncCallback<CtlSchemaFormDto> callback) {
KaaAdmin.getDataSource().createNewCTLSchemaFormInstance(null,
KaaAdmin.getDataSource().createNewCtlSchemaFormInstance(null,
null,
applicationId,
ConverterType.FORM_AVRO_CONVERTER,
Expand Down
Expand Up @@ -26,7 +26,8 @@

import java.util.List;

public class AefMapsDataProvider extends AbstractDataProvider<ApplicationEventFamilyMapDto, String> {
public class AefMapsDataProvider
extends AbstractDataProvider<ApplicationEventFamilyMapDto, String> {

private String applicationId;

Expand All @@ -40,18 +41,19 @@ public AefMapsDataProvider(AbstractGrid<ApplicationEventFamilyMapDto, String> da

@Override
protected void loadData(final LoadCallback callback) {
KaaAdmin.getDataSource().loadApplicationEventFamilyMaps(applicationId, new AsyncCallback<List<ApplicationEventFamilyMapDto>>() {
@Override
public void onFailure(Throwable caught) {
callback.onFailure(caught);

}

@Override
public void onSuccess(List<ApplicationEventFamilyMapDto> result) {
callback.onSuccess(result);
}
});
KaaAdmin.getDataSource().loadApplicationEventFamilyMaps(
applicationId, new AsyncCallback<List<ApplicationEventFamilyMapDto>>() {
@Override
public void onFailure(Throwable caught) {
callback.onFailure(caught);

}

@Override
public void onSuccess(List<ApplicationEventFamilyMapDto> result) {
callback.onSuccess(result);
}
});
}

}
Expand Up @@ -42,17 +42,18 @@ public AppendersDataProvider(AbstractGrid<LogAppenderDto, String> dataGrid,
@Override
protected void loadData(final LoadCallback callback) {
if (!isEmpty(applicationId)) {
KaaAdmin.getDataSource().loadLogAppenders(applicationId, new AsyncCallback<List<LogAppenderDto>>() {
@Override
public void onFailure(Throwable caught) {
callback.onFailure(caught);
}

@Override
public void onSuccess(List<LogAppenderDto> result) {
callback.onSuccess(result);
}
});
KaaAdmin.getDataSource().loadLogAppenders(
applicationId, new AsyncCallback<List<LogAppenderDto>>() {
@Override
public void onFailure(Throwable caught) {
callback.onFailure(caught);
}

@Override
public void onSuccess(List<LogAppenderDto> result) {
callback.onSuccess(result);
}
});
}
}
}
Expand Up @@ -28,7 +28,8 @@

import java.util.List;

public class ApplicationCtlSchemasDataProvider extends AbstractDataProvider<CTLSchemaMetaInfoDto, String> {
public class ApplicationCtlSchemasDataProvider
extends AbstractDataProvider<CTLSchemaMetaInfoDto, String> {

private String applicationId;

Expand All @@ -43,7 +44,7 @@ public ApplicationCtlSchemasDataProvider(AbstractGrid<CTLSchemaMetaInfoDto, Stri
@Override
protected void loadData(final LoadCallback callback) {
if (!isEmpty(applicationId)) {
KaaAdmin.getDataSource().getApplicationLevelCTLSchemas(applicationId,
KaaAdmin.getDataSource().getApplicationLevelCtlSchemas(applicationId,
new AsyncCallback<List<CTLSchemaMetaInfoDto>>() {
@Override
public void onFailure(Throwable caught) {
Expand Down
Expand Up @@ -26,7 +26,8 @@

import java.util.List;

public class ConfigurationSchemasDataProvider extends AbstractDataProvider<ConfigurationSchemaDto, String> {
public class ConfigurationSchemasDataProvider
extends AbstractDataProvider<ConfigurationSchemaDto, String> {

private String applicationId;

Expand All @@ -40,18 +41,19 @@ public ConfigurationSchemasDataProvider(AbstractGrid<ConfigurationSchemaDto, Str

@Override
protected void loadData(final LoadCallback callback) {
KaaAdmin.getDataSource().loadConfigurationSchemas(applicationId, new AsyncCallback<List<ConfigurationSchemaDto>>() {
@Override
public void onFailure(Throwable caught) {
callback.onFailure(caught);

}

@Override
public void onSuccess(List<ConfigurationSchemaDto> result) {
callback.onSuccess(result);
}
});
KaaAdmin.getDataSource().loadConfigurationSchemas(
applicationId, new AsyncCallback<List<ConfigurationSchemaDto>>() {
@Override
public void onFailure(Throwable caught) {
callback.onFailure(caught);

}

@Override
public void onSuccess(List<ConfigurationSchemaDto> result) {
callback.onSuccess(result);
}
});
}

}
Expand Up @@ -27,7 +27,8 @@

import java.util.List;

public class ConfigurationsDataProvider extends AbstractDataProvider<ConfigurationRecordDto, ConfigRecordKey> {
public class ConfigurationsDataProvider
extends AbstractDataProvider<ConfigurationRecordDto, ConfigRecordKey> {

private String endpointGroupId;
private boolean includeDeprecated = false;
Expand All @@ -47,18 +48,19 @@ public void setIncludeDeprecated(boolean includeDeprecated) {

@Override
protected void loadData(final LoadCallback callback) {
KaaAdmin.getDataSource().loadConfigurationRecords(endpointGroupId, includeDeprecated, new AsyncCallback<List<ConfigurationRecordDto>>() {
@Override
public void onFailure(Throwable caught) {
callback.onFailure(caught);
KaaAdmin.getDataSource().loadConfigurationRecords(
endpointGroupId, includeDeprecated, new AsyncCallback<List<ConfigurationRecordDto>>() {
@Override
public void onFailure(Throwable caught) {
callback.onFailure(caught);

}
}

@Override
public void onSuccess(List<ConfigurationRecordDto> result) {
callback.onSuccess(result);
}
});
@Override
public void onSuccess(List<ConfigurationRecordDto> result) {
callback.onSuccess(result);
}
});
}

}
Expand Down

0 comments on commit 926b41c

Please sign in to comment.