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, run
public IfsHandlePublicObjectVersioningCommand()
public void populateNestedCommands(CommandInvoker invoker) throws IfsException
populateNestedCommands
in interface Command
populateNestedCommands
in class IfsCommand
invoker
- Command invoker object.IfsException
- If there is any exception thrown.CommandInvoker
protected void execute(CommandContext context) throws IfsException
execute
in class IfsCommand
context
- The command context.IfsException
- if execution failsprotected void execute(HandlePublicObjectVersioningContext context) throws IfsException
context
- The command context.IfsException
public CommandContext createCommandContext() throws IfsException
createCommandContext
in interface Command
createCommandContext
in class IfsCommand
IfsException
CommandContext
protected DirectoryUser runCheckedOutByCommand(LibrarySession session, VersionSeries vs) throws IfsException
IfsException
IfsCheckedOutByCommand
protected IfsCheckedOutByCommand getCheckedOutByCommand() throws IfsException
IfsException
protected void runCheckInCommand(LibrarySession session, PublicObject newVersionObject, VersionSeries vs, String comment) throws IfsException
IfsException
IfsCheckInCommand
protected IfsCheckInCommand getCheckInCommand() throws IfsException
IfsException
protected void runCheckOutCommand(LibrarySession session, VersionSeries vs) throws IfsException
IfsException
IfsCheckOutCommand
protected IfsCheckOutCommand getCheckOutCommand() throws IfsException
IfsException
Copyright © 2023. All rights reserved.