public class IfsCreateDocumentCommand extends IfsCommand
document
from the stream
with
the specified name
in the given folder
.
acl
is not specified, the default acl of the
session user will be applied to the newly created
document
(IfsDetermineAclCommand is called).
document
will be go through the
versioning semantics when placed in the given folder
(IfsHandlePublicObjectVersioningCommand is called).
document
with the same name already exists in
folder
, an IfsException
will be thrown.
Constructor and Description |
---|
IfsCreateDocumentCommand()
Defualt 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(CreateDocumentContext context)
Execute a CreateDocumentContext.
|
protected IfsDetermineAclCommand |
getDetermineAclCommand()
Return an instance of the IfsDetermineAclCommand.
|
protected IfsDetermineFormatCommand |
getDetermineFormatCommand()
Return an instance of the IfsDetermineFormatCommand.
|
protected IfsHandlePublicObjectVersioningCommand |
getHandlePOVersioningCommand()
Return an instance of the IfsHandlePublicObjectVersioningCommand.
|
void |
populateNestedCommands(CommandInvoker invoker)
Populate the required nested commands.
|
protected AccessControlList |
runDetermineAclCommand(LibrarySession session,
AccessControlList acl,
Folder folder,
String name,
LibraryObjectDefinition lodef)
Execute an IfsDetermineAclCommand.
|
protected Format |
runDetermineFormatCommand(LibrarySession session,
String filename)
Execute an IfsDetermineFormatCommand.
|
protected void |
runHandlePOVersioningCommand(LibrarySession session,
PublicObject po,
Folder folder)
Execute an IfsHandlePublicObjectVersioningCommand.
|
postExecute, preExecute, run
public IfsCreateDocumentCommand()
public void populateNestedCommands(CommandInvoker invoker) throws IfsException
populateNestedCommands
in interface Command
populateNestedCommands
in class IfsCommand
invoker
- Command invoker.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(CreateDocumentContext context) throws IfsException
context
- The command context.IfsException
public CommandContext createCommandContext() throws IfsException
createCommandContext
in interface Command
createCommandContext
in class IfsCommand
IfsException
CommandContext
protected AccessControlList runDetermineAclCommand(LibrarySession session, AccessControlList acl, Folder folder, String name, LibraryObjectDefinition lodef) throws IfsException
IfsException
IfsDetermineAclCommand
protected IfsDetermineAclCommand getDetermineAclCommand() throws IfsException
IfsException
protected Format runDetermineFormatCommand(LibrarySession session, String filename) throws IfsException
IfsException
IfsDetermineFormatCommand
protected IfsDetermineFormatCommand getDetermineFormatCommand() throws IfsException
IfsException
protected void runHandlePOVersioningCommand(LibrarySession session, PublicObject po, Folder folder) throws IfsException
IfsException
IfsHandlePublicObjectVersioningCommand
protected IfsHandlePublicObjectVersioningCommand getHandlePOVersioningCommand() throws IfsException
IfsException
Copyright © 2023. All rights reserved.