com.atlassian.jira.action.admin.export
Class AnonymisingEntityXmlWriter

java.lang.Object
  extended by com.atlassian.jira.action.admin.export.AnonymisingEntityXmlWriter
All Implemented Interfaces:
EntityXmlWriter

public class AnonymisingEntityXmlWriter
extends Object
implements EntityXmlWriter

A writer that replaces many characters with 'x' characters, for the purposes of anonymising data. The set of characters that will be replaced is defined in AnonymousGenericValue

This would be used to anonymise data before sending it to Atlassian for instance. It should never be used to back up data, as the data would be unable to be restored.


Field Summary
static Collection<AnonymousEntity> DEFAULT_ANONYMOUS_ENTITIES
           
 
Constructor Summary
AnonymisingEntityXmlWriter()
          An Anonymising writer, that is initalised using the default JIRA entities from DEFAULT_ANONYMOUS_ENTITIES
AnonymisingEntityXmlWriter(Collection anonymousEntities)
           
 
Method Summary
 void writeXmlText(org.ofbiz.core.entity.GenericValue entity, PrintWriter writer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_ANONYMOUS_ENTITIES

public static final Collection<AnonymousEntity> DEFAULT_ANONYMOUS_ENTITIES
Constructor Detail

AnonymisingEntityXmlWriter

public AnonymisingEntityXmlWriter(Collection anonymousEntities)
Parameters:
anonymousEntities - A collection of AnonymousEntity objects, representing the entities to escape

AnonymisingEntityXmlWriter

public AnonymisingEntityXmlWriter()
An Anonymising writer, that is initalised using the default JIRA entities from DEFAULT_ANONYMOUS_ENTITIES

Method Detail

writeXmlText

public void writeXmlText(org.ofbiz.core.entity.GenericValue entity,
                         PrintWriter writer)
Specified by:
writeXmlText in interface EntityXmlWriter


Copyright © 2002-2014 Atlassian. All Rights Reserved.