Skip to main content

%DeepSee.UI.FolderManager

Class %DeepSee.UI.FolderManager Extends %DeepSee.UI.standardPage [ System = 4 ]

DeepSee Folder Manager page.

Parameters

PAGENAME

Parameter PAGENAME = "Folder Manager";

RESOURCE

Parameter RESOURCE = "%DeepSee_Admin,%Development";

DOCBOOKID

Parameter DOCBOOKID = "D2GS_uis_folder_manager";

Properties

folderName

Property folderName As %ZEN.Datatype.string;

Current folder name.

directory

Property directory As %ZEN.Datatype.string;

Export directory.

selectedItems

Property selectedItems As list Of %ZEN.Datatype.string;

List of selected items.

selectedFiles

Property selectedFiles As list Of %ZEN.Datatype.string;

List of selected files.

resourceList

Property resourceList As %ZEN.Datatype.string [ Internal ];

Comma-delimited list of resources available for the current user

XDatas

Style

XData Style

contentPane

XData contentPane [ XMLNamespace = "http://www.intersystems.com/zen" ]

This XML defines the contents of the contents pane for this page.

Methods

%OnGetTitle

Method %OnGetTitle() As %String

Get the (localized) title string for the page. This should be implemented in a subclass.

%OnGetProductName

Method %OnGetProductName() As %String

Get the product name for the page.

%OnGetPageName

Method %OnGetPageName() As %String

Get the (localized) name of the page.

OnGetRibbonInfo

Method OnGetRibbonInfo(Output pDisplay As %Boolean, Output pViewIcons As %List, Output pSortOptions As %List, Output pSearchBox As %Boolean, Output pRibbonTitle As %String, Output pCommands As %List) As %Status

Get information to display in the ribbon bar.

onlayoutHandler

ClientMethod onlayoutHandler(load) [ Language = javascript ]

Adjust sizes of components on the page.

adjustSizes

ClientMethod adjustSizes() [ Language = javascript ]

Adjust sizes of components on the page.

%OnAfterCreatePage

Method %OnAfterCreatePage() As %Status

Decorate the page.

DrawHelp

Method DrawHelp(pSeed As %String) As %Status

Draw content of the help box.

DrawFolders

Method DrawFolders(pSeed As %String) As %Status

Draw content of folders list.

toggleContainer

ClientMethod toggleContainer(value) [ Language = javascript ]

Adjust the presentation to the user when the Container Class checkbox is checked.

toggleFolder

ClientMethod toggleFolder(index) [ Language = javascript ]

Hide/show folders in list.

deleteFolder

ClientMethod deleteFolder(name) [ Language = javascript ]

Delete the given folder.

deleteItem

ClientMethod deleteItem(name) [ Language = javascript ]

Delete the given item.

setExportDirectory

ClientMethod setExportDirectory(dir) [ Language = javascript ]

Set the export directory.

refreshFolders

ClientMethod refreshFolders() [ Language = javascript ]

Reload the folder list.

allClick

ClientMethod allClick() [ Language = javascript ]

Click on all check box.

rowClick

ClientMethod rowClick(row) [ Language = javascript ]

Click on row.

cbClick

ClientMethod cbClick(cb) [ Language = javascript ]

Click on checkbox.

getSelectedItems

ClientMethod getSelectedItems() [ Language = javascript ]

Return an array of selected folder items.

getSelectedFiles

ClientMethod getSelectedFiles() [ Language = javascript ]

Return an array of selected files in export directory.

exportThem

ClientMethod exportThem() [ Language = javascript ]

Export selected items.

deleteSelected

ClientMethod deleteSelected() [ Language = javascript ]

Delete selected items.

importThem

ClientMethod importThem() [ Language = javascript ]

Import selected items.

SendItemToTrash

Method SendItemToTrash(pName As %String) As %String [ ZenMethod ]

Delete the given folder item or folder.

ExportItems

Method ExportItems(pUseContainerClass As %Boolean, pContainerClassName As %String = "") As %String [ ZenMethod ]

Export the current selected list.

ImportItems

Method ImportItems() As %String [ ZenMethod ]

Import the current selected file list.

DeleteItems

Method DeleteItems() As %String [ ZenMethod ]

Delete the current selected list.

searchBoxHandler

ClientMethod searchBoxHandler(searchKey) [ Language = javascript ]

Change in search box value. Overridden by subclasses.

selectAllFiles

ClientMethod selectAllFiles() [ Language = javascript ]

Select all files in export directory.

selectFile

ClientMethod selectFile(n, iscb) [ Language = javascript ]

Select a file in the export directory.

updateDetails

ClientMethod updateDetails() [ Language = javascript ]

Update the item details box.

GetItemDetails

ClassMethod GetItemDetails(pName As %String) As %ZEN.proxyObject [ ZenMethod ]

Get details on selected item.

DrawExportDirectory

Method DrawExportDirectory(pSeed As %String) As %Status

Draw contents of export directory.

saveFolder

ClientMethod saveFolder(name) [ Language = javascript ]

Save folder details.

SaveFolderDetails

ClassMethod SaveFolderDetails(pName As %String, pResource As %String) As %String [ ZenMethod ]

Save folder information.

onPopupAction

ClientMethod onPopupAction(popupName, action, value) [ Language = javascript ]

%OnPreHTTP

ClassMethod %OnPreHTTP() As %Boolean [ ServerOnly = 1 ]

Test for additional resources.

%GetResourceList

ClassMethod %GetResourceList(Output pList) As %Status [ Internal ]

browseSelect

ClientMethod browseSelect() [ Language = javascript ]

User clicked the Browse button.

doLocationChange

ClientMethod doLocationChange(flag) [ Language = javascript ]

User changed to export file between Server or Browser

GetTempFileName

Method GetTempFileName(pDocName) As %String [ ZenMethod ]

Create a temporary file name with the same extension as the current pDocName.

DownloadStream

ClassMethod DownloadStream(pFilename As %String, pDocName As %String, pCharSet As %String = "") [ ZenMethod ]

Stream a temporary file located on the server at pFileName and serve it to the current client %CSP.StreamServer.

IsValidClassName

ClassMethod IsValidClassName(pClassName As %String) As %Boolean [ ZenMethod ]

Test if the given class name is valid.

shortcutToFileUpload

ClientMethod shortcutToFileUpload() [ Language = javascript ]

Provides a compact means of switching to the file upload form

SaveFileImportToDisk

ClassMethod SaveFileImportToDisk(pSubmit As %ZEN.Submit) As %Status

Link to the stream of the file upload control and treanfer the stream contents to the server

%OnSubmit

ClassMethod %OnSubmit(pSubmit As %ZEN.Submit) As %Status

onloadHandler

ClientMethod onloadHandler() [ Language = javascript ]

This client event, if present, is fired when the page is loaded.

checkUploadInformation

ClientMethod checkUploadInformation() [ Language = javascript ]

Check the error status of the fileUploadForm and the fileUploadCtrl. If present, alert the user to this information