Class ecm.widget.admin.PluginRepositoryGeneralConfigurationPane

Provides a base class that can be extended to create an interface for the general tab of repository configuration for a plug-in provided repository type.
Defined in: <ecm\widget\admin\PluginRepositoryGeneralConfigurationPane.js>.

Constructor Summary

Constructor Attributes Constructor Name and Description
 

Field Summary

Field Attributes Field Name and Description
 
Parameter to save the custom configuration.

Method Summary

Method Attributes Method Name and Description
 
Called before invoking the repository logon in admin in order to build up a parameter list to pass to the logon.
 
load(repositoryConfig)
Called by administration to load the configuration settings into the interface.
 
onSaveNeeded(saveNeeded)
An event to indicate when the settings displayed in the configuration pane have changed such that they need to be saved.
 
save(repositoryConfig)
Called by administration to save the configuration settings displayed by this interface.
 
Called by administration to validate the current values in the plug-in configuration interface.

Constructor Detail

ecm.widget.admin.PluginRepositoryGeneralConfigurationPane()

Field Detail

configurationString

Parameter to save the custom configuration.

Method Detail

getLogonParams(params)

Called before invoking the repository logon in admin in order to build up a parameter list to pass to the logon.
Parameters:
params
An object where parameters should be added. Usually serverName should be added, as well as any other parameters needed to login.

load(repositoryConfig)

Called by administration to load the configuration settings into the interface. Plug-in writers should override this method to load the settings for the plug-in's configuration into the configuration interface. This might also be called by administration to reset the settings displayed in the configuration interface.
Parameters:
repositoryConfig
An instance of ecm.model.admin.RepositoryConfig for the repository.

onSaveNeeded(saveNeeded)

An event to indicate when the settings displayed in the configuration pane have changed such that they need to be saved. This event is listened to by the administration to determine when to enable the save button.
Parameters:
saveNeeded
A boolean, true if save is needed, and false if not.

save(repositoryConfig)

Called by administration to save the configuration settings displayed by this interface. Plug-in writers should override this method to save the settings for the plug-in's configuration interface into the configuration database.
Parameters:
repositoryConfig
An instance of ecm.model.admin.RepositoryConfig where configuration values should be saved. In particular, serverName and port should be saved (if they exist for the repository) as these show in the display in the list of all repositories as columns. Other information should be encoded into a single string (suggest using JSON) and saved using setCustomProperties.

validate()

Called by administration to validate the current values in the plug-in configuration interface. Plug-in writers should override this method, returning false if any values are not valid, and also focus on the field and indicate the invalid field.