com.atlassian.gadgets.refimpl
Class ActivityPropertyAdapter

java.lang.Object
  extended by com.atlassian.gadgets.refimpl.ActivityPropertyAdapter

public class ActivityPropertyAdapter
extends Object

Convenience methods for converting from AG activities to properties and back


Constructor Summary
ActivityPropertyAdapter()
           
 
Method Summary
static Properties activityToProperties(Activity activity)
          Convert an activity to a properties object
static Activity propertiesToActivity(Properties properties)
          Convert a properties object to an activity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActivityPropertyAdapter

public ActivityPropertyAdapter()
Method Detail

activityToProperties

public static Properties activityToProperties(Activity activity)
Convert an activity to a properties object

Parameters:
activity - the activity to convert
Returns:
the properties created from the passed-in activity

propertiesToActivity

public static Activity propertiesToActivity(Properties properties)
Convert a properties object to an activity

Parameters:
properties - the properties object to convert
Returns:
the activity created from the passed-in properties


Copyright © 2011 Atlassian. All Rights Reserved.