Class ecm.widget.AddContentItemSecurityPane


Extends dijit._Widget.
Provides the security pane that is used in the ecm.widget.dialog.AddContentItemDialog and ecm.widget.dialog.CheckInDialog widgets. This pane is used to view and edit the security settings of a document or folder that is being added or checked into a repository property values.
Defined in: <ecm\widget\AddContentItemSecurityPane.js>.

Constructor Summary

Constructor Attributes Constructor Name and Description
 

Method Summary

Method Attributes Method Name and Description
 
Returns the current permissions array.
 
Returns the ecm.model.SecurityPolicy object currently assigned to the document or folder.
 
 
Resizes the widget.
 
setAddContentItemDialog(addContentItemDialog)
Stores a reference to the parent dialog widget.
 
setContentClass(contentClass, isDocument)
Updates the security pane using the default security from the passed in class.
 
setProperties(properties)
Updates the marking values from the passed in property values then updates the security pane.
 
Updates the security pane to pick up the current parent folder inheritance permissions.
 
Updates the security pane to pick up the current security policy permissions.

Constructor Detail

ecm.widget.AddContentItemSecurityPane()

Method Detail

getPermissions()

Returns the current permissions array.
Returns:
Returns an array of ecm.model.Permission

getSecurityPolicy()

Returns the ecm.model.SecurityPolicy object currently assigned to the document or folder.
Returns:
Returns an instance of ecm.model.SecurityPolicy.

postCreate()


resize()

Resizes the widget.

setAddContentItemDialog(addContentItemDialog)

Stores a reference to the parent dialog widget.
Parameters:
addContentItemDialog
The parent dialog widget. A ecm.widget.dialog.AddContentItemDialog or ecm.widget.dialog.CheckInDialog.

setContentClass(contentClass, isDocument)

Updates the security pane using the default security from the passed in class.
Parameters:
contentClass
A ecm.model.ContentClass object that is currently selected as the document or folder class.
isDocument
A boolean value indicating if the selected content class is a document class.

setProperties(properties)

Updates the marking values from the passed in property values then updates the security pane.
Parameters:
properties
An array of item properties JSON.

updateParentFolder()

Updates the security pane to pick up the current parent folder inheritance permissions.

updateSecurityPolicyTemplate()

Updates the security pane to pick up the current security policy permissions.