com.atlassian.gadgets.dashboard.spi.changes
Class UpdateGadgetUserPrefsChange

java.lang.Object
  extended by com.atlassian.gadgets.dashboard.spi.changes.UpdateGadgetUserPrefsChange
All Implemented Interfaces:
DashboardChange

public final class UpdateGadgetUserPrefsChange
extends Object
implements DashboardChange

Details of updating the user preferences of a gadget on a dashboard.

Since:
2.0

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.gadgets.dashboard.spi.changes.DashboardChange
DashboardChange.Visitor
 
Constructor Summary
UpdateGadgetUserPrefsChange(com.atlassian.gadgets.GadgetId gadgetId, Map<String,String> prefValues)
           
 
Method Summary
 void accept(DashboardChange.Visitor visitor)
          Invokes the Visitors Visitor#visit(UpdateGadgetUserPrefsChange) method.
 com.atlassian.gadgets.GadgetId getGadgetId()
          Get the id of the gadget we are updating user prefs for
 Map<String,String> getPrefValues()
          Get the updated user pref values
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateGadgetUserPrefsChange

public UpdateGadgetUserPrefsChange(com.atlassian.gadgets.GadgetId gadgetId,
                                   Map<String,String> prefValues)
Method Detail

accept

public void accept(DashboardChange.Visitor visitor)
Invokes the Visitors Visitor#visit(UpdateGadgetUserPrefsChange) method.

Specified by:
accept in interface DashboardChange
Parameters:
visitor - Visitor to invoke the specific visit method on.

getGadgetId

public com.atlassian.gadgets.GadgetId getGadgetId()
Get the id of the gadget we are updating user prefs for

Returns:
the id of the gadget we are updating user prefs for

getPrefValues

public Map<String,String> getPrefValues()
Get the updated user pref values

Returns:
the updated user pref values


Copyright © 2011 Atlassian. All Rights Reserved.