public class ChangeLogEvent extends Object implements Externalizable
Constructor and Description |
---|
ChangeLogEvent()
Creates a new instance of ChangeLogEvent, used during the deserialization
process
|
ChangeLogEvent(long revision,
String zuluTime,
LdapPrincipal committer,
org.apache.directory.shared.ldap.ldif.LdifEntry forwardLdif,
org.apache.directory.shared.ldap.ldif.LdifEntry reverseLdif)
Creates a new instance of ChangeLogEvent.
|
ChangeLogEvent(long revision,
String zuluTime,
LdapPrincipal committer,
org.apache.directory.shared.ldap.ldif.LdifEntry forwardLdif,
List<org.apache.directory.shared.ldap.ldif.LdifEntry> reverseLdifs)
Creates a new instance of ChangeLogEvent.
|
Modifier and Type | Method and Description |
---|---|
org.apache.directory.shared.ldap.entry.EntryAttribute |
get(String attributeName) |
LdapPrincipal |
getCommitterPrincipal() |
org.apache.directory.shared.ldap.ldif.LdifEntry |
getForwardLdif() |
List<org.apache.directory.shared.ldap.ldif.LdifEntry> |
getReverseLdifs() |
long |
getRevision()
Gets the revision of this event.
|
String |
getZuluTime()
Gets the generalizedTime when this event occured.
|
void |
readExternal(ObjectInput in) |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
public ChangeLogEvent()
public ChangeLogEvent(long revision, String zuluTime, LdapPrincipal committer, org.apache.directory.shared.ldap.ldif.LdifEntry forwardLdif, org.apache.directory.shared.ldap.ldif.LdifEntry reverseLdif)
revision
- the revision number for the changezuluTime
- the timestamp for when the change occurred in generalizedTime formatpublic ChangeLogEvent(long revision, String zuluTime, LdapPrincipal committer, org.apache.directory.shared.ldap.ldif.LdifEntry forwardLdif, List<org.apache.directory.shared.ldap.ldif.LdifEntry> reverseLdifs)
revision
- the revision number for the changezuluTime
- the timestamp for when the change occurred in generalizedTime formatcommitter
- the user who did the modificationforwardLdif
- the original operationreverseLdifs
- the reverted operationspublic org.apache.directory.shared.ldap.ldif.LdifEntry getForwardLdif()
public List<org.apache.directory.shared.ldap.ldif.LdifEntry> getReverseLdifs()
public LdapPrincipal getCommitterPrincipal()
public long getRevision()
public String getZuluTime()
public org.apache.directory.shared.ldap.entry.EntryAttribute get(String attributeName)
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
in
- The stream from which the ChangeOlgEvent is readIOException
- If the stream can't be readClassNotFoundException
- If the ChangeLogEvent can't be createdExternalizable.readExternal(ObjectInput)
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
out
- The stream in which the ChangeLogEvent will be serialized.IOException
- If the serialization failExternalizable#readExternal(ObjectInput)
Copyright © 2003-2012 Apache Software Foundation. All Rights Reserved.