Package org.netxms.client.events
Class EPPConflict
java.lang.Object
org.netxms.client.events.EPPConflict
Represents a conflict detected during EPP save with optimistic concurrency.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionEPPConflict(NXCPMessage msg, long baseId) Create conflict from NXCP message. -
Method Summary
Modifier and TypeMethodDescriptionGet GUID of the conflicting rule.longGet timestamp of last server modification.Get GUID of user who last modified server version.Get name of user who last modified server version.getType()Get conflict type.booleanCheck if client had a version of this rule.booleanCheck if server has a version of this rule.
-
Constructor Details
-
EPPConflict
Create conflict from NXCP message.- Parameters:
msg- NXCP messagebaseId- base field ID in the message
-
-
Method Details
-
getType
Get conflict type.- Returns:
- conflict type
-
getRuleGuid
Get GUID of the conflicting rule.- Returns:
- rule GUID
-
hasClientRule
public boolean hasClientRule()Check if client had a version of this rule.- Returns:
- true if client had this rule
-
hasServerRule
public boolean hasServerRule()Check if server has a version of this rule.- Returns:
- true if server has this rule
-
getServerModifiedByGuid
Get GUID of user who last modified server version.- Returns:
- user GUID or null
-
getServerModifiedByName
Get name of user who last modified server version.- Returns:
- user name or null
-
getServerModificationTime
public long getServerModificationTime()Get timestamp of last server modification.- Returns:
- modification timestamp (Unix epoch) or 0
-