The MJFileEntity representing the file to be checked.
boolean - True if the file can be deleted, false otherwise.
Deletes a file using the provided MJFileEntity.
The MJFileEntity representing the file to be deleted.
Promise
Downloads a file using the provided MJFileEntity.
The MJFileEntity representing the file to be downloaded.
Promise
Handles the file upload event, sending a notification in case of failure and otherwise adding the newly uploaded files to the files currently displayed.
The file upload event.
A callback method that is invoked immediately after the default change detector has checked data-bound properties if at least one has changed, and before the view and content children are checked.
The changed properties.
A callback method that is invoked immediately after the default change detector has checked the directive's data-bound properties for the first time, and before any of the view or content children have been checked. It is invoked only once when the directive is instantiated.
Refreshes the data by running a view and loading the files.
Resets the edited file.
This method reverts any changes made to the edited file by calling the Revert method of the MJFileEntity class. It then sets the editFile property to undefined, indicating that there is no longer an edited file.
void
Saves the edited file.
This method saves the changes made to the edited file. It first checks if there is an edited file available. If so, it sets the isLoading property to true to indicate that the save operation is in progress. Then, it calls the Save method of the edited file to save the changes. If the save operation is successful, it creates a success notification using the sharedService.CreateSimpleNotification method. The notification message includes the ID and name of the saved file. Finally, it sets the edited file to undefined and sets the isLoading property to false to indicate that the save operation is complete.
Promise
Determines whether a file can be deleted based on its status and creation time.