Class Index | File Index

Classes


Class baja.Permissions


Extends baja.Simple.
Permissions for a given security domain.

This Constructor shouldn't be invoked directly. Please use the 'make' methods to create an instance of a Permissions Object.
Defined in: obj.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Fields borrowed from class baja.Value:
newCopy
Fields borrowed from class baja.Object:
equivalent, getIcon
Method Summary
Method Attributes Method Name and Description
 
Decode Permissions from a String.
 
Encode Permissions to a String.
 
Return the mask for the permissions.
 
has(mask)
Return true if the specified permissions are enabled.
 
Is the admin invoke permission enabled?
 
Is the admin read permission enabled?
 
Is the admin write permission enabled?
 
Is the operator invoke permission enabled?
 
Is the operator read permission enabled?
 
Is the operator write permission enabled?
<static>  
baja.Permissions.make(perm)
Make a permissions object.
 
make(perm)
Make a permissions object.
 
Return a String representation of the Permissions.
Methods borrowed from class baja.Simple:
equals
Class Detail
baja.Permissions()
Method Detail
{baja.Permissions} decodeFromString()
Decode Permissions from a String.
Returns:
{baja.Permissions}

{String} encodeToString()
Encode Permissions to a String.
Returns:
{String}

{Boolean} getMask()
Return the mask for the permissions.
Returns:
{Boolean}

{Boolean} has(mask)
Return true if the specified permissions are enabled.
Parameters:
mask
Returns:
{Boolean}

{Boolean} hasAdminInvoke()
Is the admin invoke permission enabled?
Returns:
{Boolean}

{Boolean} hasAdminRead()
Is the admin read permission enabled?
Returns:
{Boolean}

{Boolean} hasAdminWrite()
Is the admin write permission enabled?
Returns:
{Boolean}

{Boolean} hasOperatorInvoke()
Is the operator invoke permission enabled?
Returns:
{Boolean}

{Boolean} hasOperatorRead()
Is the operator read permission enabled?
Returns:
{Boolean}

{Boolean} hasOperatorWrite()
Is the operator write permission enabled?
Returns:
{Boolean}

<static> {baja.Permissions} baja.Permissions.make(perm)
Make a permissions object.
Parameters:
perm
Returns:
{baja.Permissions}

{baja.Permissions} make(perm)
Make a permissions object.
Parameters:
perm
Returns:
{baja.Permissions}

{String} toString()
Return a String representation of the Permissions.
Returns:
{String}

Documentation generated by JsDoc Toolkit 2.3.2