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, run
protected IfsDetermineAclCommand m_DetermineAclCommand
protected CommandContextPool m_DetermineAclContextPool
public IfsCreateFolderCommand()
protected void execute(CommandContext context) throws IfsException
execute
in class IfsCommand
context
- the command context.IfsException
- if execution failsprotected void execute(CreateFolderContext context) throws IfsException
IfsException
protected Folder createParentFolderPath(LibrarySession session, String folderPath, AccessControlList acl, boolean aclFromParent) throws IfsException
IfsException
protected Folder createFolder(LibrarySession session, String name, AccessControlList acl, boolean aclFromParent, Folder parent) throws IfsException
IfsException
protected AccessControlList performDetermineAcl(FolderDefinition def, String name, Folder parent, LibrarySession sess, AccessControlList defaultAcl) throws IfsException
IfsException
public void populateNestedCommands(CommandInvoker commandInvoker) throws IfsException
populateNestedCommands
in interface Command
populateNestedCommands
in class IfsCommand
commandInvoker
- the command invokerIfsException
- if the operation failsCommandInvoker
protected IfsDetermineAclCommand getDetermineAclCommand() throws IfsException
IfsException
public CommandContext createCommandContext() throws IfsException
createCommandContext
in interface Command
createCommandContext
in class IfsCommand
IfsException
- if the operation failsCommandContext
Copyright © 2023. All rights reserved.