Package sk.iway.iwcm.io
Class FileHistoryDB
FileHistoryDB.java - praca s historiou suborov
tiket 13373
DAO class for manipulating with FileHistoryBean
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindByChangeDate(Date changeDate) findByFileUrl(String fileUrl) findByUserId(int userId) findFirstByChangeDate(Date changeDate) findFirstByFileUrl(String fileUrl) findFirstByUserId(int userId) static IwcmFilegetFileHistoryCurrentFile(String fileUrl, Integer domainId, Identity user) Resolves the current file to the canonical path that was checked by the folder ACL.static IwcmFilegetFileHistorySourceFile(String fileUrl, String historyPath, long historyId, Integer domainId, Identity user) Resolves the stored history file below the configured history root after all access checks.getHistoryByPath(String virtualPath) static booleanisFileHistoryAccessible(String fileUrl, Integer domainId, Identity user) Checks access to file-history metadata in the current domain.static booleanisFileHistoryContentAccessible(String fileUrl, String historyPath, long historyId, Integer domainId, Identity user) Checks access to the physical content of one file-history record.static booleansendFileFromHistory(String path, int historyId, jakarta.servlet.http.HttpServletResponse response) Deprecated.static booleansendFileFromHistory(String path, int historyId, Identity user, jakarta.servlet.http.HttpServletResponse response) Sends a stored file version after checking its domain and file-browser folder permissions.Methods inherited from class sk.iway.iwcm.database.JpaDB
and, delete, deleteByIds, filterBetween, filterBetween, filterBetween, filterEquals, filterEquals, filterEquals, filterIn, filterNotIn, filterNotNull, filterNull, filterSubstring, filterSubstringIgnoringCase, find, findBy, findBy, findByProperties, findFirst, findFirstByProperties, getAll, getById, getById, getCount, getResultList, getValues, of, or, save
-
Constructor Details
-
FileHistoryDB
public FileHistoryDB()
-
-
Method Details
-
sendFileFromHistory
@Deprecated public static boolean sendFileFromHistory(String path, int historyId, jakarta.servlet.http.HttpServletResponse response) Deprecated.Retained for binary compatibility. In request context it resolves the authenticated user and delegates to the secured overload; without an authenticated administrator it fails closed. -
sendFileFromHistory
public static boolean sendFileFromHistory(String path, int historyId, Identity user, jakarta.servlet.http.HttpServletResponse response) Sends a stored file version after checking its domain and file-browser folder permissions. -
isFileHistoryAccessible
Checks access to file-history metadata in the current domain. -
getFileHistoryCurrentFile
Resolves the current file to the canonical path that was checked by the folder ACL. -
isFileHistoryContentAccessible
public static boolean isFileHistoryContentAccessible(String fileUrl, String historyPath, long historyId, Integer domainId, Identity user) Checks access to the physical content of one file-history record. -
getFileHistorySourceFile
public static IwcmFile getFileHistorySourceFile(String fileUrl, String historyPath, long historyId, Integer domainId, Identity user) Resolves the stored history file below the configured history root after all access checks. -
findByFileUrl
-
findFirstByFileUrl
-
findByChangeDate
-
findFirstByChangeDate
-
findByUserId
-
findFirstByUserId
-
getHistoryByPath
-
sendFileFromHistory(String, int, Identity, HttpServletResponse)