public class UpdateErrataCacheEvent extends java.lang.Object implements EventDatabaseMessage
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_CHANNEL |
static int |
TYPE_CHANNEL_ERRATA |
static int |
TYPE_ORG |
Constructor and Description |
---|
UpdateErrataCacheEvent(int typeIn)
default constructor
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.Long> |
getChannelIds() |
java.lang.Long |
getErrataId() |
java.lang.Long |
getOrgId()
returns the orgId associated with this event.
|
java.util.List<java.lang.Long> |
getPackageIds() |
org.hibernate.Transaction |
getTransaction()
Get the Transaction from the caller/creator of this EventMessage.
|
int |
getUpdateType()
Get the update type of this event.
|
java.lang.Long |
getUserId()
Get the user that scheduled the Event (needed to initialize logging)
|
void |
setChannels(java.util.List<java.lang.Long> channelIdsIn)
Add a Channel to the set of Channels to recalculate the Errata cache
for.
|
void |
setErrataId(java.lang.Long errataIdIn) |
void |
setOrgId(java.lang.Long orgIdIn)
Sets the org to be updated.
|
void |
setPackageIds(java.util.List<java.lang.Long> packageIdsIn) |
java.lang.String |
toText()
Convert the internal representation to a text string
|
public static final int TYPE_ORG
public static final int TYPE_CHANNEL
public static final int TYPE_CHANNEL_ERRATA
public UpdateErrataCacheEvent(int typeIn)
typeIn
- - type of update we want to do. TYPE_ORG, TYPE_CHANNELpublic java.lang.String toText()
toText
in interface EventMessage
public java.lang.Long getOrgId()
public void setOrgId(java.lang.Long orgIdIn)
orgIdIn
- OrgId to be updated.public int getUpdateType()
public java.util.List<java.lang.Long> getChannelIds()
public void setChannels(java.util.List<java.lang.Long> channelIdsIn)
channelIdsIn
- to add to the list to process.public org.hibernate.Transaction getTransaction()
getTransaction
in interface EventDatabaseMessage
public java.lang.Long getErrataId()
public void setErrataId(java.lang.Long errataIdIn)
errataIdIn
- The errata_id to set.public java.util.List<java.lang.Long> getPackageIds()
public void setPackageIds(java.util.List<java.lang.Long> packageIdsIn)
packageIdsIn
- The packageIds to set.public java.lang.Long getUserId()
getUserId
in interface EventMessage