com.atlassian.jira.functest.config.dashboard
Class ConfigGadgetSupport<T>

java.lang.Object
  extended by com.atlassian.jira.functest.config.dashboard.ConfigGadgetSupport<T>
Direct Known Subclasses:
DefaultConfigGadgetManager.ExternalHelper, DefaultConfigGadgetManager.GadgetHelper

public abstract class ConfigGadgetSupport<T>
extends Object

Helper class to deal with loading and syncing JIRA configuration.

Since:
v4.2

Constructor Summary
protected ConfigGadgetSupport(org.dom4j.Document document)
           
 
Method Summary
abstract  boolean create(T object)
           
abstract  boolean delete(T obj)
           
abstract  Long getId(T obj)
           
abstract  List<T> loadAll()
           
 boolean sync(Collection<? extends T> gadgets)
           
abstract  boolean update(T oldObj, T newObj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigGadgetSupport

protected ConfigGadgetSupport(org.dom4j.Document document)
Method Detail

sync

public boolean sync(Collection<? extends T> gadgets)

loadAll

public abstract List<T> loadAll()

create

public abstract boolean create(T object)

update

public abstract boolean update(T oldObj,
                               T newObj)

delete

public abstract boolean delete(T obj)

getId

public abstract Long getId(T obj)


Copyright © 2002-2012 Atlassian. All Rights Reserved.