Component (Components.FS.DocuEngine)
Only the functions and data members that are accessible from your location are displayed
ExtendsComponents.FS.FileIO
HintThis component provides documentsearch functions.
this
public
addVerityCollection
Public Function addVerityCollection
source: /usr/local/tomcat/webapps/ROOT/Components/FS/DocuEngine.cfc
Adds a verity collection.
arguments
labelnamerequiredtypedefaulthint
wc_idtruenumericnullThe ID of the company.
wfv_nametruestringnullThe name of the collection.
wfd_idtruenumericnullThe ID of the directory to use for this collection.
wfv_languagetruestringnullThe language of the collection.
return typestruct
calcSize
Public Function calcSize
source: /usr/local/tomcat/webapps/ROOT/Components/FS/Util.cfc
Calculates bytes to kb, mb, gb.
arguments
labelnamerequiredtypedefaulthint
sizetruenumericnullThe size to recalculate
return typestruct
calculateDirectoryUsedSpace
Public Function calculateDirectoryUsedSpace
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Calculates the space used by the files in a directory (in bytes).
arguments
labelnamerequiredtypedefaulthint
wfd_idtruenumericnullThe ID of the directory.
return typestruct
changeLastChangeFile
Public Function changeLastChangeFile
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Changes the last changed of a file in now and the session user.
arguments
labelnamerequiredtypedefaulthint
wf_idtruenumericnullThe ID of the file.
return typestruct
checkNumericList
Public Function checkNumericList
source: /usr/local/tomcat/webapps/ROOT/Components/Result/ReturnStruct.cfc
Checks if each element in a list is numeric
arguments
labelnamerequiredtypedefaulthint
listtruestringnullThe list to check
addfalsenumericnullIf a list is empty, then add the add
return typeany
COMPONENTCACHE
Struct
concatQuery
Public Function concatQuery
source: /usr/local/tomcat/webapps/ROOT/Components/Result/ReturnStruct.cfc
Concats two queries, and returns one query
arguments
labelnamerequiredtypedefaulthint
query1truequerynullThe first query.
query2truequerynullThe second query.
columnListfalsestring*If you want to select only some columns in stead of of all columns. Usefull if you want to concat queries with different columns.
return typequery
copyDirectory
Public Function copyDirectory
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Copies a WIS directory to another directory
arguments
labelnamerequiredtypedefaulthint
copy_wfd_idtruenumericnullA list of directories to copy.
wfd_idtruenumericnullThe directory to copy the directories in.
return typestruct
copyFile
Public Function copyFile
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Copies a WIS file to another directory
arguments
labelnamerequiredtypedefaulthint
wf_id_listtruestringnullA list of files to copy.
wfd_idtruenumericnullThe directory to copy the files in.
return typestruct
copyObjects
Public Function copyObjects
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Copies directories and files to another directory
arguments
labelnamerequiredtypedefaulthint
wfd_id_listtruestringnullA list of directories to copy.
wf_id_listtruestringnullA list of files to copy.
wfd_idtruenumericnullThe directory to copy the objects in.
return typestruct
createCompanyDisc
Public Function createCompanyDisc
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Creates a disk for a new company
arguments
labelnamerequiredtypedefaulthint
wc_idtruenumericnullThe id of the company
return typestruct
createComponent
Public Function createComponent
source: /usr/local/tomcat/webapps/ROOT/Components/Result/ReturnStruct.cfc
arguments
labelnamerequiredtypedefaulthint
return typeany
createDirectory
Public Function createDirectory
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Creates a directory in the WIS FS. It checks the rights for the sessionuser.
arguments
labelnamerequiredtypedefaulthint
wfd_idtruenumericnullThe ID of the WIS directory where the new directory has to be created.
wfd_nametruestringnullThe name of the new directory
return typestruct
createPersonalDisc
Public Function createPersonalDisc
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Creates a disk for a new user
arguments
labelnamerequiredtypedefaulthint
wu_idtruenumericnullThe id of the user
return typestruct
deleteDirectory
Public Function deleteDirectory
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Removes a directory with content Checks for rights
arguments
labelnamerequiredtypedefaulthint
wfd_idtruenumericnullThe id of the directory
return typestruct
deleteFile
Public Function deleteFile
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Removes a file Checks for rights
arguments
labelnamerequiredtypedefaulthint
wf_idtruenumericnullThe id of the file
return typestruct
deleteVerityCollection
Public Function deleteVerityCollection
source: /usr/local/tomcat/webapps/ROOT/Components/FS/DocuEngine.cfc
Removes a verity collection.
arguments
labelnamerequiredtypedefaulthint
wfv_idtruenumericnullThe ID of the collection.
return typestruct
DIRECTORYVALUESCACHE
Struct
displayAlertError
Public Function displayAlertError
source: /usr/local/tomcat/webapps/ROOT/Components/Result/ReturnStruct.cfc
Alerts optional errormessages.
arguments
labelnamerequiredtypedefaulthint
inputStructuretruestructnullThe structure returned from another function
addScriptTagsfalsebooleantrueDo you want to add the script tags around the alert message?
return typestruct
displayHTMLError
Public Function displayHTMLError
source: /usr/local/tomcat/webapps/ROOT/Components/Result/ReturnStruct.cfc
Displays optional errormessages in HTML.
arguments
labelnamerequiredtypedefaulthint
inputStructuretruestructnullThe structure returned from another function.
return typestruct
fileSystemSync
Public Function fileSystemSync
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
arguments
labelnamerequiredtypedefaulthint
wfd_idtruenumericnullDe directory die gesynchroniseerd moet worden
sync_dirtrueStringnullDe directory waarmee gesynchroniseerd moet worden
also_sync_subdirsfalsebooleanfalseGeeft aan of ook subdirectories meegenomen moeten worden (standaard: geen subdirectories meenemen)
update_existingfalsebooleantrueGeeft aan of bestanden die nieuwer zijn geupdate moeten worden (standaard: nieuwe versie updaten)
delete_removedfalsebooleantrueGeeft aan of bestanden die verwijderd zijn ook in wis moeten worden verwijderd(standaard: verwijderen)
return typeany
generateAddSQL
Public Function generateAddSQL
source: /usr/local/tomcat/webapps/ROOT/Components/Result/ReturnStruct.cfc
Generates output for a SQL query statement (adding).
arguments
labelnamerequiredtypedefaulthint
addStructuretruestructnullThe columns and values to add.
return typestruct
generateUpdateSQL
Public Function generateUpdateSQL
source: /usr/local/tomcat/webapps/ROOT/Components/Result/ReturnStruct.cfc
Generates output for a SQL query statement (updating).
arguments
labelnamerequiredtypedefaulthint
updateStructuretruestructnullThe columns and values to update.
return typestruct
genPos
Public Function genPos
source: /usr/local/tomcat/webapps/ROOT/Components/Result/ReturnStruct.cfc
Creates an order id for queries
arguments
labelnamerequiredtypedefaulthint
keytruestringnullThe key the of id's
listtruestringnullThe list of id's
return typestring
getAllFileCategories
Public Function getAllFileCategories
source: /usr/local/tomcat/webapps/ROOT/Components/FS/Util.cfc
Get all the values of all images which are in the fs
arguments
labelnamerequiredtypedefaulthint
return typestruct
getAllFileTypes
Public Function getAllFileTypes
source: /usr/local/tomcat/webapps/ROOT/Components/FS/Util.cfc
Get all the values of all images which are in the fs
arguments
labelnamerequiredtypedefaulthint
return typestruct
getAllSubDirectories
Public Function getAllSubDirectories
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Returns all the directories below a given directory
arguments
labelnamerequiredtypedefaulthint
wfd_id_listtruestringnullThe directory id of the directory from which you want to get all the sub directories. This is a list to handle a smart recursion. You need to give one wfd_id.
return typestruct
getAllVerityCollections
Public Function getAllVerityCollections
source: /usr/local/tomcat/webapps/ROOT/Components/FS/DocuEngine.cfc
Returns all verity collections.
arguments
labelnamerequiredtypedefaulthint
return typestruct
getCategoryFromType
Public Function getCategoryFromType
source: /usr/local/tomcat/webapps/ROOT/Components/FS/Util.cfc
Returns the mfc_id for the given mft_id
arguments
labelnamerequiredtypedefaulthint
mft_idtruenumericnullThe mft_id for which to return the mfc_id
return typestruct
getCompanyDiscs
Public Function getCompanyDiscs
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Returns all the discs of a company. It includes the companies main disc and the shared discs.
arguments
labelnamerequiredtypedefaulthint
wc_idtruenumericnullThe id of the company.
return typestruct
getComponent
Public Function getComponent
source: /usr/local/tomcat/webapps/ROOT/Components/Result/ReturnStruct.cfc
arguments
labelnamerequiredtypedefaulthint
componentNametruestringnull
return typeany
getDirectoriesTo
Public Function getDirectoriesTo
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Returns a query with all directories above the current. It includes the start dir.
arguments
labelnamerequiredtypedefaulthint
above_wfd_idtruenumericnullThe directory id of the directory from which you want to get all the parent directories.
bottom_wfd_idtruenumericnullThe directory id of the directory from which you want to get all the parent directories.
return_bottomtruenumericnullThe directory id of the directory from which you want to get all the parent directories.
return typestruct
getDirectoryByName
Public Function getDirectoryByName
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Returns the id of an existing directory.
arguments
labelnamerequiredtypedefaulthint
wfd_idtruenumericnullThe id of the directory where to search in
wfd_nametruestringnullThe complete name of the directory.
return typestruct
getDirectoryGroupRights
Public Function getDirectoryGroupRights
source: /usr/local/tomcat/webapps/ROOT/Components/FS/ReadAuthorization.cfc
Returns all right properties for a group.
arguments
labelnamerequiredtypedefaulthint
wfd_idtruenumericnullThe id of the directory.
wg_idtruenumericnullThe id of the group for which you want to get the rights.
return typestruct
getDirectoryGroupsRights
Public Function getDirectoryGroupsRights
source: /usr/local/tomcat/webapps/ROOT/Components/FS/ReadAuthorization.cfc
Returns all group for which rights are defined for a directory. It returns also the right properties.
arguments
labelnamerequiredtypedefaulthint
wfd_idtruenumericnullThe wfd_id from wich you want to get the groups.
return typestruct
getDirectoryUserRights
Public Function getDirectoryUserRights
source: /usr/local/tomcat/webapps/ROOT/Components/FS/ReadAuthorization.cfc
Returns all right properties for a user. Does intelligent check for administrators who are above the company of the directory.
arguments
labelnamerequiredtypedefaulthint
wfd_idtruenumericnullThe id of the directory.
wu_idtruenumericnullThe id of the user for which you want to get the rights.
return typestruct
getDirectoryUserSessionRights
Public Function getDirectoryUserSessionRights
source: /usr/local/tomcat/webapps/ROOT/Components/FS/ReadAuthorization.cfc
Returns all right properties for a user
arguments
labelnamerequiredtypedefaulthint
wfd_idtruenumericnullThe id of the directory.
return typestruct
getDirectoryValues
Public Function getDirectoryValues
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Returns the properties of the given disks
arguments
labelnamerequiredtypedefaulthint
fd_id_listtruestringnullThe list of folders to get the properties of
dir_img_idfalseany-1The id of the directory image for in the tree.
verity_img_idfalseany-1The id of the verity image for in the tree.
wu_idfalsenumeric-1Can return the a_read property.
getEntireCompanyDiskfalsebooleanfalse
return typestruct
getDirsToRoot
Public Function getDirsToRoot
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Returns a query with all directories above the current. It includes the start dir.
arguments
labelnamerequiredtypedefaulthint
wfd_idtruenumericnullThe directory id of the directory from which you want to get all the parent directories.
return typestruct
getDiscValues
Public Function getDiscValues
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Returns the values of a disc. It returns the language specific words for main disc and personal disk.
arguments
labelnamerequiredtypedefaulthint
wfd_id_listtruestringnullThe id list of the discs
return typestruct
getExtensionFromFilename
Public Function getExtensionFromFilename
source: /usr/local/tomcat/webapps/ROOT/Components/FS/DocuEngine.cfc
gets the extension from a filename
arguments
labelnamerequiredtypedefaulthint
filenametrueStringnullThe name of the file
return typestring
getExtensionFromFileType
Public Function getExtensionFromFileType
source: /usr/local/tomcat/webapps/ROOT/Components/FS/Util.cfc
Returns the extension for the given mft_id
arguments
labelnamerequiredtypedefaulthint
mft_idtruenumericnullThe mft_id
return typestruct
getFileByName
Public Function getFileByName
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Returns the id of an existing file.
arguments
labelnamerequiredtypedefaulthint
wfd_idtruenumericnullThe id of the directory where to search in
wf_nametruestringnullThe complete name of the file.
return typestruct
getFileCustomInfo
Public Function getFileCustomInfo
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Returns the info about the custom names for files.
arguments
labelnamerequiredtypedefaulthint
ml_idtruenumericnullThe ID of the language.
return typestruct
getFileCustomSelectInfo
Public Function getFileCustomSelectInfo
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Returns the options of a selectfield for users.
arguments
labelnamerequiredtypedefaulthint
wcf_idtruenumericnullThe ID of the field.
ml_idtruenumericnullThe ID of the language.
return typestruct
getFileNameWithoutExtension
Public Function getFileNameWithoutExtension
source: /usr/local/tomcat/webapps/ROOT/Components/FS/Util.cfc
Returns a filename without extension
arguments
labelnamerequiredtypedefaulthint
filenametruestringnullThe filename to strip the extension of
return typestring
getFilePointersTo
Public Function getFilePointersTo
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Returns all pointers to a file
arguments
labelnamerequiredtypedefaulthint
wf_idtruenumericnullThe id of the file
return typestruct
getFileProperties
Public Function getFileProperties
source: /usr/local/tomcat/webapps/ROOT/Components/FS/Util.cfc
Returns the properties of a file from the OS, not from the WIS FS, like size, type etc.
arguments
labelnamerequiredtypedefaulthint
fileNametruestringnullThe file to insert, this must include the path
return typestruct
getFilesFromDirectory
Public Function getFilesFromDirectory
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Get all wf_id's of the files in (multiple/a) director(ies/y)
arguments
labelnamerequiredtypedefaulthint
wfd_id_listtruestringnullThe id list of the directories
mftc_id_listfalsestring0The category type
orderbyfalseany
orderfalseany
return typestruct
getFileSize
Public Function getFileSize
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
arguments
labelnamerequiredtypedefaulthint
pathtrueanynull
return typenumeric
getFileTypeFromExtension
Public Function getFileTypeFromExtension
source: /usr/local/tomcat/webapps/ROOT/Components/FS/Util.cfc
Returns the mft_id for the given extension
arguments
labelnamerequiredtypedefaulthint
extensiontruestringnullThe extension
return typestruct
getFileTypes
Public Function getFileTypes
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Gets all filetypes.
arguments
labelnamerequiredtypedefaulthint
return typestruct
getFileTypeValues
Public Function getFileTypeValues
source: /usr/local/tomcat/webapps/ROOT/Components/FS/Util.cfc
Returns the values of a file type.
arguments
labelnamerequiredtypedefaulthint
mft_idtruenumericnullThe id of the file type
return typestruct
getFileUsage
Public Function getFileUsage
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
arguments
labelnamerequiredtypedefaulthint
wf_idtruenumericnull
return typestruct
getFileValues
Public Function getFileValues
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
arguments
labelnamerequiredtypedefaulthint
wf_id_listtruestringnullA list of wf_id's
ml_idfalsenumeric1The ID of the language (used for description).
getCVfalsebooleanfalseBoolean indicating if the custom values should be fetched
return typestruct
getFileValuesFromDirectory
Public Function getFileValuesFromDirectory
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
arguments
labelnamerequiredtypedefaulthint
wfd_id_listtruenumericnull
ml_idfalsenumeric1
sort_orderfalsestringname_asc
wfp_idfalsenumeric-1
wf_idfalsenumeric-1
return typeany
getFileValuesIntern
Public Function getFileValuesIntern
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Get all the values of a list of files
arguments
labelnamerequiredtypedefaulthint
wf_id_listtruestringnullA list of wf_id's
ml_idfalsenumeric1The ID of the language (used for description).
return typestruct
getMainDisc
Public Function getMainDisc
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Returns the main disc of a company.
arguments
labelnamerequiredtypedefaulthint
wc_idtruenumericnullThe id of the company
return typestruct
getNearestDisc
Public Function getNearestDisc
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Returns the nearest share above a directory, it can the directory itselfs
arguments
labelnamerequiredtypedefaulthint
wfd_idtruenumericnullThe directory to check
return typestruct
getOSDirectories
Public Function getOSDirectories
source: /usr/local/tomcat/webapps/ROOT/Components/FS/Util.cfc
Retrieves all directories below a given path.
arguments
labelnamerequiredtypedefaulthint
pathtruestringnullThe path to examine.
recursivefalsebooleanfalseRecurse all subdirectories?
includeGivenfalsebooleanfalseInclude the given directory?
return typestruct
getPathToFile
Public Function getPathToFile
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
arguments
labelnamerequiredtypedefaulthint
wf_idfalsenumericnull
return typestring
getPersonalDisc
Public Function getPersonalDisc
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Returns the personal disc of a user.
arguments
labelnamerequiredtypedefaulthint
wu_idtruenumericnullThe id of the user
return typestruct
getProcessFileForFile
Public Function getProcessFileForFile
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Get's the file's process file for the given process
arguments
labelnamerequiredtypedefaulthint
wf_idtruestringnullThe id's of the files
pidtruenumericnullThe process id
return typestruct
getProcessFilesForFiles
Public Function getProcessFilesForFiles
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Get's the file id's of all the process files in a directory
arguments
labelnamerequiredtypedefaulthint
wf_id_listtruestringnullThe id's of the files
pidtruenumericnullThe process id
return typestruct
getQuery
Public Function getQuery
source: /usr/local/tomcat/webapps/ROOT/Components/Result/ReturnStruct.cfc
Allows you to create a query in a cfscript.
arguments
labelnamerequiredtypedefaulthint
bodytruestringnullThe body of the query
return typequery
getQueryRecords
Public Function getQueryRecords
source: /usr/local/tomcat/webapps/ROOT/Components/Result/ReturnStruct.cfc
Returns the specified amount of records.
arguments
labelnamerequiredtypedefaulthint
querytruequerynullThe query.
recordCounttruenumericnullThe amount of records to return.
return typequery
getShares
Public Function getShares
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Returns all shares from above a company and from the company itselfs.
arguments
labelnamerequiredtypedefaulthint
wc_idtruenumericnullThe id of the company
return typestruct
getSharesAsDisc
Public Function getSharesAsDisc
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Returns all shares from above a company and from the company itselfs.
arguments
labelnamerequiredtypedefaulthint
wc_idtruenumericnullThe id of the company
return typestruct
getShareValues
Public Function getShareValues
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Gets all values from a share.
arguments
labelnamerequiredtypedefaulthint
wfds_idtruestringnullThe id of the share
return typestruct
getShareValuesFromDirectories
Public Function getShareValuesFromDirectories
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Gets all values from a share.
arguments
labelnamerequiredtypedefaulthint
wfd_idtruestringnullThe id of the directory
return typestruct
getSubDirectories
Public Function getSubDirectories
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Returns the directories direct below a given directory
arguments
labelnamerequiredtypedefaulthint
wfd_idtruenumericnullThe directory id of the directory from which you want to get the sub directories.
orderbyfalseany
orderfalseany
return typestruct
getSubDirectoriesWithValues
Public Function getSubDirectoriesWithValues
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
arguments
labelnamerequiredtypedefaulthint
wfd_idtruestringnullThe list of folders to get the properties of
dir_img_idfalseany-1The id of the directory image for in the tree.
verity_img_idfalseany-1The id of the verity image for in the tree.
wu_idfalsenumeric-1Can return the a_read property.
orderbyfalseany
orderfalseany
return typestruct
getSumSizeFiles
Public Function getSumSizeFiles
source: /usr/local/tomcat/webapps/ROOT/Components/FS/Util.cfc
Sums all the sizes of the files in multiple directories
arguments
labelnamerequiredtypedefaulthint
wfd_idtruestringnullThe id list of the directories
return typestruct
getToNearestDisc
Public Function getToNearestDisc
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Returns the nearest share above a directory, it can the directory itselfs
arguments
labelnamerequiredtypedefaulthint
wfd_idtruenumericnullThe directory to check
get_disctruebooleannullReturns the share also?
return typestruct
getTotalSpace
Public Function getTotalSpace
source: /usr/local/tomcat/webapps/ROOT/Components/FS/Util.cfc
Returns the total space in the FS.
arguments
labelnamerequiredtypedefaulthint
return typestruct
getUsedSpace
Public Function getUsedSpace
source: /usr/local/tomcat/webapps/ROOT/Components/FS/Util.cfc
Returns the used space in the FS.
arguments
labelnamerequiredtypedefaulthint
return typestruct
getUsedSpaceForCompany
Public Function getUsedSpaceForCompany
source: /usr/local/tomcat/webapps/ROOT/Components/FS/Util.cfc
Returns the used space for a company in the FS.
arguments
labelnamerequiredtypedefaulthint
wc_idtruestringnullThe ID(s) of the company.
return typestruct
getUserSessionDiscs
Public Function getUserSessionDiscs
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Returns all the discs of the current session user. It includes the companies main disc, the users personal disk and the shared discs.
arguments
labelnamerequiredtypedefaulthint
return typestruct
getVerityCollections
Public Function getVerityCollections
source: /usr/local/tomcat/webapps/ROOT/Components/FS/DocuEngine.cfc
Returns all verity collections of a company.
arguments
labelnamerequiredtypedefaulthint
wc_idtruenumericnullThe ID of the company.
return typestruct
getVerityCollectionsFromDirectories
Public Function getVerityCollectionsFromDirectories
source: /usr/local/tomcat/webapps/ROOT/Components/FS/DocuEngine.cfc
Returns all verity collections from a list of directories.
arguments
labelnamerequiredtypedefaulthint
wfd_id_listtruestringnullThe ID(s) of the directory/directories.
return typestruct
getVerityCollectionValues
Public Function getVerityCollectionValues
source: /usr/local/tomcat/webapps/ROOT/Components/FS/DocuEngine.cfc
Returns the values of a verity collection.
arguments
labelnamerequiredtypedefaulthint
wfv_id_listtruestringnullThe ID(s) of the verity collection(s).
return typestruct
getVerityCollectionValuesByName
Public Function getVerityCollectionValuesByName
source: /usr/local/tomcat/webapps/ROOT/Components/FS/DocuEngine.cfc
Returns the values of a verity collection by name.
arguments
labelnamerequiredtypedefaulthint
wfv_nametruestringnullThe name of the collection.
return typestruct
grep
Public Function grep
source: /usr/local/tomcat/webapps/ROOT/Components/Result/ReturnStruct.cfc
finds a struct with given property value in array of structs
arguments
labelnamerequiredtypedefaulthint
arrtrueanynull
proptrueanynull
valuetrueanynull
return typeany
insertFileIntoCollection
Public Function insertFileIntoCollection
source: /usr/local/tomcat/webapps/ROOT/Components/FS/DocuEngine.cfc
Inserts a file into a verity collection, and updates the collection.
arguments
labelnamerequiredtypedefaulthint
wf_idtruenumericnullThe ID of the file.
wfv_idtruenumericnullThe ID of the collection.
return typestruct
isExistingCollection
Public Function isExistingCollection
source: /usr/local/tomcat/webapps/ROOT/Components/FS/DocuEngine.cfc
Checks if there is already a collection with the specified name on the WIS installation.
arguments
labelnamerequiredtypedefaulthint
wfv_nametruestringnullThe name of the collection.
wfv_idfalsenumericnullThe ID of the collection.
return typeboolean
isExistingDirectory
Public Function isExistingDirectory
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Checks if a directory already exists in a directory.
arguments
labelnamerequiredtypedefaulthint
wfd_idtruenumericnullThe id of the directory where to search in
wfd_nametruestringnullThe complete name of the directory.
return typeboolean
isExistingFile
Public Function isExistingFile
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Checks if a file already exists in a directory.
arguments
labelnamerequiredtypedefaulthint
wfd_idtruenumericnullThe id of the directory where to search in
wf_nametruestringnullThe complete name of the file.
return typeboolean
isExistingFileID
Public Function isExistingFileID
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Checks if a file exists.
arguments
labelnamerequiredtypedefaulthint
wf_idtruenumericnullThe id of the file.
return typeboolean
isSharedDirectory
Public Function isSharedDirectory
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
arguments
labelnamerequiredtypedefaulthint
wfd_idtruenumericnullThe directory to check
return typeboolean
joinLists
Public Function joinLists
source: /usr/local/tomcat/webapps/ROOT/Components/Result/ReturnStruct.cfc
Joins two lists and filters the duplicates.
arguments
labelnamerequiredtypedefaulthint
list1truestringnullThe first (filtered) list.
list2truestringnullThe second (filtered) list.
return typestring
logDebug
Public Function logDebug
source: /usr/local/tomcat/webapps/ROOT/Components/Result/ReturnStruct.cfc
arguments
labelnamerequiredtypedefaulthint
messagefalseanynull
exceptionfalseanynullThe optional cfcatch structure.
return typeany
logError
Public Function logError
source: /usr/local/tomcat/webapps/ROOT/Components/Result/ReturnStruct.cfc
arguments
labelnamerequiredtypedefaulthint
messagefalseanynull
exceptionfalseanynullThe optional cfcatch structure.
return typeany
logInfo
Public Function logInfo
source: /usr/local/tomcat/webapps/ROOT/Components/Result/ReturnStruct.cfc
arguments
labelnamerequiredtypedefaulthint
messagefalseanynull
exceptionfalseanynullThe optional cfcatch structure.
return typeany
logWarn
Public Function logWarn
source: /usr/local/tomcat/webapps/ROOT/Components/Result/ReturnStruct.cfc
arguments
labelnamerequiredtypedefaulthint
messagefalseanynull
exceptionfalseanynullThe optional cfcatch structure.
return typeany
makeUniqueString
Public Function makeUniqueString
source: /usr/local/tomcat/webapps/ROOT/Components/Result/ReturnStruct.cfc
makes a string unique
arguments
labelnamerequiredtypedefaulthint
strtruestringnull
arrtruearraynull
countfalsenumeric0
return typestring
mayAddVerityCollection
Public Function mayAddVerityCollection
source: /usr/local/tomcat/webapps/ROOT/Components/FS/DocuEngine.cfc
Checks if a user is allowed to add a verity collection.
arguments
labelnamerequiredtypedefaulthint
wc_idtruenumericnullThe ID of the company.
return typeboolean
mayEditVerityCollection
Public Function mayEditVerityCollection
source: /usr/local/tomcat/webapps/ROOT/Components/FS/DocuEngine.cfc
Checks if a user is allowed to edit a verity collection.
arguments
labelnamerequiredtypedefaulthint
wfv_idtruenumericnullThe ID of the collection.
return typeboolean
moveObjects
Public Function moveObjects
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Moves directories and files to another directory
arguments
labelnamerequiredtypedefaulthint
wfd_id_listtruestringnullA list of directories to move.
wf_id_listtruestringnullA list of files to move.
wfd_idtruenumericnullThe directory to move the objects in.
return typestruct
parseXMLFile
Public Function parseXMLFile
source: /usr/local/tomcat/webapps/ROOT/Components/Result/ReturnStruct.cfc
arguments
labelnamerequiredtypedefaulthint
filePathfalsestringnull
return typeany
placeImage
Public Function placeImage
source: /usr/local/tomcat/webapps/ROOT/Components/Result/ReturnStruct.cfc
arguments
labelnamerequiredtypedefaulthint
return typeany
queryToArray
Public Function queryToArray
source: /usr/local/tomcat/webapps/ROOT/Components/Result/ReturnStruct.cfc
Returns an array containing the items from the query.
arguments
labelnamerequiredtypedefaulthint
inputQuerytruequerynullThe query to convert to an array.
dataColumntruestringnullThe column containing the data to return.
return typearray
QueryToCSV
Public Function QueryToCSV
source: /usr/local/tomcat/webapps/ROOT/Components/Result/ReturnStruct.cfc
take a query and convert it to a comma separated value string.
arguments
labelnamerequiredtypedefaulthint
Querytruequerynullthe query being converted to CSV.
Fieldstruestringnullthe list of query fields to be used when creating the CSV value.
CreateHeaderRowfalsebooleantrueflag whether or not to create a row of header values.
Delimiterfalsestring,the field delimiter in the CSV value.
return typestring
queryToList
Public Function queryToList
source: /usr/local/tomcat/webapps/ROOT/Components/Result/ReturnStruct.cfc
Returns a list containing the items from the query.
arguments
labelnamerequiredtypedefaulthint
inputQuerytruequerynullThe query to convert to a list.
dataColumnfalsestringnullThe optional column containing the data. If not specified, the first column is used.
return typestring
QueryToStruct
Public Function QueryToStruct
source: /usr/local/tomcat/webapps/ROOT/Components/Result/ReturnStruct.cfc
Converts an entire query or the given record to a struct. This might return a structure (single record) or an array of structures.
arguments
labelnamerequiredtypedefaulthint
Querytruequerynull
Rowfalsenumeric0which row? 0 = all
ColumnListfalsestringAllwhich columns do you want to convert?
DateToISO8601falsebooleanfalseConverts dates to ISO-8601 string
return typeany
readFile
Public Function readFile
source: /usr/local/tomcat/webapps/ROOT/Components/Result/ReturnStruct.cfc
arguments
labelnamerequiredtypedefaulthint
filePathfalsestringnull
return typestring
removeFileFromCollection
Public Function removeFileFromCollection
source: /usr/local/tomcat/webapps/ROOT/Components/FS/DocuEngine.cfc
arguments
labelnamerequiredtypedefaulthint
wf_idtruenumericnullThe ID of the file.
wfv_idfalsenumericnullThe ID of the collection.
return typeany
removeFileFromCollections
Public Function removeFileFromCollections
source: /usr/local/tomcat/webapps/ROOT/Components/FS/DocuEngine.cfc
arguments
labelnamerequiredtypedefaulthint
wf_idtruenumericnullThe ID of the file.
return typeany
removeOSFile
Public Function removeOSFile
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Removes a file from the OS
arguments
labelnamerequiredtypedefaulthint
fileNametruestringnullThe file to remove
return typestruct
removeTempFilesForFile
Public Function removeTempFilesForFile
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
removes all temp-files from temp-images folder that are applied for the given file
arguments
labelnamerequiredtypedefaulthint
wf_idtruenumericnull
return typeany
renameDirectory
Public Function renameDirectory
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Renames a directory
arguments
labelnamerequiredtypedefaulthint
wfd_idtruenumericnullThe id of the directory
wfd_nametruestringnullThe new name of the directory
return typestruct
renameFile
Public Function renameFile
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Renames a file.
arguments
labelnamerequiredtypedefaulthint
wf_idtruenumericnullThe ID of the file.
wf_nametruestringnullThe new name of the file.
return typestruct
ReplaceListNoCase
Public Function ReplaceListNoCase
source: /usr/local/tomcat/webapps/ROOT/Components/Result/ReturnStruct.cfc
arguments
labelnamerequiredtypedefaulthint
inputtruestringnullThe string where to replace in.
list1truestringnullThe list of the strings to be replaced
list2truestringnullThe list of the strings which are the new items.
delimiterfalsestring,The delimiter of the lists.
return typestring
returnError
Public Function returnError
source: /usr/local/tomcat/webapps/ROOT/Components/Result/ReturnStruct.cfc
Returns a structure containing detailed error info. It also logs the error in the CF-admin.
arguments
labelnamerequiredtypedefaulthint
me_idtruenumericnullThe code for this error, it will be used to get the errormessage.
errorStructurefalseanynullThe optional cfcatch structure.
dumpVariablefalseanynullAn optional variable to dump.
return typestruct
returnQueryFromString
Public Function returnQueryFromString
source: /usr/local/tomcat/webapps/ROOT/Components/Result/ReturnStruct.cfc
Generates a query with columns and multiple records.
arguments
labelnamerequiredtypedefaulthint
columnNametruestringnullThe columnname, this could be a list.
valuetruestringnullThe value. This could be a list
valueSeparatorfalsestring,A separator for the value list, default is ','. This separates the columns.
recordSeparatorfalsestring;A separator for the value list, default is ';'. This separates the records
return typequery
returnResult
Public Function returnResult
source: /usr/local/tomcat/webapps/ROOT/Components/Result/ReturnStruct.cfc
Returns a structure containing status info and a resultquery (optional).
arguments
labelnamerequiredtypedefaulthint
resultQueryfalsequerynullThe optional query containing the result.
return typestruct
returnSecurity
Public Function returnSecurity
source: /usr/local/tomcat/webapps/ROOT/Components/Result/ReturnStruct.cfc
Returns a security breach.
arguments
labelnamerequiredtypedefaulthint
return typestruct
searchFile
Public Function searchFile
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
search files by filename or wf_id
arguments
labelnamerequiredtypedefaulthint
searchStringtrueanynull
wu_idfalseany-1
maxRowsfalseany
ml_idfalseany1
wc_idfalseany-1
return typeany
setDescription
Public Function setDescription
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Sets the description of a file.
arguments
labelnamerequiredtypedefaulthint
wf_idtruenumericnullThe ID of the file.
ml_idtruenumericnullThe ID of the language.
wf_descriptiontruestringnullThe new description of the file.
return typestruct
stripFileName
Public Function stripFileName
source: /usr/local/tomcat/webapps/ROOT/Components/FS/Util.cfc
Returns a valid file path. It remove double slashes...
arguments
labelnamerequiredtypedefaulthint
fileNametruestringnullThe file name and path
return typestruct
textToNumber
Public Function textToNumber
source: /usr/local/tomcat/webapps/ROOT/Components/Result/ReturnStruct.cfc
Returns a number for the english word
arguments
labelnamerequiredtypedefaulthint
texttrueanynull
return typenumeric
trueFalseFormat
Public Function trueFalseFormat
source: /usr/local/tomcat/webapps/ROOT/Components/Result/ReturnStruct.cfc
convert cf string to boolean
arguments
labelnamerequiredtypedefaulthint
exptrueanynull
return typeany
uniqueListAppend
Public Function uniqueListAppend
source: /usr/local/tomcat/webapps/ROOT/Components/Result/ReturnStruct.cfc
Adds an item to the list if that list does not contain it already.
arguments
labelnamerequiredtypedefaulthint
listtruestringnullThe list.
itemstruestringnullThe item(s) to add.
delimiterfalsestring,The delimiter (optional).
return typestring
unZipFile
Public Function unZipFile
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Unzips a zip file, and places the whole content in the WIS FS.
arguments
labelnamerequiredtypedefaulthint
wf_idtruenumericnullThe ID of the zip file te be extracted.
wfd_idtruenumericnullThe ID of the WIS directory where the archive has to be extracted.
return typestruct
updateFileInCollections
Public Function updateFileInCollections
source: /usr/local/tomcat/webapps/ROOT/Components/FS/DocuEngine.cfc
Inserts a file into all relevant verity collections.
arguments
labelnamerequiredtypedefaulthint
wf_idtruenumericnullThe ID of the file.
return typestruct
updateFilesInCollection
Public Function updateFilesInCollection
source: /usr/local/tomcat/webapps/ROOT/Components/FS/DocuEngine.cfc
Inserts all files below a directory into a verity collection.
arguments
labelnamerequiredtypedefaulthint
wfv_idtruenumericnullThe ID of the collection.
return typestruct
updateVerityCollection
Public Function updateVerityCollection
source: /usr/local/tomcat/webapps/ROOT/Components/FS/DocuEngine.cfc
Updates a verity collection.
arguments
labelnamerequiredtypedefaulthint
wfv_idtruenumericnullThe ID of the collection.
wfv_nametruestringnullThe name of the collection.
return typestruct
uploadFile
Public Function uploadFile
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Puts an uploaded file into the db.
arguments
labelnamerequiredtypedefaulthint
wfd_idtruenumericnullThe id of the directory where to put the file in
cffiletruestructnullThe complete path to the file.
overwritetruebooleannullIf there exists already a file with the same name, overwrite?
deleteAfterUploadfalsebooleantrue
return typestruct
package
deleteFilePrivate
Package Function deleteFilePrivate
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Removes a file doesn't Check for rights
arguments
labelnamerequiredtypedefaulthint
wf_idtruenumericnullThe id of the file
return typestruct
insertDBFile
Package Function insertDBFile
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Inserts a file into the WIS FS. Take note, it does only insert it into the DB and returns the wf_id.
arguments
labelnamerequiredtypedefaulthint
wfd_idtruenumericnullThe id of the directory where to insert the file.
wf_nametruestringnullThe name of the file.
wf_sizetruenumericnullThe size of the file in bytes
wf_system_idtruenumericnullThe pointer to another file, let this variable -1 if the file isn't a pointer.
wf_creator_idtruenumericnullThe creator of the file
wf_last_modifier_idtruenumericnullThe last modifier of the file
wf_createdtruedatenullThe data id of the data to store the creation
wf_last_modifiedtruedatenullThe data id of the data to store the last modification
mft_idtruenumericnullThe id of the file type
return typestruct
private
changeLastChangeDirectory
Private Function changeLastChangeDirectory
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Changes the last changed of a directory in now and the session user
arguments
labelnamerequiredtypedefaulthint
wfd_idtruenumericnullThe id of the directory
return typestruct
copyFileFromOS
Private Function copyFileFromOS
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Copies a given file from the OS to the WIS FS for a give wf_id
arguments
labelnamerequiredtypedefaulthint
wf_idtruenumericnullThe id of the WIS FS
fileNametruestringnullThe file to copy, this must include the path
removetruebooleannullRemove the original file after inserting?
return typestruct
createDefaultRights
Private Function createDefaultRights
source: /usr/local/tomcat/webapps/ROOT/Components/FS/ReadAuthorization.cfc
Creates a default query to return when a directory or so on doesn't exists.
arguments
labelnamerequiredtypedefaulthint
defaultfalsenumeric1The default value for each action to return..
return typestruct
createFileCustomFields
Private Function createFileCustomFields
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
arguments
labelnamerequiredtypedefaulthint
wf_idtruenumericnullThe id of the file to create the custom fields for .
return typeany
deleteDirectoryPrivate
Private Function deleteDirectoryPrivate
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Removes a directory with content doesn't check for rights
arguments
labelnamerequiredtypedefaulthint
wfd_idtruenumericnullThe id of the directory
return typestruct
getUserDiscs
Private Function getUserDiscs
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Returns all the discs of a user. It includes the companies main disc, the users personal disk and the shared discs.
arguments
labelnamerequiredtypedefaulthint
wu_idtruenumericnullThe id of the user.
return typestruct
getVerityCollectionName
Private Function getVerityCollectionName
source: /usr/local/tomcat/webapps/ROOT/Components/FS/DocuEngine.cfc
Returns the CF-name of the verity collection.
arguments
labelnamerequiredtypedefaulthint
wfv_idtruenumericnullThe ID of the collection.
return typestring
insertDBDir
Private Function insertDBDir
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
This function inserts a directory in the FS.
arguments
labelnamerequiredtypedefaulthint
wfd_parent_idtruenumericnullThe id of the WIS directory where to insert in
wfd_nametruestringnullThe name of the new directory
wfd_owner_idtruenumericnullThe owner of the directory
wfd_creator_idtruenumericnullThe creator of the directory
wfd_last_modifier_idtruenumericnullThe last modifiers user id
wfd_createdtruedatenullThe data id when created
wfd_last_modifiedtruedatenullThe data id when last modified
wfd_personaltruenumericnullPersonal yes/no, use 1/0
wc_idtruenumericnullThe id of the owners company
return typestruct
insertDirFromOS
Private Function insertDirFromOS
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Removes a directory and all its sub directories and places they in the WIS FS. This function believes you have the correct rights, therefore its a private function.
arguments
labelnamerequiredtypedefaulthint
wfd_idtruenumericnullThe id of the WIS directory where to insert the OS dir
dirtruestringnullThe directory from the OS, specify the full path.
wc_idtruenumericnullThe id of the company from the dir.
return typestruct
insertFileFromOS
Private Function insertFileFromOS
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Inserts a file into the OS. This is a private function because it does not check rights.
arguments
labelnamerequiredtypedefaulthint
wfd_idtruenumericnullThe directory where to insert
filePathtruestringnullThe file to insert, this must include the path
fileNametruestringnullThe file to insert, this must include the path
removetruebooleannullRemove the original file after inserting?
return typestruct
removeOSDir
Private Function removeOSDir
source: /usr/local/tomcat/webapps/ROOT/Components/FS/FileIO.cfc
Removes a directory and all its sub directories
arguments
labelnamerequiredtypedefaulthint
dirtruestringnullThe directory
return typestruct