Package org.tigris.subversion.javahl
Class NotifyInformation
- java.lang.Object
-
- java.util.EventObject
-
- org.tigris.subversion.javahl.NotifyInformation
-
- All Implemented Interfaces:
java.io.Serializable
public class NotifyInformation extends java.util.EventObject
The event passed to theNotify2.onNotify(NotifyInformation)
API to notifySVNClientInterface
of relevant events.- Since:
- 1.2
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private int
action
TheNotifyAction
which triggered this event.private java.lang.String
changelistName
The name of the changelist.private int
contentState
TheNotifyStatus
of the content of the item.private java.lang.String
errMsg
Any error message for the item.private int
kind
TheNodeKind
of the item.private Lock
lock
Any lock for the item.private int
lockState
TheLockStatus
of the lock of the item.private RevisionRange
mergeRange
The range of the merge just beginning to occur.private java.lang.String
mimeType
The MIME type of the item.private java.lang.String
pathPrefix
A common absolute path prefix that can be subtracted from .path.private int
propState
TheNotifyStatus
of the properties of the item.private long
revision
The revision of the item.private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description NotifyInformation(java.lang.String path, int action, int kind, java.lang.String mimeType, Lock lock, java.lang.String errMsg, int contentState, int propState, int lockState, long revision, java.lang.String changelistName, RevisionRange mergeRange, java.lang.String pathPrefix)
This constructor is to be used by the native code.NotifyInformation(ClientNotifyInformation aInfo)
A backward-compat callback.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static int
fromAAction(ClientNotifyInformation.Action aAction)
private static int
fromAStatus(ClientNotifyInformation.Status aStatus)
int
getAction()
java.lang.String
getChangelistName()
int
getContentState()
java.lang.String
getErrMsg()
int
getKind()
Lock
getLock()
int
getLockState()
RevisionRange
getMergeRange()
java.lang.String
getMimeType()
java.lang.String
getPath()
java.lang.String
getPathPrefix()
int
getPropState()
long
getRevision()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
action
private int action
TheNotifyAction
which triggered this event.
-
kind
private int kind
TheNodeKind
of the item.
-
mimeType
private java.lang.String mimeType
The MIME type of the item.
-
lock
private Lock lock
Any lock for the item.
-
errMsg
private java.lang.String errMsg
Any error message for the item.
-
contentState
private int contentState
TheNotifyStatus
of the content of the item.
-
propState
private int propState
TheNotifyStatus
of the properties of the item.
-
lockState
private int lockState
TheLockStatus
of the lock of the item.
-
revision
private long revision
The revision of the item.
-
changelistName
private java.lang.String changelistName
The name of the changelist.- Since:
- 1.5
-
mergeRange
private RevisionRange mergeRange
The range of the merge just beginning to occur.- Since:
- 1.5
-
pathPrefix
private java.lang.String pathPrefix
A common absolute path prefix that can be subtracted from .path.- Since:
- 1.6
-
-
Constructor Detail
-
NotifyInformation
NotifyInformation(java.lang.String path, int action, int kind, java.lang.String mimeType, Lock lock, java.lang.String errMsg, int contentState, int propState, int lockState, long revision, java.lang.String changelistName, RevisionRange mergeRange, java.lang.String pathPrefix)
This constructor is to be used by the native code.- Parameters:
path
- The path of the item, which is the source of the event.action
- TheNotifyAction
which triggered this event.kind
- TheNodeKind
of the item.mimeType
- The MIME type of the item.lock
- Any lock for the item.errMsg
- Any error message for the item.contentState
- TheNotifyStatus
of the content of the item.propState
- TheNotifyStatus
of the properties of the item.lockState
- TheLockStatus
of the lock of the item.revision
- The revision of the item.changelistName
- The name of the changelist.mergeRange
- The range of the merge just beginning to occur.pathPrefix
- A common path prefix.
-
NotifyInformation
public NotifyInformation(ClientNotifyInformation aInfo)
A backward-compat callback.
-
-
Method Detail
-
getPath
public java.lang.String getPath()
- Returns:
- The path of the item, which is the source of the event.
-
getAction
public int getAction()
- Returns:
- The
NotifyAction
which triggered this event.
-
getKind
public int getKind()
- Returns:
- The
NodeKind
of the item.
-
getMimeType
public java.lang.String getMimeType()
- Returns:
- The MIME type of the item.
-
getLock
public Lock getLock()
- Returns:
- Any lock for the item.
-
getErrMsg
public java.lang.String getErrMsg()
- Returns:
- Any error message for the item.
-
getContentState
public int getContentState()
- Returns:
- The
NotifyStatus
of the content of the item.
-
getPropState
public int getPropState()
- Returns:
- The
NotifyStatus
of the properties of the item.
-
getLockState
public int getLockState()
- Returns:
- The
LockStatus
of the lock of the item.
-
getRevision
public long getRevision()
- Returns:
- The revision of the item.
-
getChangelistName
public java.lang.String getChangelistName()
- Returns:
- The name of the changelist.
- Since:
- 1.5
-
getMergeRange
public RevisionRange getMergeRange()
- Returns:
- The range of the merge just beginning to occur.
- Since:
- 1.5
-
getPathPrefix
public java.lang.String getPathPrefix()
- Returns:
- The common absolute path prefix.
- Since:
- 1.6
-
fromAStatus
private static int fromAStatus(ClientNotifyInformation.Status aStatus)
-
fromAAction
private static int fromAAction(ClientNotifyInformation.Action aAction)
-
-