Plumtree EDK (Enterprise Web Development Kit) 5.4.0

IDocument.IsActionAllowed Method 

Returns if a given DocumentPermissions is allowed for this document.

bool IsActionAllowed(
   DocumentPermissions permission
);

Parameters

permission
Document permission.

Return Value

true The user can perform the given action, else false.

Remarks

This method can be used to determine if a user can perform a given action within the context of a document such as editing a document, copying a document, editing document security, etc. See the enumeration type DocumentPermissions for details about specific document permissions.

Exceptions

Exception TypeCondition
SoapException There is a communication problem during the execution of the remote method call.
InvalidOperationException The document has not yet been inserted or has already been removed.
CollaborationException The call resulted in an error.

See Also

IDocument Interface | Plumtree.Remote.PRC.Collaboration.Document Namespace