"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/main/java/com/openkm/frontend/client/widget/startup/StartUp.java" between
OpenKM-document-management-system-6.3.10.tar.gz and OpenKM-document-management-system-6.3.11.tar.gz

About: OpenKM (Knowledge Management) is a document management system that allows easy management of documents, users, roles and finding your enterprise documents and records. Community version (source code).

StartUp.java  (OpenKM-document-management-system-6.3.10):StartUp.java  (OpenKM-document-management-system-6.3.11)
skipping to change at line 42 skipping to change at line 42
import com.openkm.frontend.client.extension.event.HasWidgetEvent; import com.openkm.frontend.client.extension.event.HasWidgetEvent;
import com.openkm.frontend.client.extension.event.handler.WidgetHandlerExtension ; import com.openkm.frontend.client.extension.event.handler.WidgetHandlerExtension ;
import com.openkm.frontend.client.extension.event.hashandler.HasWidgetHandlerExt ension; import com.openkm.frontend.client.extension.event.hashandler.HasWidgetHandlerExt ension;
import com.openkm.frontend.client.service.*; import com.openkm.frontend.client.service.*;
import com.openkm.frontend.client.util.CommonUI; import com.openkm.frontend.client.util.CommonUI;
import com.openkm.frontend.client.util.Util; import com.openkm.frontend.client.util.Util;
import com.openkm.frontend.client.widget.OriginPanel; import com.openkm.frontend.client.widget.OriginPanel;
import com.openkm.frontend.client.widget.mainmenu.Bookmark; import com.openkm.frontend.client.widget.mainmenu.Bookmark;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
/** /**
* @author jllort * @author jllort
*
*/ */
public class StartUp implements HasWidgetHandlerExtension, HasWidgetEvent { public class StartUp implements HasWidgetHandlerExtension, HasWidgetEvent {
public static final int STARTUP_STARTING = 0; public static final int STARTUP_STARTING = 0;
public static final int STARTUP_GET_USER_VALUES = 1; public static final int STARTUP_GET_USER_VALUES = 1;
public static final int STARTUP_GET_TAXONOMY_ROOT = 2; public static final int STARTUP_GET_TAXONOMY_ROOT = 2;
public static final int STARTUP_GET_CATEGORIES_ROOT = 3; public static final int STARTUP_GET_CATEGORIES_ROOT = 3;
public static final int STARTUP_GET_METADATA_ROOT = 4; public static final int STARTUP_GET_METADATA_ROOT = 4;
public static final int STARTUP_GET_THESAURUS_ROOT = 5; public static final int STARTUP_GET_THESAURUS_ROOT = 5;
public static final int STARTUP_GET_TEMPLATE_ROOT = 6; public static final int STARTUP_GET_TEMPLATE_ROOT = 6;
public static final int STARTUP_GET_PERSONAL = 7; public static final int STARTUP_GET_PERSONAL = 7;
public static final int STARTUP_GET_MAIL = 8; public static final int STARTUP_GET_MAIL = 8;
public static final int STARTUP_GET_TRASH = 9; public static final int STARTUP_GET_TRASH = 9;
public static final int STARTUP_GET_USER_HOME = 10; public static final int STARTUP_GET_USER_HOME = 10;
public static final int STARTUP_GET_BOOKMARKS = 11; public static final int STARTUP_GET_BOOKMARKS = 11;
public static final int STARTUP_INIT_TREE_NODES = 12; public static final int STARTUP_INIT_TREE_NODES = 12;
public static final int STARTUP_LOADING_HISTORY_SEARCH = 13; public static final int STARTUP_LOADING_HISTORY_SEARCH = 13;
public static final int STARTUP_LOADING_TAXONOMY_EVAL_PARAMS = 14; public static final int STARTUP_LOADING_TAXONOMY_EVAL_PARAMS = 14;
public static final int STARTUP_LOADING_OPEN_PATH = 15; public static final int STARTUP_LOADING_OPEN_PATH = 15;
private final OKMRepositoryServiceAsync repositoryService = (OKMRepositor private final OKMRepositoryServiceAsync repositoryService = GWT.create(OK
yServiceAsync) GWT MRepositoryService.class);
.create(OKMRepositoryService.class); private final OKMAuthServiceAsync authService = GWT.create(OKMAuthService
private final OKMAuthServiceAsync authService = (OKMAuthServiceAsync) GWT .class);
.create(OKMAuthService.class); private final OKMUserConfigServiceAsync userConfigService = GWT.create(OK
private final OKMUserConfigServiceAsync userConfigService = (OKMUserConfi MUserConfigService.class);
gServiceAsync) GWT private final OKMGeneralServiceAsync generalService = GWT.create(OKMGener
.create(OKMUserConfigService.class); alService.class);
private final OKMGeneralServiceAsync generalService = (OKMGeneralServiceA private final OKMFolderServiceAsync folderService = GWT.create(OKMFolderS
sync) GWT.create(OKMGeneralService.class); ervice.class);
private final OKMFolderServiceAsync folderService = (OKMFolderServiceAsyn private final OKMDocumentServiceAsync documentService = GWT.create(OKMDoc
c) GWT.create(OKMFolderService.class); umentService.class);
private final OKMDocumentServiceAsync documentService = (OKMDocumentServi
ceAsync) GWT
.create(OKMDocumentService.class);
private boolean enabled = true; private boolean enabled = true;
private boolean error = false; private boolean error = false;
private int status = -1; private int status = -1;
private String docPath = null; private String docPath = null;
private String fldPath = null; private String fldPath = null;
private String taskInstanceId = null; private String taskInstanceId = null;
public Timer keepAlive; public Timer keepAlive;
private List<WidgetHandlerExtension> widgetHandlerExtensionList; private List<WidgetHandlerExtension> widgetHandlerExtensionList;
private Map<String, String> dynamicExtensionsMap;
private List<Object> extensions;
/** /**
* StartUp * StartUp
*/ */
public StartUp() { public StartUp() {
widgetHandlerExtensionList = new ArrayList<WidgetHandlerExtension widgetHandlerExtensionList = new ArrayList<>();
>(); dynamicExtensionsMap = new HashMap<>();
extensions = new ArrayList<>();
} }
/** /**
* Init on first load * Init on first load
*/ */
public void init() { public void init() {
generalService.getEnabledExtensions(new AsyncCallback<List<String >>() { generalService.getEnabledExtensions(new AsyncCallback<List<String >>() {
@Override @Override
public void onSuccess(List<String> result) { public void onSuccess(List<String> result) {
Main.get().setExtensionUuidList(result); Main.get().setExtensionUuidList(result);
// Only show registered extensions // Only show registered extensions
ExtensionManager.start(Customization.getExtension // Loading static extensions
Widgets(result)); extensions = Customization.getExtensionWidgets(re
nextStatus(STARTUP_STARTING); sult);
// Loading dynamic extensions
dynamicExtensionsMap = Customization.getDynamicEx
tensionWidgets(result);
if (dynamicExtensionsMap.size() > 0) {
Customization.loadDynamicExtensionWidgets
();
} else {
startExtensions();
}
} }
@Override @Override
public void onFailure(Throwable caught) { public void onFailure(Throwable caught) {
Main.get().showError("getEnabledExtensions", caug ht); Main.get().showError("getEnabledExtensions", caug ht);
nextStatus(STARTUP_STARTING); nextStatus(STARTUP_STARTING);
} }
}); });
} }
/** /**
* startExtensions
*/
public void startExtensions() {
ExtensionManager.start(extensions);
nextStatus(STARTUP_STARTING);
}
/**
* addExtension
*/
public void addExtension(Object obj) {
extensions.add(obj);
}
public Map<String, String> getDynamicExtensionsMap() {
return dynamicExtensionsMap;
}
/**
* Gets asynchronous taxonomy root node * Gets asynchronous taxonomy root node
*/ */
final AsyncCallback<GWTFolder> callbackGetRootFolder = new AsyncCallback< GWTFolder>() { final AsyncCallback<GWTFolder> callbackGetRootFolder = new AsyncCallback< GWTFolder>() {
public void onSuccess(GWTFolder result) { public void onSuccess(GWTFolder result) {
// Only executes on initialization and evaluate root Node permissions // Only executes on initialization and evaluate root Node permissions
Main.get().taxonomyRootFolder = result; Main.get().taxonomyRootFolder = result;
nextStatus(STARTUP_GET_CATEGORIES_ROOT); nextStatus(STARTUP_GET_CATEGORIES_ROOT);
} }
public void onFailure(Throwable caught) { public void onFailure(Throwable caught) {
skipping to change at line 289 skipping to change at line 318
/** /**
* Gets the personal documents * Gets the personal documents
*/ */
public void getPersonal() { public void getPersonal() {
repositoryService.getPersonalFolder(callbackGetPersonalFolder); repositoryService.getPersonalFolder(callbackGetPersonalFolder);
} }
/** /**
* Gets the user home * Gets the user home
*
*/ */
public void getUserHome() { public void getUserHome() {
userConfigService.getUserHome(callbackGetUserHome); userConfigService.getUserHome(callbackGetUserHome);
} }
/** /**
* Gets the template * Gets the template
*/ */
public void getTemplate() { public void getTemplate() {
repositoryService.getTemplatesFolder(callbackGetTemplatesFolder); repositoryService.getTemplatesFolder(callbackGetTemplatesFolder);
 End of changes. 8 change blocks. 
22 lines changed or deleted 51 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)