DocumentHelper MembersKentico 8.1 API Reference
The DocumentHelper type exposes the following members.
Methods

  NameDescription
Public methodStatic memberAddAttachment(TreeNode, String, String, TreeProvider, Int32, Int32, Int32)
Adds specified attachment to the document. Does not update the document to the database, updates the attachment if currently present.
Public methodStatic memberAddAttachment(TreeNode, String, HttpPostedFile, TreeProvider, Int32, Int32, Int32)
Adds given attachment to the document. Does not update the document to the database, updates the attachment if currently present.
Public methodStatic memberAddAttachment(TreeNode, String, Guid, Guid, Object, TreeProvider, Int32, Int32, Int32)
Adds an attachment to the document. Does not update the document to the database, updates the attachment if currently present.
Public methodStatic memberAddGroupedAttachment(TreeNode, Guid, Guid, String, TreeProvider, Int32, Int32, Int32)
Adds specified group attachment to the document or updates the attachment if already present.
Public methodStatic memberAddGroupedAttachment(TreeNode, Guid, Guid, HttpPostedFile, TreeProvider, Int32, Int32, Int32)
Adds given group attachment to the document or updates the attachment if already present.
Public methodStatic memberAddUnsortedAttachment(TreeNode, Guid, String, TreeProvider, Int32, Int32, Int32)
Adds specified unsorted attachment to the document or updates the attachment if already present.
Public methodStatic memberAddUnsortedAttachment(TreeNode, Guid, HttpPostedFile, TreeProvider, Int32, Int32, Int32)
Adds given unsorted attachment to the document or updates the attachment if already present.
Public methodStatic memberApplyVersionData
Applies the version data to the given DataSet. NodeXML column with XML version data is expected.
Public methodStatic memberClearCheckoutInformation
Clears the checkout information from the given document node.
Public methodStatic memberClearWorkflowInformation
Clears the workflow information from the given document node.
Public methodStatic memberColumnExistsInDocumentView
Checks whether specified column exists in view 'View_CMS_Tree_Joined'.
Public methodStatic memberConvertContainerToFieldType
Converts given container class to the field type.
Public methodStatic memberCopyDocument(CopyDocumentSettings)
Copies the node to the specified location.
Public methodStatic memberCopyDocument(TreeNode, TreeNode, Boolean, TreeProvider)
Copies the node to the specified location.
Public methodStatic memberCopyDocument(TreeNode, Int32, Boolean, TreeProvider, Int32, Int32, Boolean, String)Obsolete.
Copies the node to the specified location.
Public methodStatic memberCopyDocumentAttachments
Copies attachments of the given document as temporary attachments for specified form.
Public methodStatic memberCopyDocumentCategories
Copies categories from one document to another.
Public methodStatic memberCopyNodeData
Copies the data from the source node to the destination node according to the settings.
Public methodStatic memberDeleteAttachment(TreeNode, Guid, TreeProvider)
Deletes attachment from the given document node, including versioning consideration.
Public methodStatic memberDeleteAttachment(TreeNode, String, TreeProvider)
Deletes attachment from the given document node, including versioning consideration.
Public methodStatic memberDeleteDocument(DeleteDocumentSettings)
Deletes document according to supplied settings.
Public methodStatic memberDeleteDocument(TreeNode, TreeProvider, Boolean, Boolean, Boolean, String, ArrayList)
Deletes the given document.
Public methodStatic memberDeleteDocumentAttachments
Deletes attachments from the specified documents, including versioning consideration.
Public methodStatic memberDeleteSiteTree(String, TreeProvider)
Deletes complete site tree including the version history.
Public methodStatic memberDeleteSiteTree(String, TreeProvider, DocumentHelper OnAfterDocumentDeletedEventHandler, String)
Deletes complete site tree including the version history.
Public methodStatic memberEnsureBlogPostHierarchy(TreeNode, TreeNode, TreeProvider)
Ensures that the parent document of the blog post is blog month.
Public methodStatic memberEnsureBlogPostHierarchy(TreeNode, Int32, TreeProvider)Obsolete.
Ensures that the parent document of the blog post is blog month.
Public methodStatic memberEnsureOwnAttachments
Creates document attachments for the given document when the attachments are bound to several documents.
Public methodStatic memberGetAttachment(Guid, TreeProvider, String, Boolean)
Returns the latest version of the specified attachment.
Public methodStatic memberGetAttachment(Guid, Int32, TreeProvider, Boolean)
Returns given version of the specified attachment.
Public methodStatic memberGetAttachment(TreeNode, Guid, TreeProvider, Boolean)
Returns specified attachment for the given node.
Public methodStatic memberGetAttachment(TreeNode, String, TreeProvider, Boolean)
Returns attachment for the given node specified by file name.
Public methodStatic memberGetAttachment(Guid, TreeProvider, String, Boolean, TreeNode )
Returns the latest version of the specified attachment.
Public methodStatic memberGetAttachment(Int32, String, Int32, TreeProvider, Boolean)
Returns given version of the specified attachment.
Public methodStatic memberGetAttachments
Gets attachments for given document filtered by the given parameters.
Public methodStatic memberGetAttachmentUrl(Guid, Int32)
Returns URL to the specified attachment GUID.
Public methodStatic memberGetAttachmentUrl(AttachmentInfo, Int32)
Returns URL to the given attachment.
Public methodStatic memberGetDocument(Int32, TreeProvider)
Returns current document version. If versioning is used, gets the current VersionHistory record, otherwise gets the record directly from the database.
Public methodStatic memberGetDocument(NodeSelectionParameters, TreeProvider)
Returns current document version. If versioning used, gets the current VersionHistory record, otherwise gets the record directly from the database.
Public methodStatic memberGetDocument(TreeNode, TreeProvider)
Returns the latest version of the document if versioning is used or the document itself otherwise.
Public methodStatic memberGetDocument(Int32, String, TreeProvider)
Returns current document version. If versioning used, gets the current VersionHistory record, otherwise gets the record directly from the database.
Public methodStatic memberGetDocument(Int32, String, Boolean, TreeProvider)
Returns current document version. If versioning used, gets the current VersionHistory record, if not, gets the record directly from the database.
Public methodStatic memberGetDocument(String, String, String, Boolean, String, String, String, Int32, Boolean, String, TreeProvider)
Returns current document version. If versioning is used, gets the current VersionHistory record, otherwise gets the record directly from the database. Result contains coupled data only if classNames are specified.
Public methodStatic memberGetDocumentEditUrl
Gets link to edit document in Administration.
Public methodStatic memberGetDocumentMarkImage
Gets document mark image tag.
Public methodStatic memberGetDocumentMarks
Gets document mark image tag.
Public methodStatic memberGetDocuments 
Gets the query for all documents (latest versions)
Public methodStatic memberGetDocuments(String)
Gets the query for all documents (latest versions) of specific type
Public methodStatic memberGetDocuments(NodeSelectionParameters, TreeProvider)
Returns latest version documents data in a dataset.
Public methodStatic memberGetDocuments(String, String, String, Boolean, String, String, String, Int32, Boolean, TreeProvider)
Returns latest version documents data in a dataset. Result contains coupled data only if classNames are specified.
Public methodStatic memberGetDocuments(String, String, String, Boolean, String, String, String, Int32, Boolean, Int32, TreeProvider)
Returns latest version documents data in a dataset. Result contains coupled data only if classNames are specified.
Public methodStatic memberGetDocuments(String, String, String, Boolean, String, String, String, Int32, Boolean, Int32, String, TreeProvider)
Returns latest version documents data in a dataset. Result contains coupled data only if classNames are specified.
Public methodStatic memberGetDocuments(String, String, String, Boolean, String, String, String, Int32, Boolean, Guid, String, Boolean, TreeProvider)
Returns latest version documents data in a dataset. Result contains coupled data only if classNames are specified.
Public methodStatic memberGetDocuments(String, String, String, Boolean, String, String, String, Int32, Boolean, Guid, String, Boolean, Int32, String, TreeProvider)
Returns latest version documents data in a dataset. Result contains coupled data only if classNames are specified.
Public methodStatic memberGetDocuments TDocument  
Gets the query for all documents (latest versions) of specific type
Public methodStatic memberGetTreeNodeDataSet
Gets the new DataSet for the given node with specific class name.
Public methodStatic memberGetUniqueAttachmentFileName
Returns unique attachment file name in the document scope.
Public methodStatic memberGetVersionsSelectQuery
Returns versions select query for the given tree provider.
Public methodStatic memberChangeDocumentCultureDataField
Updates culture data field value for all documents given by where condition.
Public methodStatic memberChangeDocumentToLink
Changes the document so it is link to another document.
Public methodStatic memberIconsUsed
Returns true if any of the icon is used
Public methodStatic memberInsertDocument(TreeNode, Int32, TreeProvider)Obsolete.
Inserts a new document.
Public methodStatic memberInsertDocument(TreeNode, TreeNode, TreeProvider, Boolean)
Inserts a new document.
Public methodStatic memberInsertDocumentAsLink(TreeNode, Int32, TreeProvider, Boolean, Boolean)Obsolete.
Inserts a new linked document.
Public methodStatic memberInsertDocumentAsLink(TreeNode, TreeNode, TreeProvider, Boolean, Boolean, Int32, Int32)
Inserts a new linked document.
Public methodStatic memberInsertNewCultureVersion(NewCultureDocumentSettings)
Inserts a new document culture version.
Public methodStatic memberInsertNewCultureVersion(TreeNode, TreeProvider, String, Boolean, Boolean)
Inserts a new document culture version.
Public methodStatic memberIsDocumentObjectType
Indicates if given object type represents document.
Public methodStatic memberIsDocumentTypeAllowed
Returns true if child class is allowed within given parent class and alias path.
Public methodStatic memberIsIconUsed
Returns true if icon type is enabled
Public methodStatic memberIsSearchTaskCreationAllowed
Returns true if the search task for given node should be created. Returns true if - search is allowed on general level AND - search is allowed for document type of given node - published version for given node exists AND
Public methodStatic memberIsUniqueAttachmentName
Finds out whether given attachment name is unique.
Public methodStatic memberLogDocumentChange
If synchronization logging is enabled, disables log context and logs the document change.
Public methodStatic memberMoveAttachmentDown
Moves attachment down within node attachments. Supports unordered, grouped and temporary attachments.
Public methodStatic memberMoveAttachmentUp
Moves attachment up within node attachments. Supports unordered, grouped and temporary attachments.
Public methodStatic memberMoveDocument(TreeNode, TreeNode, TreeProvider, Boolean)
Moves the specified document to the new location.
Public methodStatic memberMoveDocument(TreeNode, Int32, TreeProvider, Boolean)Obsolete.
Moves the specified document to the new location.
Public methodStatic memberSaveTemporaryAttachments
Saves temporary attachments for specified form.
Public methodStatic memberSearchFieldChanged
Returns true if any field included in the search changed (checks fields defined in Class Search Settings).
Public methodStatic memberUpdateAttachment(TreeNode, AttachmentInfo, TreeProvider)
Updates the document attachment
Public methodStatic memberUpdateAttachment(TreeNode, Guid, Guid)
Updates the attachment reference within document node. To assign the attachment a new GUID value in special operations.
Public methodStatic memberUpdateDocument
Updates the current version of the document within the database. If versioning is used, updates the last version within the VersionHistory, otherwise updates directly the database document record.
Back to Top
Fields

  NameDescription
Public fieldStatic memberDOCUMENT_FIELDS_PREFIX
Document fields prefix for object type.
Public fieldStatic memberDOCUMENT_PREFIX
Document prefix for object type.
Public fieldStatic memberGETDOCUMENTS_REQUIRED_COLUMNS
Columns required for the get documents operation to perform successfully in any case.
Back to Top
See Also