MAJOR_VERSION
to check it in a major version or MINOR_VERSION
to check it in a minor version). A major version is either the current released document version (if it is the latest major version) or a former released version that has been superseded. A minor version is either the in-process document version (if it is the latest minor version) or a former in-process version that has been superseded. In addition, if the reservation object is an exclusive reservation (its ReservationType
property is set to EXCLUSIVE
), you must be the reservation owner (the reservation owner's name is the value of the reservation object's Owner
property) or have the WRITE_OWNER
access right. An error will occur if this method is called by a document that is not a reservation object. Before you can check in a document that has content, you must set the content for the document by adding to its
collection one or more
objects if the content is stored in a Content Engine object store, or one or more
objects if the content is stored externally. If you do not want the Content Engine to assign a MIME type to the checked-in document, you must explicitly set the value of the document's
property before calling the
method. After a successful check-in, the reservation object becomes the new current version of the document (its
property is set to
). During a minor version check-in, the new minor document version is marked as in-process (its
property is set to
) and the previous in-process minor document version (if it exists) is marked as superseded (its
property is set to
). During a major version check-in, the new major document version is marked as released (its
property is set to
) and the previous released major document version and in-process minor document version (if they exist) are marked as superseded.
The
parameter specifies whether to check in a document as a minor or a major version; set it to
to check in a minor version, or
to check in a major version. The
parameter specifies whether the document should have automatic document classification enabled. (This feature is not supported for publish templates.) If set to
, and if a classifier exists for the document's content type, the document will automatically be assigned the proper document class and its properties will be populated based on the document content (and, in the case of XML document classification, mapping rules from user-defined scripts). The Content Engine's classification service uses a document's MIME type to determine if there is a classifier capable of parsing the document. If you set the
parameter to
, the check-in operation changes the value of the document's
property to
; if you set it to
, the property is set to
.
Namespace: FileNet.Api.Core
Assembly: FileNet.Api (in filenet.api.dll)
Syntax
Visual Basic (Declaration) |
---|
Sub Checkin( _ ByVal autoClassify As AutoClassify, _ ByVal checkinType As CheckinType _ ) |
C# |
---|
void Checkin( AutoClassify autoClassify, CheckinType checkinType ) |
C++ |
---|
void Checkin( AutoClassify autoClassify, CheckinType checkinType ) abstract |
J# |
---|
void Checkin( AutoClassify autoClassify, CheckinType checkinType ) |
JScript |
---|
function Checkin( autoClassify : AutoClassify, checkinType : CheckinType ) |
Parameters
- autoClassify
- An
constant specifying whether to auto-classify this document during check-in.AutoClassify
- checkinType
- A
constant specifying whether to check in a document as a new minor version or a new major version.CheckinType