DocumentManager Class Content Studio 5.7 SDK
Content Studio Web Content Management System

[This is preliminary documentation and is subject to change.]

This class manages documents in Content Studio.
Inheritance Hierarchy

SystemObject
  SystemMarshalByRefObject
    ContentStudioCSBase
      ContentStudio.DocumentDocumentSystemBase
        ContentStudio.DocumentDocumentBase
          ContentStudio.DocumentDocumentManager

Namespace: ContentStudio.Document
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
Syntax

public class DocumentManager : DocumentBase

The DocumentManager type exposes the following members.

Constructors

  NameDescription
Public methodDocumentManager
Initializes a new instance of the DocumentManager class
Top
Methods

  NameDescription
Public methodAddToFavourites(ConnectionId, SessionId, DocumentId)
Adds a document to the list of favorite documents.
Public methodAddToFavourites(ConnectionId, SessionId, String, Int32, String)
Adds a document to the list of favorite documents.
Public methodApprove(ConnectionId, SessionId, DocumentId)
Creates a new revision of the document that will act as the new currently published version of the document. The current published content will be transferred to document history. Documents that are of the File type cannot be approved using this method. This methods supports anonymous callers.
Public methodApprove(ConnectionId, SessionId, DocumentId, String, String)
Creates a new revision of the document that will act as the new currently published version of the document. The current published content will be transferred to document history. Documents that are of the File type cannot be approved using this method. This methods supports anonymous callers.
Public methodApprove(ConnectionId, SessionId, DocumentId, String, String, DateTime)
Creates a new revision of the document that will act as the new currently published version of the document. The current published content will be transferred to document history. Documents that are of the File type cannot be approved using this method. This methods supports anonymous callers.
Public methodCheckAllowedBinaryDocument
Checks whether a file can be uploaded to Content Studio.
Public methodCheckIn(ConnectionId, SessionId, DocumentId)
Checks in a document that is currently checked out. This methods supports anonymous callers.
Public methodCheckIn(ConnectionId, SessionId, DocumentId, Boolean)
Checks in a document that is currently checked out. This methods supports anonymous callers.
Public methodCheckIn(ConnectionId, SessionId, String, Int32, String)
Checks in a document that is currently checked out. This methods supports anonymous callers.
Public methodCheckOut(ConnectionId, SessionId, DocumentId)
Checks out a document for editing. This methods supports anonymous callers.
Public methodCheckOut(ConnectionId, SessionId, DocumentId, Boolean)
Checks out a document for editing. This methods supports anonymous callers.
Public methodCheckOut(ConnectionId, SessionId, String, Int32, String)
Checks out a document for editing. This methods supports anonymous callers.
Public methodCheckOut(ConnectionId, SessionId, String, Boolean, Int32, String)
Checks out a document for editing. This methods supports anonymous callers.
Public methodCreate(ConnectionId, SessionId, String, String, Int32, String)
Creates a new document. The document cannot be created in a category for binary documents (uploaded files). This methods supports anonymous callers.
Public methodCreate(ConnectionId, SessionId, DocumentId, CategoryId, DocumentId, Int32, String, Object, Object, Object, String, String, String, String, String, String, String, String, String, String, String, String)
Creates a new document. The document cannot be created in a category for binary documents (uploaded files). This methods supports anonymous callers.
Public methodCreate(ConnectionId, SessionId, DocumentId, CategoryId, DocumentId, Int32, String, NullableBoolean, NullableDateTime, NullableDateTime, String, String, String, String, String, String, String, String, String, String, String, String, String)
Creates a new document. The document cannot be created in a category for binary documents (uploaded files). This methods supports anonymous callers.
Public methodCreateBinary(ConnectionId, SessionId, String, String, Int32, String)
Creates a new binary document. The document can only be created in a category for binary documents (uploaded files). This methods supports anonymous callers.
Public methodCreateBinary(ConnectionId, SessionId, DocumentId, Int32, CategoryId, String, String, Object, Object, Object, String, String, String, String, String, String, String, String, Int32, String)
Creates a new binary document. The document can only be created in a category for binary documents (uploaded files). This methods supports anonymous callers.
Public methodCreateBinary(ConnectionId, SessionId, DocumentId, Int32, CategoryId, String, String, Object, Object, Object, String, String, Byte, String, String, String, String, String, Int32, String, String)
Creates a new binary document. The document can only be created in a category for binary documents (uploaded files). This methods supports anonymous callers.
Public methodCreateBinary(ConnectionId, SessionId, DocumentId, Int32, CategoryId, String, String, Object, Object, Object, String, String, String, String, String, String, String, String, Int32, String, String)
Creates a new binary document. The document can only be created in a category for binary documents (uploaded files). This methods supports anonymous callers.
Public methodCreateDocument(ConnectionId, SessionId, String, String, Int32, String)
Creates a new document. This method exists only for the Content Studio copying functionality and should be used for special purposes only. The document cannot be created in a category for binary documents (uploaded files). This methods supports anonymous callers.
Public methodCreateDocument(ConnectionId, SessionId, DocumentId, CategoryId, DocumentId, Int32, String, Object, Object, Object, String, String, String, String, String)
Creates a new document without content. This method exists only for the Content Studio copying functionality and should be used for special purposes only. The document cannot be created in a category for binary documents (uploaded files). This methods supports anonymous callers.
Public methodCreateObjRef (Inherited from MarshalByRefObject.)
Public methodDelete(ConnectionId, SessionId, DocumentId, Boolean, Boolean)
Deletes a document permanently or places it in the Recycling bin. If a document is in the Recycling bin this method deletes the document permanently. This methods supports anonymous callers.
Public methodDelete(ConnectionId, SessionId, String, Int32, String)
Deletes a document permanently or places it in the Recycling bin. If a document is in the Recycling bin this method deletes the document permanently. This methods supports anonymous callers.
Public methodEquals (Inherited from Object.)
Public methodExistsUploadedFile
Tests if a binary file exists in a category. This method can be called by upload code before any content is uploaded into Content Studio temp direcory. The caller can test if there is a file with this name uploaded in the category and ask the user if it should be overwritten or be given another name. This methods supports anonymous callers.
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetLifetimeService (Inherited from MarshalByRefObject.)
Public methodGetType (Inherited from Object.)
Public methodInitializeLifetimeService (Inherited from MarshalByRefObject.)
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodMemberwiseClone(Boolean) (Inherited from MarshalByRefObject.)
Public methodMoveDocumentInHierarchy(ConnectionId, SessionId, DocumentId, DocumentId)
Moves a document within a document hierarchy or inserts it into a document hierarchy and places the document directly before the target. The target document cannot be any of the document's children.
Public methodMoveDocumentInHierarchy(ConnectionId, SessionId, DocumentId, DocumentId, Boolean)
Moves a document within a document hierarchy or inserts it into a document hierarchy. This method can either change the order within the same level or move the document to another level. Parent documents cannot be moved to one of its children.
Public methodMoveDocumentInHierarchy(ConnectionId, SessionId, String, Int32, String)
Moves a document within a document hierarchy. This method can either change the order within the same level or move the document to another level. Parent documents cannot be moved to one of its children.
Public methodRelocate
Relocates the specified document from its current category to a another category of the same type or a compatible category type.
Public methodRemoveFromFavourites(ConnectionId, SessionId, DocumentId)
Removes a document from the list of favorite documents.
Public methodRemoveFromFavourites(ConnectionId, SessionId, String, Int32, String)
Removes a document from the list of favorite documents.
Public methodRename
Changes the file name of a document.
Public methodSave(ConnectionId, SessionId, String, String, Int32, String)
Saves an existing document. The document cannot be a binary document (uploaded file). This methods supports anonymous callers.
Public methodSave(ConnectionId, SessionId, DocumentId, String, Object, Object, Object, String, String, String, String, String, String, String, String, String, String, String)
Saves an existing document. The document cannot be a binary document (uploaded file). This methods supports anonymous callers.
Public methodSave(ConnectionId, SessionId, DocumentId, String, NullableBoolean, NullableDateTime, NullableDateTime, String, String, String, String, String, String, String, String, String, String, String, String)
Saves an existing document. The document cannot be a binary document (uploaded file). This methods supports anonymous callers.
Public methodSaveBinary(ConnectionId, SessionId, String, String, Int32, String)
Saves an existing binary document. The document cannot be a regular document. This methods supports anonymous callers.
Public methodSaveBinary(ConnectionId, SessionId, DocumentId, Object, Object, Object, String, String, String, String, String, String, String, String, Int32, Boolean, String)
Saves an existing binary document. The document cannot be a regular document. This methods supports anonymous callers.
Public methodSaveBinary(ConnectionId, SessionId, DocumentId, Object, Object, Object, String, String, String, String, String, String, String, String, Int32, Boolean, String, String)
Saves an existing binary document. The document cannot be a regular document. This methods supports anonymous callers.
Public methodSaveBinary(ConnectionId, SessionId, Int32, Object, Object, Object, String, String, Byte, String, String, String, String, String, Int32, Boolean, String, String)
Saves an existing binary document. The document cannot be a regular document. This methods supports anonymous callers.
Public methodToString (Inherited from Object.)
Public methodUndelete(ConnectionId, SessionId, DocumentId)
Restores a document that is in the recycling bin. If the document is not in the recycling bin an error occurs.
Public methodUndelete(ConnectionId, SessionId, DocumentId, CategoryId)
Restores a document that is in the recycling bin to specific category. If the document is not in the recycling bin an error occurs.
Public methodUndelete(ConnectionId, SessionId, String, Int32, String)
Restores a document that is in the recycling bin. If the document is not in the recycling bin an error occurs.
Top
Fields

  NameDescription
