This interface is not supported by Composite version 1.0
Interface to support access control in document manipulation situations. None of the operations defined in this interface are expected to be part of a transaction.
All functions defined in here receive information about the current identifier name (Identifier, i.e. “$$WorkflowControl;”), the instance identifier of the site (IID, i.e. “MysiteAdm”) and the login of the user requesting the action (Username, i.e. “Administrator”).
Simple VB class that implements ICPDocumentAccess.
When a plugin that implements ICPDocumentAccess is attached to a document, the plugin is expected to provide the oprations stated below. The term document is used to describe any document that includes the ICPDocumentAccess plugin.
Returns: String
Called when the user request to add a new document below the existing document identified by ParentDocumentId.
If the users request should be denied the returning String should contain the message to be shown to the user. If the request is granted the returned String must be empty.
Returns: String
Called when the user request to edit an existing document (defined by DocumentId, StatusId).
If the users request should be denied the returning String should contain the message to be shown to the user. If the request is granted the returned String must be empty.
Returns: String
Called when the user request to copy an existing document (defined by SourceDocumentId, SourceStatusId) to a position below ParentDocumentId.
If the users request should be denied the returning String should contain the message to be shown to the user. If the request is granted the returned String must be empty.
Returns: String
Called when the user request to delete all instances of an existing document (defined by DocumentId).
If the users request should be denied the returning String should contain the message to be shown to the user. If the request is granted the returned String must be empty.
Returns: String
Called when the user request to delete a specific instances of an existing document (defined by DocumentId, StatusId). If StatusId is 1 this is equivalent to deleting the document entirely.
If the users request should be denied the returning String should contain the message to be shown to the user. If the request is granted the returned String must be empty.
Returns: String
Called when the user request to approve an existing document (defined by DocumentId), i.e. making the document public.
If the users request should be denied the returning String should contain the message to be shown to the user. If the request is granted the returned String must be empty.
Returns: String
Called when the user request to preview a non-public instances of an existing document (defined by DocumentId, StatusId).
If the users request should be denied the returning String should contain the message to be shown to the user. If the request is granted the returned String must be empty.
Returns: String
Called when the user request to change the parent of an existing document (defined by DocumentId), i.e. moving the document to a different part of the site.
If the users request should be denied the returning String should contain the message to be shown to the user. If the request is granted the returned String must be empty.
Returns: Boolean
Called when the user request a document to be shown as an icon. The input contains a document (defined by DocumentId, StatusId). The plugin should return false when the user do not have general access to the document.
The returned values will not impact the actual choices the user has on any specific document, only the graphically layout of the document (i.e. the document will appear with a small padlock if the documents HasAccess value is set to False).
Returns: Variant
Called when the user request a list of documents to be shown in the Sitemap. The input array contains a list of documents (defined by DocumentId, StatusId) and boolean values pertaining to each document. The plugin should set HasAccess to false on all documents the user do not have general access to.
The returned values will not impact the actual choices the user has on any specific document, only the graphically layout of the document (i.e. the document will appear with a small padlock if the documents HasAccess value is set to False).