com.atlassian.gadgets.directory.internal.impl
Class AbstractDirectoryEntryProvider<T>
java.lang.Object
com.atlassian.gadgets.directory.internal.impl.AbstractDirectoryEntryProvider<T>
- All Implemented Interfaces:
- DirectoryEntryProvider, org.springframework.beans.factory.DisposableBean
- Direct Known Subclasses:
- ConfigurableExternalGadgetSpecDirectoryEntryProvider, GadgetSpecProviderDirectoryEntryProvider, PluginExternalGadgetSpecDirectoryEntryProvider
public abstract class AbstractDirectoryEntryProvider<T>
- extends Object
- implements DirectoryEntryProvider, org.springframework.beans.factory.DisposableBean
Constructor Summary |
AbstractDirectoryEntryProvider(com.atlassian.gadgets.spec.GadgetSpecFactory gadgetSpecFactory,
com.atlassian.sal.api.executor.ThreadLocalDelegateExecutorFactory threadLocalDelegateExecutorFactory)
|
Method Summary |
protected abstract com.google.common.base.Function<T,com.atlassian.gadgets.directory.Directory.Entry> |
convertToLocalizedDirectoryEntry(com.atlassian.gadgets.GadgetRequestContext gadgetRequestContext)
|
void |
destroy()
|
Iterable<com.atlassian.gadgets.directory.Directory.Entry> |
entries(com.atlassian.gadgets.GadgetRequestContext gadgetRequestContext)
Returns all the entries available, localized by the locale . |
protected com.atlassian.gadgets.spec.GadgetSpec |
getGadgetSpec(URI gadgetSpecUri,
com.atlassian.gadgets.GadgetRequestContext gadgetRequestContext)
|
protected abstract Iterable<T> |
internalEntries()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractDirectoryEntryProvider
public AbstractDirectoryEntryProvider(com.atlassian.gadgets.spec.GadgetSpecFactory gadgetSpecFactory,
com.atlassian.sal.api.executor.ThreadLocalDelegateExecutorFactory threadLocalDelegateExecutorFactory)
entries
public final Iterable<com.atlassian.gadgets.directory.Directory.Entry> entries(com.atlassian.gadgets.GadgetRequestContext gadgetRequestContext)
- Description copied from interface:
DirectoryEntryProvider
- Returns all the entries available, localized by the
locale
.
- Specified by:
entries
in interface DirectoryEntryProvider
- Parameters:
gadgetRequestContext
- the context of this request
- Returns:
- all the entries available
internalEntries
protected abstract Iterable<T> internalEntries()
convertToLocalizedDirectoryEntry
protected abstract com.google.common.base.Function<T,com.atlassian.gadgets.directory.Directory.Entry> convertToLocalizedDirectoryEntry(com.atlassian.gadgets.GadgetRequestContext gadgetRequestContext)
getGadgetSpec
protected final com.atlassian.gadgets.spec.GadgetSpec getGadgetSpec(URI gadgetSpecUri,
com.atlassian.gadgets.GadgetRequestContext gadgetRequestContext)
throws com.atlassian.gadgets.GadgetParsingException
- Throws:
com.atlassian.gadgets.GadgetParsingException
destroy
public void destroy()
throws Exception
- Specified by:
destroy
in interface org.springframework.beans.factory.DisposableBean
- Throws:
Exception
Copyright © 2013 Atlassian. All Rights Reserved.