com.objectplanet.survey.event.events
Class QuotaValueUpdatedEvent

java.lang.Object
  extended by com.objectplanet.survey.event.Event
      extended by com.objectplanet.survey.event.events.SurveyEvent
          extended by com.objectplanet.survey.event.events.QuotaValueUpdatedEvent

public class QuotaValueUpdatedEvent
extends SurveyEvent

Event sent when a quota value has been updated.

Author:
Erik-André Mamen, Torgeir Lund

Nested Class Summary
 
Nested classes/interfaces inherited from class com.objectplanet.survey.event.Event
Event.NonVetoable
 
Constructor Summary
QuotaValueUpdatedEvent(IEventListener source)
          Creates a new event.
 
Method Summary
 int getChangeValue()
          Gets the change value.
 long getQuotaId()
          Gets the quota Id
 boolean isLocal()
          Indicates if the event originated locally or remotely
 void setChangeValue(int changeValue)
          Sets the change value.
 void setLocal(boolean local)
          Indicate if the event originated locally or remotely
 void setQuotaId(long quotaId)
          Sets the quota Id
 
Methods inherited from class com.objectplanet.survey.event.events.SurveyEvent
getSurveyId, setSurveyId
 
Methods inherited from class com.objectplanet.survey.event.Event
getSource, isVetoed, paramString, toString, veto
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QuotaValueUpdatedEvent

public QuotaValueUpdatedEvent(IEventListener source)
Creates a new event.

Parameters:
source - The event source
Method Detail

isLocal

public boolean isLocal()
Indicates if the event originated locally or remotely

Returns:
true if local, false otherwise

setLocal

public void setLocal(boolean local)
Indicate if the event originated locally or remotely

Parameters:
local - true if local, false otherwise

getQuotaId

public long getQuotaId()
Gets the quota Id

Returns:
the quota id

setQuotaId

public void setQuotaId(long quotaId)
Sets the quota Id

Parameters:
quotaId - the quota id

getChangeValue

public int getChangeValue()
Gets the change value. Positive numbers will increase the quota value, negative numbers will decrease the quota value.

Returns:
the change value

setChangeValue

public void setChangeValue(int changeValue)
Sets the change value. Positive numbers will increase the quota value, negative numbers will decrease the quota value.

Parameters:
changeValue - the change value

Copyright ? ObjectPlanet Inc. All Rights Reserved.

Built on December 20 2016