Package lumis.portal.file
Class FileMonitorUtil
- java.lang.Object
-
- lumis.portal.file.FileMonitorUtil
-
public class FileMonitorUtil extends java.lang.Object
Contains file monitoring constants and utility methods.- Since:
- 4.1.0
- Version:
- $Revision$ $Date$
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
EVENT_FILE_DOWNLOAD
Key for file download event.static java.lang.String
EVENT_FILE_UPLOAD
Key for file upload event.static java.lang.String
FILE_OBJECT_TYPE
Value used inMonitorFields.Object.TYPE
field when object is a file.static java.lang.String
STRING_RESOURCE_PATH
The string resource path using for localizing file monitoring strings.
-
Constructor Summary
Constructors Constructor Description FileMonitorUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IMonitor
getFileDownloadMonitor(FileConfig fileConfig, ITransaction transaction)
Returns a monitor for the "lumis.portal.monitor.ev.file.download" event.static IMonitor
getFileUploadMonitor(FileConfig fileConfig, ITransaction transaction)
Returns a monitor for the "lumis.portal.monitor.ev.file.upload" event.
-
-
-
Field Detail
-
STRING_RESOURCE_PATH
public static final java.lang.String STRING_RESOURCE_PATH
The string resource path using for localizing file monitoring strings.- Since:
- 4.1.0
- See Also:
- Constant Field Values
-
EVENT_FILE_DOWNLOAD
public static final java.lang.String EVENT_FILE_DOWNLOAD
Key for file download event.- Since:
- 4.1.0
- See Also:
- Constant Field Values
-
EVENT_FILE_UPLOAD
public static final java.lang.String EVENT_FILE_UPLOAD
Key for file upload event.- Since:
- 4.1.0
- See Also:
- Constant Field Values
-
FILE_OBJECT_TYPE
public static final java.lang.String FILE_OBJECT_TYPE
Value used inMonitorFields.Object.TYPE
field when object is a file.- Since:
- 11.0.0
- See Also:
- Constant Field Values
-
-
Method Detail
-
getFileDownloadMonitor
public static IMonitor getFileDownloadMonitor(FileConfig fileConfig, ITransaction transaction) throws PortalException
Returns a monitor for the "lumis.portal.monitor.ev.file.download" event.- Parameters:
fileConfig
- the FileConfig that is being downloaded.transaction
- the transaction for persistence access.- Returns:
- the monitor.
- Throws:
PortalException
- Since:
- 4.1.0
-
getFileUploadMonitor
public static IMonitor getFileUploadMonitor(FileConfig fileConfig, ITransaction transaction) throws PortalException
Returns a monitor for the "lumis.portal.monitor.ev.file.upload" event.- Parameters:
fileConfig
- the FileConfig that is being uploaded.transaction
- the transaction for persistence access.- Returns:
- the monitor.
- Throws:
PortalException
- Since:
- 4.1.0
-
-