public class IfsCreateFolderCommand extends IfsCommand
IfsCommand| Modifier and Type | Field and Description |
|---|---|
protected IfsDetermineAclCommand |
m_DetermineAclCommand
Object that contains the logic for determining the Acl.
|
protected CommandContextPool |
m_DetermineAclContextPool
Context pool for command contexts.
|
| Constructor and Description |
|---|
IfsCreateFolderCommand()
Default Constructor
|
| Modifier and Type | Method and Description |
|---|---|
CommandContext |
createCommandContext()
Returns a CommandContext to be used throughout the invocation.
|
protected Folder |
createFolder(LibrarySession session,
String name,
AccessControlList acl,
boolean aclFromParent,
Folder parent)
Creates one Folder object.
|
protected Folder |
createParentFolderPath(LibrarySession session,
String folderPath,
AccessControlList acl,
boolean aclFromParent)
Creates all folders in a path where the path contains at least one folder to be created.
|
protected void |
execute(CommandContext context)
Execute a CommandContext.
|
protected void |
execute(CreateFolderContext context)
Executes a CreateFolderContext.
|
protected IfsDetermineAclCommand |
getDetermineAclCommand()
Return an instance of the IfsDetermineAclCommand.
|
protected AccessControlList |
performDetermineAcl(FolderDefinition def,
String name,
Folder parent,
LibrarySession sess,
AccessControlList defaultAcl)
Determines the Acl to use by making a call to the inner command.
|
void |
populateNestedCommands(CommandInvoker commandInvoker)
Populates the command and context pool for determining the Acl.
|
postExecute, preExecute, runprotected IfsDetermineAclCommand m_DetermineAclCommand
protected CommandContextPool m_DetermineAclContextPool
public IfsCreateFolderCommand()
protected void execute(CommandContext context) throws IfsException
execute in class IfsCommandcontext - the command context.IfsException - if execution failsprotected void execute(CreateFolderContext context) throws IfsException
IfsExceptionprotected Folder createParentFolderPath(LibrarySession session, String folderPath, AccessControlList acl, boolean aclFromParent) throws IfsException
IfsExceptionprotected Folder createFolder(LibrarySession session, String name, AccessControlList acl, boolean aclFromParent, Folder parent) throws IfsException
IfsExceptionprotected AccessControlList performDetermineAcl(FolderDefinition def, String name, Folder parent, LibrarySession sess, AccessControlList defaultAcl) throws IfsException
IfsExceptionpublic void populateNestedCommands(CommandInvoker commandInvoker) throws IfsException
populateNestedCommands in interface CommandpopulateNestedCommands in class IfsCommandcommandInvoker - the command invokerIfsException - if the operation failsCommandInvokerprotected IfsDetermineAclCommand getDetermineAclCommand() throws IfsException
IfsExceptionpublic CommandContext createCommandContext() throws IfsException
createCommandContext in interface CommandcreateCommandContext in class IfsCommandIfsException - if the operation failsCommandContextCopyright © 2025. All rights reserved.