public final class EhBrowseConfigKey
extends java.lang.Object
implements java.io.Externalizable
BrowseKey with the field containing a user
name. Used for keying configurations loaded from the directory.| Modifier and Type | Field and Description |
|---|---|
BrowseKey |
configKey
Key that uniquely identifies browse in an application.
|
java.lang.String |
userName
Name of the user for whom this configuration is stored.
|
| Constructor and Description |
|---|
EhBrowseConfigKey()
Default constructor
|
EhBrowseConfigKey(java.lang.String userName,
BrowseKey configKey)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Compare two instances.
|
int |
hashCode()
Return a hash code for this object.
|
void |
readExternal(java.io.ObjectInput in)
Replacement for the default object reading method.
|
java.lang.String |
toString()
Create a string representation of this key, primarily for debug purposes.
|
void |
writeExternal(java.io.ObjectOutput out)
Replacement for the default object writing method.
|
public java.lang.String userName
null if it is
applicable to all users.public BrowseKey configKey
public EhBrowseConfigKey()
public EhBrowseConfigKey(java.lang.String userName,
BrowseKey configKey)
userName - Name of the user for whom this configuration is stored. null if it is
applicable to all users.configKey - Key that uniquely identifies browse in an application.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - An object to compare with.true if the two keys are identical.public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizableout - The output destination to which fields will be saved.java.io.IOException - In case of I/O errors.public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablein - Input source from which fields will be restored.java.io.IOException - In case of I/O errors.java.lang.ClassNotFoundException - If payload can't be instantiated.