public class IfsHandlePublicObjectVersioningCommand extends IfsCommand
Document (or subclass of Document)
to a Folder with proper versioning semantics:
Command specification for IfsHandlePublicObjectVersioningCommand
Inputs:
po (or subclass of po)
to a Folder.
po is a Document (or subclass of
Document), po will be added with
proper versioning semantics. Else, an IfsException(68029)
will be thrown.
comment is only used if a check-in will be performed
by the versioning layer.
Document in folder
with same name:
Document is versioned:
Document is checked out by the current user:
Document is checked out by another user:
Document is not checked out:
Document is unversioned:
Document.
Document in folder
with same name:
Document will be added to the folder.
| Constructor and Description |
|---|
IfsHandlePublicObjectVersioningCommand()
Default Constructor
|
| Modifier and Type | Method and Description |
|---|---|
CommandContext |
createCommandContext()
Returns a CommandContext to be used throughout the invocation.
|
protected void |
execute(CommandContext context)
Execute a CommandContext.
|
protected void |
execute(HandlePublicObjectVersioningContext context)
Execute a HandlePublicObjectVersioningContext.
|
protected IfsCheckedOutByCommand |
getCheckedOutByCommand()
Return an instance of the IfsCheckedOutByCommand.
|
protected IfsCheckInCommand |
getCheckInCommand()
Return an instance of the IfsCheckInCommand.
|
protected IfsCheckOutCommand |
getCheckOutCommand()
Return an instance of the IfsCheckOutCommand.
|
void |
populateNestedCommands(CommandInvoker invoker)
Populate the required nested commands.
|
protected DirectoryUser |
runCheckedOutByCommand(LibrarySession session,
VersionSeries vs)
Execute an IfsCheckedOutByCommand.
|
protected void |
runCheckInCommand(LibrarySession session,
PublicObject newVersionObject,
VersionSeries vs,
String comment)
Execute an IfsCheckInCommand.
|
protected void |
runCheckOutCommand(LibrarySession session,
VersionSeries vs)
Execute an IfsCheckOutCommand.
|
postExecute, preExecute, runpublic IfsHandlePublicObjectVersioningCommand()
public void populateNestedCommands(CommandInvoker invoker) throws IfsException
populateNestedCommands in interface CommandpopulateNestedCommands in class IfsCommandinvoker - Command invoker object.IfsException - If there is any exception thrown.CommandInvokerprotected void execute(CommandContext context) throws IfsException
execute in class IfsCommandcontext - The command context.IfsException - if execution failsprotected void execute(HandlePublicObjectVersioningContext context) throws IfsException
context - The command context.IfsExceptionpublic CommandContext createCommandContext() throws IfsException
createCommandContext in interface CommandcreateCommandContext in class IfsCommandIfsExceptionCommandContextprotected DirectoryUser runCheckedOutByCommand(LibrarySession session, VersionSeries vs) throws IfsException
IfsExceptionIfsCheckedOutByCommandprotected IfsCheckedOutByCommand getCheckedOutByCommand() throws IfsException
IfsExceptionprotected void runCheckInCommand(LibrarySession session, PublicObject newVersionObject, VersionSeries vs, String comment) throws IfsException
IfsExceptionIfsCheckInCommandprotected IfsCheckInCommand getCheckInCommand() throws IfsException
IfsExceptionprotected void runCheckOutCommand(LibrarySession session, VersionSeries vs) throws IfsException
IfsExceptionIfsCheckOutCommandprotected IfsCheckOutCommand getCheckOutCommand() throws IfsException
IfsExceptionCopyright © 2025. All rights reserved.