Class NamespaceRecord
- java.lang.Object
-
- org.apache.jackrabbit.core.cluster.ClusterRecord
-
- org.apache.jackrabbit.core.cluster.NamespaceRecord
-
public class NamespaceRecord extends ClusterRecord
Cluster record representing a namespace registration, reregistration or unregistration.
-
-
Field Summary
-
Fields inherited from class org.apache.jackrabbit.core.cluster.ClusterRecord
END_MARKER, record, workspace
-
-
Constructor Summary
Constructors Constructor Description NamespaceRecord(String oldPrefix, String newPrefix, String uri, Record record)
Create a new instance of this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doRead()
Deserialize this record.protected void
doWrite()
Serialize this record.String
getNewPrefix()
Return the new prefix.String
getOldPrefix()
Return the old prefix.String
getUri()
Return the URI.void
process(ClusterRecordProcessor processor)
Process this record, calling the appropriateprocess
method.-
Methods inherited from class org.apache.jackrabbit.core.cluster.ClusterRecord
cancelUpdate, getRevision, getWorkspace, read, readEndMarker, update, write
-
-
-
-
Method Detail
-
doRead
protected void doRead() throws JournalException
Deserialize this record. Subclass responsibility.- Specified by:
doRead
in classClusterRecord
- Throws:
JournalException
- if an error occurs
-
doWrite
protected void doWrite() throws JournalException
Serialize this record. Subclass responsibility.- Specified by:
doWrite
in classClusterRecord
- Throws:
JournalException
- if an error occurs
-
process
public void process(ClusterRecordProcessor processor)
Process this record, calling the appropriateprocess
method.- Specified by:
process
in classClusterRecord
- Parameters:
processor
- processor
-
getOldPrefix
public String getOldPrefix()
Return the old prefix.- Returns:
- old prefix
-
getNewPrefix
public String getNewPrefix()
Return the new prefix.- Returns:
- new prefix
-
getUri
public String getUri()
Return the URI.- Returns:
- URI
-
-