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, runpublic IfsCreateDocumentCommand()
public void populateNestedCommands(CommandInvoker invoker) throws IfsException
populateNestedCommands in interface CommandpopulateNestedCommands in class IfsCommandinvoker - Command invoker.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(CreateDocumentContext context) throws IfsException
context - The command context.IfsExceptionpublic CommandContext createCommandContext() throws IfsException
createCommandContext in interface CommandcreateCommandContext in class IfsCommandIfsExceptionCommandContextprotected AccessControlList runDetermineAclCommand(LibrarySession session, AccessControlList acl, Folder folder, String name, LibraryObjectDefinition lodef) throws IfsException
IfsExceptionIfsDetermineAclCommandprotected IfsDetermineAclCommand getDetermineAclCommand() throws IfsException
IfsExceptionprotected Format runDetermineFormatCommand(LibrarySession session, String filename) throws IfsException
IfsExceptionIfsDetermineFormatCommandprotected IfsDetermineFormatCommand getDetermineFormatCommand() throws IfsException
IfsExceptionprotected void runHandlePOVersioningCommand(LibrarySession session, PublicObject po, Folder folder) throws IfsException
IfsExceptionIfsHandlePublicObjectVersioningCommandprotected IfsHandlePublicObjectVersioningCommand getHandlePOVersioningCommand() throws IfsException
IfsExceptionCopyright © 2025. All rights reserved.