Checks in the specified files and updates the files in
the respective original nodes. In addition, this operation releases
the locks on the original files. Optionally, you can commit the
changes in the working copy even while keeping the file checked out,
or delete the working copies that were created when you checked
out the original files from the Content Services space. The check
in operation is atomic: either all specified nodes are checked in,
or the check in operation is aborted and an exception thrown.
Input propertiesParameters that specify the store, file, and check in options.
Store NameA string value
that represents the name of the store where the content is to be checked
into. This is a mandatory parameter, and the default value is SpacesStore.
nodeIDsOrPathsThe list of
IDs of nodes or paths that you want to check in. You can check in only
files. Checking in folders is not allowed, so the list of nodeIDsOrPaths must
correspond to files. This value is a mandatory parameter.
versionType(Optional) An enumeration
value of type VersionType. You can specify the versions as VersionType.MAJOR_VERSION or VersionType.MINOR_VERSION.If
you want to have a check in record for each version of the file,
you should make the node versionable. If not set, versionType is
set to minor version by default.
keepCheckedOut(Optional) A boolean value,
when set to true, specifies whether the file or list of files should
be still locked in the user's name even after checking in. The reference to
the copy of the file within the working space is not deleted. This
operation only commits the changes in the working copy to the original
node but keeps the file locked.Default value is false; files are
checked back in to their respective nodes and working copies are
deleted.
revokePrevious(Applicable only if Rights
Management is available) A boolean value,
when set to true, revokes access to previous versions of the Rights
Management-protected PDFs file that is being checked in. To use
this, you must ensure that the versionType is set
to MAJOR.
You must ensure that the file that you are checking
in does not have the same license keys as the earlier versions of
the file when you use the revokePrevious option.
Default is false.
versionAttributes(Optional) A map value
that can hold any check in comments that you want to add. Check
in comments are not indexed, and so you cannot search the repository
for files using the check in comments that you added. However, you
can retrieve the check in comments using the getVersionHistory API.
Output propertiesA map value
containing IDs of original files corresponding to the working copies that
are checked back in.
|
|
|