added SecureClientFactoryImpl as basis for all MVP based secure entrypoints

some cleanup of errorReporter usage in home entrypoint
fixed autoplay entrypoint
This commit is contained in:
fmittag committed 2015-01-13 12:10:51 +01:00
1 parent 2f20f6ca69
commit d3811780f9
26 files changed
+190 -151

No files matched your search

@@ -20,17 +20,16 @@ public abstract class AbstractSecureEntryPoint<S extends StringMessages> extends
private UserManagementServiceAsync userManagementService;
protected void doOnModuleLoad() {
super.doOnModuleLoad();
userManagementService = GWT.create(UserManagementService.class);
EntryPointHelper.registerASyncService((ServiceDefTarget) userManagementService, com.sap.sse.security.ui.client.RemoteServiceMappingConstants.userManagementServiceRemotePath);
userService = new UserService(userManagementService);
}
protected UserManagementServiceAsync getUserManagementService() {
public UserManagementServiceAsync getUserManagementService() {
return userManagementService;
}
protected UserService getUserService() {
public UserService getUserService() {
return userService;
}
@@ -0,0 +1,39 @@
package com.sap.sse.security.ui.client;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.shared.SimpleEventBus;
import com.google.gwt.place.shared.PlaceController;
import com.google.gwt.user.client.rpc.ServiceDefTarget;
import com.google.web.bindery.event.shared.EventBus;
import com.sap.sse.gwt.client.EntryPointHelper;
import com.sap.sse.gwt.client.mvp.ClientFactoryImpl;
import com.sap.sse.gwt.client.mvp.TopLevelView;
public abstract class SecureClientFactoryImpl extends ClientFactoryImpl {
private UserService userService;
private UserManagementServiceAsync userManagementService;
public SecureClientFactoryImpl(TopLevelView root) {
this(root, new SimpleEventBus());
}
protected SecureClientFactoryImpl(TopLevelView root, EventBus eventBus) {
this(root, eventBus, new PlaceController(eventBus));
}
protected SecureClientFactoryImpl(TopLevelView root, EventBus eventBus, PlaceController placeController) {
super(root, eventBus, placeController);
userManagementService = GWT.create(UserManagementService.class);
EntryPointHelper.registerASyncService((ServiceDefTarget) userManagementService, com.sap.sse.security.ui.client.RemoteServiceMappingConstants.userManagementServiceRemotePath);
userService = new UserService(userManagementService);
}
public UserManagementServiceAsync getUserManagementService() {
return userManagementService;
}
public UserService getUserService() {
return userService;
}
}