Packagelc.domain
Classpublic class AttachmentPermissions
InheritanceAttachmentPermissions Inheritance Object

The AttachmentPermissions class stores the read/write/delete permissions for an attachment or note.



Public Properties
 PropertyDefined By
  allowDelete : Boolean = false
A flag that indicates the delete permission for an attachment.
AttachmentPermissions
  allowRead : Boolean = false
A flag that indicates the read permission for an attachment.
AttachmentPermissions
  allowWrite : Boolean = false
A flag that indicates the write permission for an attachment.
AttachmentPermissions
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
Public Methods
 MethodDefined By
  
AttachmentPermissions(readPermission:Boolean = false, writePermission:Boolean = false, deletePermission:Boolean = false)
Constructor.
AttachmentPermissions
  
Generates a key that is appropriate for the current permission settings for use with the language resource bundle.
AttachmentPermissions
  
Indicates whether all the permissions for an attachment are available.
AttachmentPermissions
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
  
Indicates whether the set of permissions will provide access to attachments.
AttachmentPermissions
  
Indicates if the permissions allow for an attachment to be deleted.
AttachmentPermissions
  
Indicates whether write access is allowed on an attachment.
AttachmentPermissions
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
  
Indicates whether the set of permissions allow only read access to an attachment.
AttachmentPermissions
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Property Detail
allowDeleteproperty
public var allowDelete:Boolean = false

A flag that indicates the delete permission for an attachment. A value of true indicates that the attachment has delete permissions.

The default value is false.

allowReadproperty 
public var allowRead:Boolean = false

A flag that indicates the read permission for an attachment. A value of true indicates that the attachment has read permissions.

The default value is false.

allowWriteproperty 
public var allowWrite:Boolean = false

A flag that indicates the write permission for an attachment. A value of true indicates that the attachment has write permissions.

The default value is false.

Constructor Detail
AttachmentPermissions()Constructor
public function AttachmentPermissions(readPermission:Boolean = false, writePermission:Boolean = false, deletePermission:Boolean = false)

Constructor.

Parameters
readPermission:Boolean (default = false) — Specifies the read permission.
 
writePermission:Boolean (default = false) — Specifies the write permission.
 
deletePermission:Boolean (default = false) — Specifies the delete permission.
Method Detail
getLabelKey()method
public function getLabelKey():String

Generates a key that is appropriate for the current permission settings for use with the language resource bundle.

Returns
String — The resource bundle key.
hasAllPermissions()method 
public function hasAllPermissions():Boolean

Indicates whether all the permissions for an attachment are available.

Returns
Boolean — A value of true if all permissions are available.
noAccess()method 
public function noAccess():Boolean

Indicates whether the set of permissions will provide access to attachments.

Returns
Boolean — A value of true indicates that access to the attachments is not allowed.
noDelete()method 
public function noDelete():Boolean

Indicates if the permissions allow for an attachment to be deleted.

Returns
Boolean — A value of true indicates that an attachment cannot be deleted.
noWrite()method 
public function noWrite():Boolean

Indicates whether write access is allowed on an attachment.

Returns
Boolean — A value of true inicates that write access is not allowed.
readOnly()method 
public function readOnly():Boolean

Indicates whether the set of permissions allow only read access to an attachment.

Returns
Boolean — A value of true indicates that read access is allowed.




 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/livecycle/es/sdkHelp/common/langref/lc/domain/AttachmentPermissions.html