com.atlassian.jira.action.admin.export
Class AnonymisingEntityXmlWriter
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_ANONYMOUS_ENTITIES
public static final Collection<AnonymousEntity> DEFAULT_ANONYMOUS_ENTITIES
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
writeXmlText
public void writeXmlText(org.ofbiz.core.entity.GenericValue entity,
PrintWriter writer)
- Specified by:
writeXmlText
in interface EntityXmlWriter
Copyright © 2002-2011 Atlassian. All Rights Reserved.