void initPageTasks() throws Exception {
MenuTree tree = NavigationManager.getMenuTree(PageTaskMenuTree.PAGE_TASK_MENU_TREE);
// Networking showNetworkPlaces
tree.addMenuItem(null, new MenuItem("showNetworkPlaces", null, null, 100, false, SessionInfo.MANAGEMENT_CONSOLE_CONTEXT));
tree.addMenuItem("showNetworkPlaces", new MenuItem("createNetworkPlace",
NetworkPlacePlugin.MESSAGE_RESOURCES_KEY,
"/defaultNetworkPlaceDetails.do",
100,
true,
"_self",
SessionInfo.MANAGEMENT_CONSOLE_CONTEXT,
NETWORK_PLACE_RESOURCE_TYPE,
new Permission[] { PolicyConstants.PERM_CREATE_EDIT_AND_ASSIGN }));
// Networking userNetworkPlaces
tree.addMenuItem(null, new MenuItem("showUserNetworkPlaces", null, null, 100, false, SessionInfo.USER_CONSOLE_CONTEXT));
tree.addMenuItem("showUserNetworkPlaces", new MenuItem("createPersonalNetworkPlace",
NetworkPlacePlugin.MESSAGE_RESOURCES_KEY,
"/defaultNetworkPlaceDetails.do",
100,
true,
"_self",
SessionInfo.USER_CONSOLE_CONTEXT,
NETWORK_PLACE_RESOURCE_TYPE,
new Permission[] { PolicyConstants.PERM_PERSONAL_CREATE_EDIT_AND_DELETE }));
// Networking fileSystem
tree.addMenuItem(null, new MenuItem("fileSystem", null, null, 100, false, SessionInfo.ALL_CONTEXTS));
tree.addMenuItem("fileSystem", new WriteRequiredFileSystemPageTask("createFolder",
NetworkPlacePlugin.MESSAGE_RESOURCES_KEY,
"javascript: setActionTarget('showMkDir'); document.forms[0].submit();",
100,
true,
"_self",
SessionInfo.ALL_CONTEXTS));
tree.addMenuItem("fileSystem", new DeleteRequiredFileSystemPageTask("deleteSelected",
NetworkPlacePlugin.MESSAGE_RESOURCES_KEY,
"javascript: setActionTarget('deleteSelected'); document.forms[0].submit();",
100,
true,
"_self",
SessionInfo.ALL_CONTEXTS));
tree.addMenuItem("fileSystem", new MenuItem("copySelected",
NetworkPlacePlugin.MESSAGE_RESOURCES_KEY,
"javascript: setActionTarget('copy'); document.forms[0].submit();",
100,
true,
"_self",
SessionInfo.ALL_CONTEXTS));
tree.addMenuItem("fileSystem", new DeleteRequiredFileSystemPageTask("cutSelected",
NetworkPlacePlugin.MESSAGE_RESOURCES_KEY,
"javascript: setActionTarget('cut'); document.forms[0].submit();",
100,
true,
"_self",
SessionInfo.ALL_CONTEXTS));
tree.addMenuItem("fileSystem", new WriteRequiredFileSystemPageTask("paste",
NetworkPlacePlugin.MESSAGE_RESOURCES_KEY,
"javascript: setActionTarget('confirmPaste'); document.forms[0].submit();",
100,
true,
"_self",
SessionInfo.ALL_CONTEXTS));
tree.addMenuItem("fileSystem", new MenuItem("zipSelected",
NetworkPlacePlugin.MESSAGE_RESOURCES_KEY,
"javascript: setActionTarget('zip'); document.forms[0].submit();",
100,
true,
"_self",
SessionInfo.ALL_CONTEXTS));
tree.addMenuItem("fileSystem", new MenuItem("home",
NetworkPlacePlugin.MESSAGE_RESOURCES_KEY,
"javascript: setActionTarget('home'); document.forms[0].submit();",
100,
true,
"_self",