DocumentLibraryObject class | QSYS API Reference Guide

Estimated reading time: 3 minutes

Provides functionality to manipulate Document Library Objects (DLO).

Namespace: ASNA.QSys.Runtime.JobSupport Assembly: ASNA.QSys.Runtime.dll

Inheritance: Object

Constructors

Name Description
DocumentLibraryObject(String) Initializes a new instance of the DocumentLibraryObject class.

DocumentLibraryObject(String)

Initializes a new instance of the DocumentLibraryObject class.

DocumentLibraryObject(String)

Parameters

Type Parameter name Description
String dlsRootName The name of the folder, within the Job’s IFS Root, serving as the root of the DLS objects.

Properties

Type Name Description
String IFSRoot Gets the Current Job IFS root path.

Methods

Signature Description
Check(String, String, DLOType) Checks that an object exists in the DLO Root, if the object does not exists it throws a CPF exception.
CreateFolder(String, String) Creates a Folder in another folder within the DLO Root.
GetDLORoot() Gets the absolute DLO folder path.
Move(String, String, String, String) Move a document to a new folder and can rename the document in the process.
Rename(String, String, String) Changes the name of a document or folder.

void Check(string dloName, string parentFolder, DLOType objectType)

Checks that an object exists in the DLO Root, if the object does not exists it throws a CPF exception.

void Check(string dloName, string parentFolder, DLOType objectType)

Parameters

Type Parameter name Description
String dloName Object Name to look for.
String parentFolder Containing object’s parent folder.
DLOType objectType Type of object to look for.

void CreateFolder(string newFolder, string parentFolder)

Creates a Folder in another folder within the DLO Root.

void CreateFolder(string newFolder, string parentFolder)

Parameters

Type Parameter name Description
String newFolder Name of new folder to create.
String parentFolder Parent Folder of new folder.

string GetDLORoot()

Gets the absolute DLO folder path.

string GetDLORoot()

void Move(string docName, string fromFolder, string toFolder, string newName)

Move a document to a new folder and can rename the document in the process.

void Move(string docName, string fromFolder, string toFolder, string newName)

Parameters

Type Parameter name Description
String docName Name of Document to be moved.
String fromFolder Current Document’s parent folder. Use *NONE for DLO root folder.
String toFolder New Folder to contain Document. Use *NONE for DLO root folder.
String newName New Document Name. Use *SAME to keep original Name of Document.

void Rename(string dloName, string newName, string parentFolder)

Changes the name of a document or folder.

void Rename(string dloName, string newName, string parentFolder)

Parameters

Type Parameter name Description
String dloName Original Document Name.
String newName New Document Name.
String parentFolder Document’s containing folder.