Class ecm.widget.SecurityPolicySelector


Extends dijit._Widget.
Provides a widget that is used to display the list of security policies in a dropdown dialog. This widget allows the user to select a security policy.
Defined in: <ecm\widget\SecurityPolicySelector.js>.

Constructor Summary

Constructor Attributes Constructor Name and Description
 

Field Summary

Field Attributes Field Name and Description
 
Used for accessibility to set the dropdown id.
 
The label id that labels the dropdown.
 
Message displayed in the selector dropdown button label when no security policy is selected.
 
The ecm.model.Repository object used to get the security policies.

Method Summary

Method Attributes Method Name and Description
 
Destroy.
 
Returns the ecm.model.SecurityPolicy that is selected in the content list.
 
onChange(securityPolicy)
Event called when the security policy changes.
 
Fired when the security policies are loaded and the gridx modules are finished loading.
 
Post create.
 
Retrieves the security policies and loads the content list.

Constructor Detail

ecm.widget.SecurityPolicySelector()

Since:
2.0.3

Field Detail

dropdownid

Used for accessibility to set the dropdown id.

labelId

The label id that labels the dropdown. Used for accessibility to set the aria-labelledby.

placeholder

Message displayed in the selector dropdown button label when no security policy is selected.

repository

The ecm.model.Repository object used to get the security policies.

Method Detail

destroy()

Destroy.

getSelectedItem()

Returns the ecm.model.SecurityPolicy that is selected in the content list.

onChange(securityPolicy)

Event called when the security policy changes.
Parameters:
securityPolicy
Instance o ecm.model.SecurityPolicy.

onLoaded()

Fired when the security policies are loaded and the gridx modules are finished loading.

postCreate()

Post create.

retrieveSecurityPolicies(callback)

Retrieves the security policies and loads the content list.
Parameters:
callback