com.atlassian.jira.bc.dataimport
Class ExportCompletedEvent

java.lang.Object
  extended by com.atlassian.jira.bc.dataimport.ExportCompletedEvent
All Implemented Interfaces:
DataExportEvent

@PublicApi
public class ExportCompletedEvent
extends Object
implements DataExportEvent

Event fired when an export is complete.

Since:
v5.0

Field Summary
 String filename
          The filename the data is being saved to.
 com.atlassian.crowd.embedded.api.User loggedInUser
          The user that instigated the export.
 ServiceOutcome<Void> outcome
          The outcome of the export.
 Long xmlExportTime
          The time in milliseconds when the export was started.
 
Constructor Summary
ExportCompletedEvent(com.atlassian.crowd.embedded.api.User user, String filename, ServiceOutcome<Void> outcome)
          Deprecated. 
ExportCompletedEvent(com.atlassian.crowd.embedded.api.User user, String filename, ServiceOutcome<Void> outcome, Long xmlExportTime)
           
 
Method Summary
 Long getXmlExportTime()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

loggedInUser

public final com.atlassian.crowd.embedded.api.User loggedInUser
The user that instigated the export. May be null if, for instance, it is triggered by a scheduled job and not a user.


filename

public final String filename
The filename the data is being saved to.


outcome

public final ServiceOutcome<Void> outcome
The outcome of the export. Will contain success or failure and possibly some error messages.


xmlExportTime

public final Long xmlExportTime
The time in milliseconds when the export was started.

Constructor Detail

ExportCompletedEvent

@Deprecated
public ExportCompletedEvent(com.atlassian.crowd.embedded.api.User user,
                                       String filename,
                                       ServiceOutcome<Void> outcome)
Deprecated. 


ExportCompletedEvent

public ExportCompletedEvent(com.atlassian.crowd.embedded.api.User user,
                            String filename,
                            ServiceOutcome<Void> outcome,
                            Long xmlExportTime)
Method Detail

getXmlExportTime

public Long getXmlExportTime()
Specified by:
getXmlExportTime in interface DataExportEvent
Returns:
the time in milliseconds when the export was started.


Copyright © 2002-2014 Atlassian. All Rights Reserved.