Package org.javlo.service.shared
Class SharedContentService
- java.lang.Object
-
- org.javlo.service.shared.SharedContentService
-
public class SharedContentService extends Object
-
-
Constructor Summary
Constructors Constructor Description SharedContentService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearCache(ContentContext ctx)
List<String>
getActiveProviderNames(ContentContext ctx)
List<ISharedContentProvider>
getAllActiveProvider(ContentContext ctx)
List<ISharedContentProvider>
getAllProvider(ContentContext ctx)
SharedContentContext
getContext()
static SharedContentService
getInstance(ContentContext ctx)
ISharedContentProvider
getProvider(ContentContext ctx, String name)
SharedContent
getSharedContent(ContentContext ctx, String id)
static void
prepare(ContentContext ctx)
Collection<SharedContent>
searchContent(ContentContext ctx, ISharedContentProvider provider, String query)
void
setActiveProviderNames(ContentContext ctx, Collection<String> active)
void
setContext(SharedContentContext context)
-
-
-
Method Detail
-
getInstance
public static SharedContentService getInstance(ContentContext ctx)
-
getAllProvider
public List<ISharedContentProvider> getAllProvider(ContentContext ctx)
-
getAllActiveProvider
public List<ISharedContentProvider> getAllActiveProvider(ContentContext ctx)
-
getActiveProviderNames
public List<String> getActiveProviderNames(ContentContext ctx)
-
setActiveProviderNames
public void setActiveProviderNames(ContentContext ctx, Collection<String> active)
-
getProvider
public ISharedContentProvider getProvider(ContentContext ctx, String name)
-
getSharedContent
public SharedContent getSharedContent(ContentContext ctx, String id)
-
searchContent
public Collection<SharedContent> searchContent(ContentContext ctx, ISharedContentProvider provider, String query)
-
clearCache
public void clearCache(ContentContext ctx)
-
getContext
public SharedContentContext getContext()
-
setContext
public void setContext(SharedContentContext context)
-
prepare
public static void prepare(ContentContext ctx) throws ModuleException
- Throws:
ModuleException
-
-