Public fieldStatic memberMAX_BODYPROPERTIES_SIZE
Indicates the maximum allowed size for a the body properties data.
Public fieldStatic memberMAX_CONTENTTYPE_SIZE
Indicates the maximum size for the document content type data.
Public fieldStatic memberMAX_DOCUMENTNAME_SIZE
Indicates the maximum size for the document name data.
Public fieldStatic memberMAX_FILE_EXTENSION_SIZE
Indicates the maximum size for the document file extension data.
Public fieldStatic memberMAX_FILE_NAME_SIZE
Indicates the maximum size for the document file name data.
Protected fieldStatic memberMAX_FILE_PATH_NAME_SIZE
Indicates the maximum size for the document path file name data.
Public fieldStatic memberMAX_KEYWORD_SIZE
The maximum length of the keywords field.
Public fieldStatic memberMAX_MARKING_SIZE
Indicates the maximum size for the document marking data.
Public fieldStatic memberMAX_MENU_DATA_SIZE
Indicates the maximum size for the document menu data.
Public fieldStatic memberMAX_MENU_TARGET_SIZE
Indicates the maximum size for the document menu target data.
Public fieldStatic memberMAX_MENU_URL_SIZE
Indicates the maximum size for the document menu url data.
Top
Remarks

This class contains low-level methods that enables you to manage any type of document in Content Studio. A much more user friendly way of working with Content Studio documents is one of the high-level document classes. See the See also section for links to the documentation of these classes.
See Also

Reference