com.atlassian.gadgets.directory.internal.impl
Class GadgetSpecProviderDirectoryEntryProvider
java.lang.Object
com.atlassian.gadgets.directory.internal.impl.AbstractDirectoryEntryProvider<URI>
com.atlassian.gadgets.directory.internal.impl.GadgetSpecProviderDirectoryEntryProvider
- All Implemented Interfaces:
- DirectoryEntryProvider, org.springframework.beans.factory.DisposableBean
public class GadgetSpecProviderDirectoryEntryProvider
- extends AbstractDirectoryEntryProvider<URI>
A DirectoryEntryProvider
that aggregates an arbitrary number of
GadgetSpecProvider
implementations to produce its results.
Constructor Summary |
GadgetSpecProviderDirectoryEntryProvider(com.atlassian.gadgets.spec.GadgetSpecFactory gadgetSpecFactory,
Iterable<com.atlassian.gadgets.GadgetSpecProvider> gadgetSpecProviders,
com.atlassian.sal.api.executor.ThreadLocalDelegateExecutorFactory threadLocalDelegateExecutorFactory)
|
GadgetSpecProviderDirectoryEntryProvider
public GadgetSpecProviderDirectoryEntryProvider(com.atlassian.gadgets.spec.GadgetSpecFactory gadgetSpecFactory,
Iterable<com.atlassian.gadgets.GadgetSpecProvider> gadgetSpecProviders,
com.atlassian.sal.api.executor.ThreadLocalDelegateExecutorFactory threadLocalDelegateExecutorFactory)
contains
public boolean contains(URI gadgetSpecUri)
- Parameters:
gadgetSpecUri
- uri of the gadget spec to check if it's in the directory
- Returns:
- true if the gadget spec at the location specificied by the uri is in the directory, false otherwise
internalEntries
protected Iterable<URI> internalEntries()
- Specified by:
internalEntries
in class AbstractDirectoryEntryProvider<URI>
convertToLocalizedDirectoryEntry
protected com.google.common.base.Function<URI,com.atlassian.gadgets.directory.Directory.Entry> convertToLocalizedDirectoryEntry(com.atlassian.gadgets.GadgetRequestContext gadgetRequestContext)
- Specified by:
convertToLocalizedDirectoryEntry
in class AbstractDirectoryEntryProvider<URI>
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2012 Atlassian. All Rights Reserved.