public class FileMonitorUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
EVENT_FILE_DOWNLOAD
Key for file download event.
|
static String |
EVENT_FILE_UPLOAD
Key for file upload event.
|
static String |
FILE_OBJECT_TYPE
Value used in
MonitorFields.Object#TYPE field when object is a file. |
static String |
STRING_RESOURCE_PATH
The string resource path using for localizing file monitoring strings.
|
Constructor and Description |
---|
FileMonitorUtil() |
Modifier and Type | Method and 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.
|
public static final String STRING_RESOURCE_PATH
public static final String EVENT_FILE_DOWNLOAD
public static final String EVENT_FILE_UPLOAD
public static final String FILE_OBJECT_TYPE
MonitorFields.Object#TYPE
field when object is a file.public static IMonitor getFileDownloadMonitor(FileConfig fileConfig, ITransaction transaction) throws PortalException
fileConfig
- the FileConfig that is being downloaded.transaction
- the transaction for persistence access.PortalException
public static IMonitor getFileUploadMonitor(FileConfig fileConfig, ITransaction transaction) throws PortalException
fileConfig
- the FileConfig that is being uploaded.transaction
- the transaction for persistence access.PortalException
LumisXP 12.5.0.200928 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.