LPS-44098 Use FileEntryDisplayContext from DM and image gallery file entry actions
LPS-44098 Rename FileEntryDisplayContext(Helper) to DLActionsDisplayContext(Helper) because the class just models the state of the available actions in DM, not the state of a FileEntry. In fact, several variables are tested (fileEntry, fileVersion, the configuration of the portal) to determine if some buttons can be shown, or if they are enabled/disabled. In the future, this class may migrate and have more functionality (or not) but until them I suggest calling it by what it does right now.
LPS-44098 Remove unthrown exceptions
LPS-44098 Update the variable name
LPS-44098 Simplify logic
LPS-44098 Format source
LPS-44098 Make logic easier to understand and reduce the probability of making errors
LPS-44098 Sort. Also, it is OK to use c:if, instead of c:choose in this case, even though there is the possibility of having 2 deleteURL's that will clobber each other. We're assuming that the logic in dlActionsDisplayContext is good. We should not return true for both moving a file to trash and deleting a file (they should be mutually exclusive).