-
Notifications
You must be signed in to change notification settings - Fork 1
5.4 API Documents
Amos Wong edited this page Apr 17, 2017
·
2 revisions
Functions | Parameters | Details | Returns |
---|---|---|---|
initializeDatabase |
Optional String newDatabaseName |
Initialize indexedDB with default database name and fill up table only at first instance. | @return {Promise} |
Functions | Parameters | Details | Returns |
---|---|---|---|
loadAllFilesAndFolders | none |
retrieve all files and folders in database | @return {Promise}, @return files],[folders |
partialSearch |
String searchString |
searching files and folders with partial phrase | @return {Promise}, @return files],[folders |
getList |
number folderID |
get all files and folders inside this folder | @return {Promise}, @return files],[folders |
loadFile |
number fileID |
retrieve md string in file | @return {Promise}, @return String |
Functions | Parameters | Details | Returns |
---|---|---|---|
createFile |
number organizationID, String filePath, number folderID |
create a new file | @return {Promise} |
createFolder |
number organizationID, String folderPath, number currentFolderID |
creates a new folder in database | @return {Promise} |
Functions | Parameters | Details | Returns |
---|---|---|---|
saveFile |
number fileId, String fileString |
save md string to file | @return {Promise} |
moveFile |
number fileID, String newPath |
relocate a file to a new location | @return {Promise} |
copyFile |
number fileID |
duplicate a file | @return {Promise} |
renameFile |
number fileID, String newFileName |
rename a file | @return {Promise} |
renameFolder |
number folderID, String newFolderName |
rename a folder and all its children | @return {Promise} |
deleteFile |
number fileID |
removes a file from database | @return {Promise} |
deleteFolder |
number folderID |
removes a folder and cascade delete | @return {Promise} |
Functions | Parameters | Details | Returns |
---|---|---|---|
exceptions | none |
exceptions to check if called | @return exceptions |
Functions | Parameters | Details | Returns |
---|---|---|---|
start | none |
Initialize Filemanager | @return {Promise} |
Functions | Parameters | Details | Returns |
---|---|---|---|
getFileByID |
String fileID |
Given an ID, return the File | @return {File} |
getFolderByID |
String folderID |
Given an ID, return the Folder | @return {Folder} |
Functions | Parameters | Details | Returns |
---|---|---|---|
searchAll |
String searchString |
Return a Folder containing files and folders matching the search string | @return {Folder} |
searchFileOnly |
String searchString |
Return a Folder containing files matching the search string | @return {Folder} |
searchFolderOnly |
String searchString |
Return a Folder containing folders matching the search string | @return {Folder} |
Functions | Parameters | Details | Returns |
---|---|---|---|
createHistory |
{Folder} folder |
Return a History with the current folder initialized as the given folder | @return {History} |
🚧
by Sashimi 🐟
- Introduction
- Project Work Log
- Software Requirements 3.1 Functional Requirements
- Design 4.1 Architecture Diagram
- Developer Guide 5.1 Getting started
- Evaluation Report 6.1 Usability Evaluation
- Misc 7.1 Dog Fooding Process
3.2 Non functional Requirements
3.3 Abuser Stories
3.4 Glossary
4.2 Entity Relationship Diagram
4.3 UI Design
5.2 Resources
5.3 Testing tools
5.4 API Documents
6.2 Performance Evaluation
6.3 Security Evaluation