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

java.lang.Object
  extended by com.atlassian.jira.action.admin.export.AnonymousEntity

public final class AnonymousEntity
extends Object

An AnonymousEntity represents which fields to be anonymised, and is used by the AnonymisingEntityXmlWriter and the AnonymousGenericValue.

It contains an 'entityName', representing the GenericValue's entity name (eg: 'Issue'), and a fieldName, representing a GenericValue's fieldName (eg: 'description', or 'id').

If either of these are null, it represents a match against all of the fields / entities.

NOTE: Due to the way that AnonymousEntity handles 'equals', it is impossible to determine a good hashCode. There will therefore be performance issues if you use this class as the key in a HashMap or HashSet.


Constructor Summary
AnonymousEntity(String entityName, String fieldName)
           
 
Method Summary
 boolean equals(Object o)
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnonymousEntity

public AnonymousEntity(String entityName,
                       String fieldName)
Parameters:
entityName -
fieldName -
Method Detail

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2002-2012 Atlassian. All Rights Reserved.