org.xwiki.wikistream.instance.output
Class DocumentInstanceOutputProperties

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<String,Object>
          extended by org.xwiki.wikistream.instance.output.InstanceOutputProperties
              extended by org.xwiki.wikistream.instance.output.DocumentInstanceOutputProperties
All Implemented Interfaces:
Serializable, Cloneable, Map<String,Object>, org.xwiki.properties.RawProperties

public class DocumentInstanceOutputProperties
extends InstanceOutputProperties

Since:
5.3RC1
Version:
$Id: 10fb4d379478a4592e8d9b42cc3d1d607bec94d0 $
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
DocumentInstanceOutputProperties()
           
 
Method Summary
 org.xwiki.model.reference.EntityReference getDefaultReference()
           
 org.xwiki.rendering.syntax.Syntax getDefaultSyntax()
           
 String getSaveComment()
           
 boolean isAuthorPreserved()
           
 boolean isPreviousDeleted()
           
 boolean isVersionPreserved()
           
 void setAuthorPreserved(boolean authorPreserved)
           
 void setDefaultReference(org.xwiki.model.reference.EntityReference defaultReference)
           
 void setDefaultSyntax(org.xwiki.rendering.syntax.Syntax defaultSyntax)
           
 void setPreviousDeleted(boolean previousDeleted)
           
 void setSaveComment(String saveComment)
           
 void setVersionPreserved(boolean versionPreserved)
           
 
Methods inherited from class org.xwiki.wikistream.instance.output.InstanceOutputProperties
set
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

DocumentInstanceOutputProperties

public DocumentInstanceOutputProperties()
Method Detail

getDefaultReference

public org.xwiki.model.reference.EntityReference getDefaultReference()
Returns:
The base reference to use to resolve reference from events

setDefaultReference

public void setDefaultReference(org.xwiki.model.reference.EntityReference defaultReference)
Parameters:
defaultReference - The base reference to use to resolve reference from events

getSaveComment

public String getSaveComment()
Returns:
The comment to set when saving a document

setSaveComment

public void setSaveComment(String saveComment)
Parameters:
saveComment - The comment to set when saving a document

getDefaultSyntax

public org.xwiki.rendering.syntax.Syntax getDefaultSyntax()
Returns:
The default syntax if not is provided in events

setDefaultSyntax

public void setDefaultSyntax(org.xwiki.rendering.syntax.Syntax defaultSyntax)
Parameters:
defaultSyntax - The default syntax if not is provided in events

isPreviousDeleted

public boolean isPreviousDeleted()
Returns:
Indicate if existing document should be deleted before importing the new one

setPreviousDeleted

public void setPreviousDeleted(boolean previousDeleted)
Parameters:
previousDeleted - Indicate if existing document should be deleted before importing the new one

isVersionPreserved

public boolean isVersionPreserved()
Returns:
Indicate if the versions coming from the events should be kept

setVersionPreserved

public void setVersionPreserved(boolean versionPreserved)
Parameters:
versionPreserved - Indicate if the versions coming from the events should be kept

isAuthorPreserved

public boolean isAuthorPreserved()
Returns:
Indicate if the authors coming from the events should be kept.

setAuthorPreserved

public void setAuthorPreserved(boolean authorPreserved)
Parameters:
authorPreserved - Indicate if the authors coming from the events should be kept. Not taken into account if #setAuthor(org.xwiki.model.reference.DocumentReference) is used.


Copyright © 2004–2014 XWiki. All rights reserved.