Zimlet JavaScript API Reference - ZmAccessControlEntry

Class ZmAccessControlEntry


An access control entry encapsulates the permission information pertaining to a user or users regarding a certain right.

Defined in: ZmAccessControlList.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Creates an access control entry.
Method Summary
Method Attributes Method Name and Description
<static>  
ZmAccessControlEntry.createFromDom(obj)
Creates an entry from the DOM object.
 
Returns a string representation of the object.
Class Detail
ZmAccessControlEntry(params)
Creates an access control entry.
Parameters:
{Hash} params
a hash of parameters
{String} params.right
the action governed by this ACE
{String} params.grantee
the account name of user or group permission applies to
{String} params.zid
the ZID of grantee
{constant} params.granteeType
type of grantee (see ZmSetting.ACL_ constants)
{Boolean} params.negative
if true, permission is denied by this ACE
See:
ZmSetting
Method Detail
<static> {ZmAccessControlEntry} ZmAccessControlEntry.createFromDom(obj)
Creates an entry from the DOM object.
Parameters:
{Hash} obj
the DOM object
{String} obj.right
the action governed by this ACE
{String} obj.d
the account name of user or group permission applies to
{String} obj.zid
the ZID of grantee
{constant} obj.gt
the type of grantee (see ZmSetting.ACL_ constants)
{Boolean} obj.deny
if 1, permission is denied by this ACE
Returns:
{ZmAccessControlEntry} the newly created entry

{String} toString()
Returns a string representation of the object.
Returns:
{String} a string representation of the object

Documentation generated by JsDoc Toolkit 2.3.0 on Tue Jun 28 2016 21:01:37 GMT-0400 (EDT)