public class FileMonitorUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
AGGREGATION_TYPE_FILE_ID
Key for file id aggregation type.
|
static String |
AGGREGATION_TYPE_FILE_NAME
Key for file name aggregation type.
|
static String |
EVENT_FILE_DOWNLOAD
Key for file download event.
|
static String |
EVENT_FILE_UPLOAD
Key for file upload event.
|
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.file.ev.download" event.
|
static IMonitor |
getFileUploadMonitor(FileConfig fileConfig,
ITransaction transaction)
Returns a monitor for the "lumis.portal.file.ev.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 AGGREGATION_TYPE_FILE_ID
public static final String AGGREGATION_TYPE_FILE_NAME
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
Lumisportal 7.1.1.140331 - Copyright © 2006–2014 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.