Document ACL class properties
This commit is contained in:
parent
abdaa4a1b9
commit
8af1b96a47
|
@ -58,29 +58,9 @@ var Role = role.Role;
|
|||
var ACLSchema = {
|
||||
model: String, // The name of the model
|
||||
property: String, // The name of the property, method, scope, or relation
|
||||
|
||||
/**
|
||||
* Name of the access type - READ/WRITE/EXECUTE
|
||||
* @property accessType {String} Name of the access type - READ/WRITE/EXECUTE
|
||||
*/
|
||||
accessType: String,
|
||||
|
||||
/**
|
||||
* ALARM - Generate an alarm, in a system dependent way, the access specified
|
||||
* in the permissions component of the ACL entry.
|
||||
* ALLOW - Explicitly grants access to the resource.
|
||||
* AUDIT - Log, in a system dependent way, the access specified in the
|
||||
* permissions component of the ACL entry.
|
||||
* DENY - Explicitly denies access to the resource.
|
||||
*/
|
||||
permission: String,
|
||||
/**
|
||||
* Type of the principal - Application/User/Role
|
||||
*/
|
||||
principalType: String,
|
||||
/**
|
||||
* Id of the principal - such as appId, userId or roleId
|
||||
*/
|
||||
principalId: String
|
||||
};
|
||||
|
||||
|
@ -88,6 +68,16 @@ var ACLSchema = {
|
|||
* A Model for access control meta data.
|
||||
*
|
||||
* @header ACL
|
||||
* @property {String} model Name of the model.
|
||||
* @property {String} property Name of the property, method, scope, or relation.
|
||||
* @property {String} accessType Type of access being granted: one of READ, WRITE, or EXECUTE.
|
||||
* @property {String} permission Type of permission granted. One of:
|
||||
* - ALARM: Generate an alarm, in a system-dependent way, the access specified in the permissions component of the ACL entry.
|
||||
* - ALLOW: Explicitly grants access to the resource.
|
||||
* - AUDIT: Log, in a system-dependent way, the access specified in the permissions component of the ACL entry.
|
||||
* - DENY: Explicitly denies access to the resource.
|
||||
* @property {String} principalType Type of the principal; one of: Application, Use, Role.
|
||||
* @property {String} principalId ID of the principal - such as appId, userId or roleId
|
||||
* @class
|
||||
* @inherits Model
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue