ActionPrivilegedAction
| Package: | CQ |
| Class: | PrivilegedAction |
| Extends: | CQ.Ext.Action |
| Clientlib: | cq.widgets |
For convenience reasons, application privileges and repository privileges are treated equally and can be configured within the same array of privileges.
| Config Options | Defined By | |
|---|---|---|
|
conditions : String/Array The additional condition(s) required to enable this action. A condition is a function that returns true if the condit...
The additional condition(s) required to enable this action. A condition is a function that returns true if the condition check is successful. Conditions will be executed in the scope of the action.
|
PrivilegedAction | |
|
disabled : Boolean
True to disable all components using this action, false to enable them (defaults to false).
|
Action | |
|
handler : Function The function that will be invoked by each component tied to this action when the component's primary event is trigger...
The function that will be invoked by each component tied to this action when the component's primary event is triggered (defaults to undefined).
|
Action | |
|
hidden : Boolean
True to hide all components using this action, false to show them (defaults to false).
|
Action | |
|
iconCls : String The CSS class selector that specifies a background image to be used as the header icon for all components using this ...
The CSS class selector that specifies a background image to be used as the header icon for all components using this action (defaults to '').
An example of specifying a custom icon class would be something like: |
Action | |
|
itemId : String See CQ.Ext.Component.itemId.
See CQ.Ext.Component.itemId.
|
Action | |
|
path : String
(optional) The path used to test privileges and conditions for this action (defaults to '/').
|
PrivilegedAction | |
|
privileges : String/Array
The privilege(s) required to be granted in order to execute this action.
|
PrivilegedAction | |
|
text : String
The text to set for all components using this action (defaults to '').
|
Action | |
| Method | Defined By | |
|---|---|---|
PrivilegedAction( Object config ) Creates a new PrivilegedAction.
Creates a new PrivilegedAction.
Parameters:
|
PrivilegedAction | |
|
constructor() : void
Parameters:
|
Action | |
|
disable() : void Disables all components using this action.
Disables all components using this action.
Parameters:
|
Action | |
each( Function fn, Object scope ) : void Executes the specified function once for each Component currently tied to this action. The function passed
in should...
Executes the specified function once for each Component currently tied to this action. The function passed
in should accept a single argument that will be an object that supports the basic Action config/method interface.
Parameters:
|
Action | |
|
enable() : void Enables all components using this action.
Enables all components using this action.
Parameters:
|
Action | |
execute( [Mixed arg1], [Mixed arg2], [Mixed etc...] ) : void Executes this action manually using the handler function specified in the original config object
or the handler funct...
Executes this action manually using the handler function specified in the original config object
or the handler function set with
setHandler. Any arguments passed to this
function will be passed on to the handler function.
Parameters:
|
Action | |
|
getIconClass() : void Gets the icon CSS class currently used by all components using this action.
Gets the icon CSS class currently used by all components using this action.
Parameters:
|
Action | |
|
getText() : void Gets the text currently displayed by all components using this action.
Gets the text currently displayed by all components using this action.
Parameters:
|
Action | |
|
hide() : void Hides all components using this action.
Hides all components using this action.
Parameters:
|
Action | |
|
isDisabled() : void Returns true if the components using this action are currently disabled, else returns false.
Returns true if the components using this action are currently disabled, else returns false.
Parameters:
|
Action | |
|
isHidden() : void Returns true if the components using this action are currently hidden, else returns false.
Returns true if the components using this action are currently hidden, else returns false.
Parameters:
|
Action | |
setDisabled( Boolean disabled ) : void
|
Action | |
setHandler( Function fn, Object scope ) : void Sets the function that will be called by each Component using this action when its primary event is triggered.
Sets the function that will be called by each Component using this action when its primary event is triggered.
Parameters:
|
Action | |
setHidden( Boolean hidden ) : void
|
Action | |
setIconClass( String cls ) : void Sets the icon CSS class for all components using this action. The class should supply
a background image that will b...
Sets the icon CSS class for all components using this action. The class should supply
a background image that will be used as the icon image.
Parameters:
|
Action | |
setPath( String path, [Boolean forceCheck] ) : void Sets the path used to test privileges and conditions for this
action. In case the path changed (or forceCheck is true...
Sets the path used to test privileges and conditions for this
action. In case the path changed (or forceCheck is true), the permissions
will be reevaluated.
Parameters:
|
PrivilegedAction | |
setText( String text ) : void Sets the text to be displayed by all components using this action.
Sets the text to be displayed by all components using this action.
Parameters:
|
Action | |
|
show() : void Shows all components using this action.
Shows all components using this action.
Parameters:
|
Action | |