Class ecm.widget.RepositorySelector


Extends dijit._Widget.
Provides a widget that is used to select a repository.
Defined in: <ecm\widget\RepositorySelector.js>.

Constructor Summary

Constructor Attributes Constructor Name and Description
 

Field Summary

Field Attributes Field Name and Description
 
Used when type is "dropdown".
 
Boolean indicating use only the entry templates enabled repositories.
 
Boolean indicating use only the foldering privileged repositories.
 
label 
Label to display when the type is "dropdown".
 
The number of repositories.
 
Comma separated string containing the list of repository types.
 
store 
Used when type is "grid" or "dropdown".
 
Used when type is "grid".
 
style 
Used when type is "grid".
 
Boolean indicating use only the teamspaces enabled repositories.
 
type 
String equal "dropdown", "menu", or "grid".
 
View mode 1:Browse, 2:Search, 3:Work, 4:Manage Teamspaces
 
Boolean indicating use only the workflow privileged repositories.

Method Summary

Method Attributes Method Name and Description
 
filterGrid(filterObj)
Filters the grid by the input data.
 
getDropdown(refresh)
Return the dropdown.
 
Return the menu.
 
Return the number of repositories.
 
Returns the list of repositories available for the desktop.
 
onSelect(repositories)
Event called when a Repository is selected.
 
 
resize(changeSize)
Resize the widget.
 
Set the selected data on the grid or dropdown.
 
setStore(param)
Sets the store.

Constructor Detail

ecm.widget.RepositorySelector()

Field Detail

defaultSelectedId

Used when type is "dropdown". The id of the default selected item.

entryTemplatesEnabledOnly

Boolean indicating use only the entry templates enabled repositories.

folderingEnabledOnly

Boolean indicating use only the foldering privileged repositories.

label

Label to display when the type is "dropdown".

numRepositoies

The number of repositories.

repositoryTypes

Comma separated string containing the list of repository types.

store

Used when type is "grid" or "dropdown". The store for the DataGrid or Select.

structure

Used when type is "grid". The DataGrid structure.

style

Used when type is "grid". Style to set on the DataGrid.

teamspaceEnabledOnly

Boolean indicating use only the teamspaces enabled repositories.

type

String equal "dropdown", "menu", or "grid".

viewMode

View mode 1:Browse, 2:Search, 3:Work, 4:Manage Teamspaces

workflowEnabledOnly

Boolean indicating use only the workflow privileged repositories.

Method Detail

filterGrid(filterObj)

Filters the grid by the input data.
Parameters:
filterObj
The filter criteria for the DataGrid.

getDropdown(refresh)

Return the dropdown.
Parameters:
refresh
Returns:
Instance of dijit.form.Select.

getMenu()

Return the menu.
Returns:
Instance of dijit.Menu.

getNumRepositories()

Return the number of repositories.
Returns:
Number of repositories.

getRepositories()

Returns the list of repositories available for the desktop. The list may be filtered based on filtering settings on this dijit.
Returns:
Array of ecm.model.Repository.

onSelect(repositories)

Event called when a Repository is selected.
Parameters:
repositories
Array of ecm.model.Repository.

postCreate()


resize(changeSize)

Resize the widget.
Parameters:
changeSize

setSelected(slot)

Set the selected data on the grid or dropdown.
Parameters:
slot

setStore(param)

Sets the store.
Parameters:
param
The store to set on the DataGrid or Select.