Class: DataPackageView

DataPackageView()

The main view of a Data Package in MetacatUI. The view is a file/folder browser

Screenshot

Constructor

new DataPackageView()

Source:

Extends

  • Backbone.View

Members

parentEditorView :EditorView

A reference to the parent EditorView that contains this view
Type:
Since:
  • 2.15.0
Source:

Methods

addAll()

Add all rows to the DataPackageView
Source:

addFilesAndFolders(sortedFilePathObj) → {boolean}

Add all the files and folders
Parameters:
Name Type Description
sortedFilePathObj object An object where keys are folder paths and values are arrays of file IDs
Source:
Returns:
- Returns false if the input object is not provided
Type
boolean

addNestedPackages(dataPackage)

Adds a nested data package to the package table.
Parameters:
Name Type Description
dataPackage object The data package to be added.
Since:
  • 2.28.0
Source:

addOne(item, dataPackage)

Add a single DataItemView row to the DataPackageView
Parameters:
Name Type Description
item
dataPackage
Source:

checkForPrivateMembers()

Check for private members and disable download buttons if necessary.
Since:
  • 2.28.0
Source:

collapse(e)

Collapse function to hide rows when a user clicks on a collapse control.
Parameters:
Name Type Description
e Event The event object.
Since:
  • 2.28.0
Source:

collapseAll(e)

Collapse all function to hide all child rows when a user clicks on a collapse-all control.
Parameters:
Name Type Description
e Event The event object.
Since:
  • 2.28.0
Source:

expand(e)

Expand function to show hidden rows when a user clicks on an expand control.
Parameters:
Name Type Description
e Event The event object.
Since:
  • 2.28.0
Source:

expandAll(e)

Expand all function to show all child rows when a user clicks on an expand-all control.
Parameters:
Name Type Description
e Event The event object.
Since:
  • 2.28.0
Source:

getNestedPackages()

Retrieves and processes nested packages for the current package.
Since:
  • 2.28.0
Source:

onClose()

Close subviews as needed
Source:

removeOne(item)

Remove the subview represented by the given model item.
Parameters:
Name Type Description
item The model representing the sub view to be removed
Source:

render()

Render the DataPackage HTML
Source:

renderDataPackage()

Render the Data Package View and insert it into this view
Source:

renderShareControl()

Renders a control that opens the AccessPolicyView for editing permissions on this package
Since:
  • 2.15.0
Source:

toggleRows(event)

Show or hide the data rows associated with the event row science metadata
Parameters:
Name Type Description
event
Source: