%CSP.UI.Component.UserRoles
class %CSP.UI.Component.UserRoles extends %CSP.UI.Component.abstractRoleTab
Component for editing roles on the User edit pageMethod Inventory
Methods
method %DrawHTML()
The %DrawHTML method draws the initial HTML for this component.
method AssignRoles(PID As %String, RoleList As %String, GrantOption As %Boolean, Type As %String) as %String [ ZenMethod ]
Assign a Role to a User or change the grant option on a User's existing Role
PID: User name
RoleList: Comma-delimited list of roles to change
In case user selected roles longer than 32K,
we break them into 100 items a piece before sending to the server to avoid error
GrantOption: 1 - Add grant option, 0 - Remove grant option
Remove all roles from a user
Create a comma-delimited list of the user's roles and send it to RemoveRole()
Remove a Role from a User
PID: User name
RoleList: Comma-delimited list of roles to remove
In case user selected roles longer than 32K,
we break them into 100 items a piece before sending to the server to avoid error
clientmethod doAssignRole(type, grantOption) [ Language = javascript ]
clientmethod doChangeGrantOption(roleID, isChecked) [ Language = javascript ]
Inherited Members
Inherited Properties
- %condition
- %import
- %includeFiles
- %page
- %resource
- PID
- align
- aux
- avaList
- composite
- containerStyle
- dragEnabled
- dropEnabled
- enclosingClass
- enclosingStyle
- error
- height
- hidden
- hint
- hintClass
- hintStyle
- id
- index
- label
- labelClass
- labelDisabledClass
- labelStyle
- name
- onafterdrag
- onbeforedrag
- ondrag
- ondrop
- onhide
- onrefresh
- onshow
- onupdate
- parent
- readOnly
- selList
- showLabel
- slice
- title
- tuple
- type
- valign
- visible
- width
- window
Inherited Methods
- %AddToSaveSet()
- %Attr()
- %BindExport()
- %ClassIsLatestVersion()
- %ClassName()
- %ConstructClone()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %DrawComponentHTML()
- %DrawJSStrings()
- %EnclosingDivId()
- %Eval()
- %EvalC()
- %Extends()
- %ForceClientRender()
- %GetEventHandlers()
- %GetParameter()
- %GetXMLName()
- %IsA()
- %IsModified()
- %MakeId()
- %New()
- %NormalizeObject()
- %ObjectModified()
- %OnAddToPageAfter()
- %OnAddToPageBefore()
- %OnDrawEnclosingDiv()
- %OnDrawObjectProperties()
- %OnObjectSynch()
- %OnZENDeserialize()
- %OriginalNamespace()
- %PackageName()
- %QuoteValue()
- %QuoteValueL10N()
- %RemoveFromSaveSet()
- %Self()
- %SerializeObject()
- %SetModified()
- %ValidateObject()
- DrawArrows()
- DrawArrowsOld()
- DrawAvailableList()
- DrawSelectBoxes()
- DrawSelectList()
- DrawUpArrowsOld()
- XMLDTD()
- XMLExport()
- XMLExportToStream()
- XMLExportToString()
- XMLNew()
- XMLSchema()
- XMLSchemaNamespace()
- XMLSchemaType()
- clearList()
- doRemoveAllRoles()
- doRemoveRole()
- doSelectBoxMove()
- doSelectBoxMoveAll()
- doSelectBoxMoveItem()
- doSelectBoxMoveList()
- dragFinishHandler()
- dragHandler()
- dragNotifyHandler()
- dragStartHandler()
- dropHandler()
- dropStartHandler()
- exposeComponent()
- findElement()
- fireOnUpdateEvent()
- getEnclosingDiv()
- getHidden()
- getHintElement()
- getLabelElement()
- getProperty()
- getSelList()
- getSettings()
- getType()
- invokeSuper()
- isOfType()
- makeId()
- onCreate()
- onDelete()
- onDisplayHandler()
- onEndModalHandler()
- onPopupAction()
- onRefreshContents()
- onSerialize()
- onStartModalHandler()
- onloadHandler()
- onunloadHandler()
- onupdateHandler()
- refreshContents()
- render()
- renderContents()
- renderSVG()
- setHidden()
- setOverlayMode()
- setProperty()
- startProgressBar()
- stopProgressBar()