Package org.dspace.app.ldn
Class LDNMessageEntity
java.lang.Object
org.dspace.app.ldn.LDNMessageEntity
- All Implemented Interfaces:
ReloadableEntity<String>
Class representing ldnMessages stored in the DSpace system and, when locally resolvable,
some information are stored as dedicated attributes.
- Author:
- Mohamed Eskander (mohamed.eskander at 4science.com)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IntegerMessage has not been correctly elaborated - despite more than "ldn.processor.max.attempts" retryiesstatic final IntegerMessage has been correctly elaborated.static final IntegerMessage has been taken from the queue and it's elaboration is in progress.static final IntegerMessage queued, it has to be elaborated.static final IntegerMessage queued for retry, it has to be elaborated.static final IntegerMessage is not processed since action is not mappedstatic final IntegerMessage must not be processedstatic final IntegerMessage must not be processed.static final StringLDN messages interact with a fictitious queue.static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetID()The unique identifier of this entity instance.static StringgetNotificationType(LDNMessageEntity ldnMessage) static StringgetQueueStatus(LDNMessageEntity ldnMessage) static StringgetServiceNameForNotifyServ(NotifyServiceEntity serviceEntity) getType()voidsetActivityStreamType(String activityStreamType) voidsetCoarNotifyType(String coarNotifyType) voidsetContext(DSpaceObject context) voidvoidsetInReplyTo(LDNMessageEntity inReplyTo) voidsetMessage(String message) voidsetObject(DSpaceObject object) voidsetOrigin(NotifyServiceEntity origin) voidsetQueueAttempts(Integer queueAttempts) voidsetQueueLastStartTime(Instant queueLastStartTime) voidsetQueueStatus(Integer queueStatus) voidsetQueueTimeout(Instant queueTimeout) voidsetSourceIp(String sourceIp) voidsetTarget(NotifyServiceEntity target) voidtoString()
-
Field Details
-
TYPE_INCOMING
LDN messages interact with a fictitious queue. Scheduled tasks manage the queue.- See Also:
-
TYPE_OUTGOING
- See Also:
-
QUEUE_STATUS_UNTRUSTED_IP
Message must not be processed. -
QUEUE_STATUS_QUEUED
Message queued, it has to be elaborated. -
QUEUE_STATUS_PROCESSING
Message has been taken from the queue and it's elaboration is in progress. -
QUEUE_STATUS_PROCESSED
Message has been correctly elaborated. -
QUEUE_STATUS_FAILED
Message has not been correctly elaborated - despite more than "ldn.processor.max.attempts" retryies -
QUEUE_STATUS_UNTRUSTED
Message must not be processed -
QUEUE_STATUS_UNMAPPED_ACTION
Message is not processed since action is not mapped -
QUEUE_STATUS_QUEUED_FOR_RETRY
Message queued for retry, it has to be elaborated.
-
-
Constructor Details
-
LDNMessageEntity
protected LDNMessageEntity() -
LDNMessageEntity
-
-
Method Details
-
getID
Description copied from interface:ReloadableEntityThe unique identifier of this entity instance.- Specified by:
getIDin interfaceReloadableEntity<String>- Returns:
- the value of the primary key for this instance.
-
setId
-
getObject
- Returns:
- the DSpace item related to this message
-
setObject
-
getMessage
-
setMessage
-
getType
-
setType
-
getActivityStreamType
-
setActivityStreamType
-
getCoarNotifyType
-
setCoarNotifyType
-
getOrigin
- Returns:
- The originator of the activity, typically the service responsible for sending the notification
-
setOrigin
-
getTarget
- Returns:
- The intended destination of the activity, typically the service which consumes the notification
-
setTarget
-
getInReplyTo
- Returns:
- This property is used when the notification is a direct response to a previous notification;
contains an
id
-
setInReplyTo
-
getContext
- Returns:
- This identifies another resource which is relevant to understanding the notification
-
setContext
-
getQueueStatus
-
setQueueStatus
-
getQueueAttempts
-
setQueueAttempts
-
getQueueLastStartTime
-
setQueueLastStartTime
-
getQueueTimeout
-
setQueueTimeout
-
getSourceIp
-
setSourceIp
-
toString
-
getNotificationType
-
getServiceNameForNotifyServ
-
getQueueStatus
-