# RHRight
Inherits from: RHObject :: RHWrapper
Can be used with restuls of .llnode().NodeRightsGet()
, DTreeACL
, or a permMask
.
Global perm bits:
$PRemoveNode is an oddity.. Seems to be always required. $PCreateNode is the only difference between container and version permissions.
Container:
$PSee|$PSeeContents|$PModify|$PEditAtts|$PCreateNode|$PCheckout|$PDelete|$PDeleteVersions|$PEditPerms|$PRemoveNode
Versioned:
$PSee|$PSeeContents|$PModify|$PEditAtts|$PCheckout|$PDeleteVersions|$PDelete|$PEditPerms|$PRemoveNode
or,
DAPI.FULL_PERM_MASK
At some point $PAddMajorVersion was added.
# Class Methods
# Inherited methods
# New
function Dynamic New(Object prgCtx, Dynamic values=Undefined)
# Overrides:
New
in class RHObject
# Instance Methods
# Property Methods
Property methods can be accessed with the valueForKey
method.
acl classidentifier classname clone errorassoc hash identityhashcode isacl isgroup isrole isuser isworld iterator methods name node okassoc permassoc permissionassoc permissionlist permissions permissionstring permtype permtypestring propertymethods reset rightid righttype serialize string user
# Inherited methods
assert cacheMethod cacheValueForKey callSuper checkError class classIdentifier className clone deserialize dict endTrans identityHashCode isAccessorMethod isCached isInstanceOf isProperty isPropertyMethod isPropertyRelated iterator methods pluck prepareForReuse propertyMethods removeFromCache reset resetCache resetSubclass resolveRelatedProperty respondsTo serialize setCacheValueForKey setValueForKey setValueForKeyPath startTrans super touch valueForKey valueForKeyPath
# acl
function Dynamic acl()
# hash
function String hash()
# Overrides:
hash
in class RHObject
# hasRight
function Boolean hasRight(Integer permMask)
# isACL
function Boolean isACL()
# isGroup
function Boolean isGroup()
# isRole
function Boolean isRole()
# isUser
function Boolean isUser()
# isWorld
function Boolean isWorld()
# name
function String name()
# node
function Frame node()
This method is only applicable when a DataID field is present... not always the case
# permissionAssoc
function Assoc permAssoc()
# permissionList
function List permissionList()
# permissions
function Integer permissions()
# permissionString
function String permissionString()
# permType
function Integer permType()
# permTypeString
function String permTypeString()
Returns the right type as a human readable string.
# primitiveValueForKey
function Dynamic primitiveValueForKey(String key, Dynamic defaultValue=Undefined)
# Overrides:
primitiveValueForKey
in class RHWrapper
# rightID
function Integer rightid()
This is the UserID.
# rightType
function Integer rightType()
UAPI.USER UAPI.GROUP DataID (for roles)
# setValues
function Frame setValues(Dynamic values)
# Overrides:
setValues
in class RHObject
# string
function String string()
This method returns a string
representation of the object.
# Overrides:
string
in class RHObject
# user
function Frame user()
Returns the user of this right as an RHUser
, if applicable.
← RHRecMan RHTableQuery →