com.xpn.xwiki.doc.merge
Class MergeResult

java.lang.Object
  extended by com.xpn.xwiki.doc.merge.MergeResult

public class MergeResult
extends Object

Report of what happen during merge.

Since:
3.2M1
Version:
$Id: 2aec435989458e0d6347d6dfcb08dad8f0a22ba8 $

Constructor Summary
MergeResult()
           
 
Method Summary
 void error(Exception e)
          Deprecated. since 4.1RC1 use getLog() instead
 List<Exception> getErrors()
          Deprecated. since 4.1RC1 use getLog() instead
 org.xwiki.logging.LogQueue getLog()
           
 List<Exception> getWarnings()
          Deprecated. since 4.1RC1 use getLog() instead
 boolean isModified()
           
 void setModified(boolean modified)
           
 void warn(Exception e)
          Deprecated. since 4.1RC1 use getLog() instead
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MergeResult

public MergeResult()
Method Detail

setModified

public void setModified(boolean modified)
Parameters:
modified - indicate that something has been modified during the merge

isModified

public boolean isModified()
Returns:
true if something has been modified during the merge

getLog

public org.xwiki.logging.LogQueue getLog()
Returns:
the log associated to the merge
Since:
4.1RC1

getErrors

@Deprecated
public List<Exception> getErrors()
Deprecated. since 4.1RC1 use getLog() instead

Error raised during the merge.

Generally collision for which we don't know what do to at all.

Returns:
the merge errors

getWarnings

@Deprecated
public List<Exception> getWarnings()
Deprecated. since 4.1RC1 use getLog() instead

Warning raised during the merge.

The difference with error is that in that case a decision which should be good (or at least safe enough) for most of the case has been made.

Returns:
the merge warning

error

@Deprecated
public void error(Exception e)
Deprecated. since 4.1RC1 use getLog() instead

Add error.

Parameters:
e - the error

warn

@Deprecated
public void warn(Exception e)
Deprecated. since 4.1RC1 use getLog() instead

Add warning.

Parameters:
e - the warning


Copyright © 2004-2013 XWiki. All Rights Reserved.