lumis.portal.file
Class FileMonitorUtil

Package class diagram package FileMonitorUtil
java.lang.Object
  extended by lumis.portal.file.FileMonitorUtil

public class FileMonitorUtil
extends Object

Contains file monitoring constants and utility methods.

Since:
4.1.0

Field Summary
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 Summary
FileMonitorUtil()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STRING_RESOURCE_PATH

public static final 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 String EVENT_FILE_DOWNLOAD
Key for file download event.

Since:
4.1.0
See Also:
Constant Field Values

EVENT_FILE_UPLOAD

public static final String EVENT_FILE_UPLOAD
Key for file upload event.

Since:
4.1.0
See Also:
Constant Field Values

AGGREGATION_TYPE_FILE_ID

public static final String AGGREGATION_TYPE_FILE_ID
Key for file id aggregation type.

Since:
4.1.0
See Also:
Constant Field Values

AGGREGATION_TYPE_FILE_NAME

public static final String AGGREGATION_TYPE_FILE_NAME
Key for file name aggregation type.

Since:
4.1.0
See Also:
Constant Field Values
Constructor Detail

FileMonitorUtil

public FileMonitorUtil()
Method Detail

getFileDownloadMonitor

public static IMonitor getFileDownloadMonitor(FileConfig fileConfig,
                                              ITransaction transaction)
                                       throws PortalException
Returns a monitor for the "lumis.portal.file.ev.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.file.ev.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


Lumisportal  4.1.0.071221 - Copyright © 2001-2007, Lumis. All Rights Reserved.