public class AutoFolderingActionAdapter extends Object implements AutoFolderingAction
Constructor and Description |
---|
AutoFolderingActionAdapter() |
Modifier and Type | Method and Description |
---|---|
protected Folder |
createFolder(Folder parent,
int num)
Creates a path element if it does not already exist.
|
protected Folder |
createFolder(Folder parent,
String name)
Creates a path element if it does not already exist.
|
protected String |
getAutoFolderingActionSpecificationName()
Gets the name of the AutoFolderingActionSpecification instance
specified during initialization.
|
Folder |
getLeafFolder(Folder rootFolder,
PublicObjectDefinition def)
Returns the leaf folder where the new object should be foldered, relative
to the specified root folder.
|
void |
initialize(AutoFolderingActionSpecification spec)
Initialize this instance.
|
public void initialize(AutoFolderingActionSpecification spec) throws IfsException
Called immediately after construction (via the default constructor) and used so that the implementation can initialize session-independent state. This instance may be subsequently used concurrently by multiple threads and sessions. A session can be retrieved from the specification object, but it must not be cached. The specification also has the implementation and instance specific parameters which should be cached in a session independent way.
initialize
in interface AutoFolderingAction
spec
- The specification for a given implementation.IfsException
- if the operation fails.public Folder getLeafFolder(Folder rootFolder, PublicObjectDefinition def) throws IfsException
getLeafFolder
in interface AutoFolderingAction
rootFolder
- The root of the folder tree.def
- The definition of the object about to be created.IfsException
- if the operation fails.protected String getAutoFolderingActionSpecificationName()
protected Folder createFolder(Folder parent, String name) throws IfsException
parent
- The parent folder.name
- The folder name to find or create.IfsException
- if the operation fails.protected Folder createFolder(Folder parent, int num) throws IfsException
parent
- The parent folder.num
- The folder name as a number.IfsException
- if the operation fails.Copyright © 2023. All rights reserved.