Package nl.vpro.io.prepr
Class PreprRepositoryImpl
- java.lang.Object
-
- nl.vpro.io.prepr.PreprRepositoryImpl
-
- All Implemented Interfaces:
PreprRepository
@Named public class PreprRepositoryImpl extends Object implements PreprRepository
Provides the actual implementation ofPreprRepository
. This is implemented by being a rest client, so it has to be configured with credentials. * This can be done by code (usingPreprRepositoryClient#builder()
, using config fileconfiguredInUserHome(String)
} or using some IoC-framework (depending on theInject
andNamed
annotations on the constructor.- Since:
- 0.3
- Author:
- Michiel Meeuwissen
-
-
Constructor Summary
Constructors Constructor Description PreprRepositoryImpl(PreprRepositoryClient client, URI baseUrl)
PreprRepositoryImpl(PreprRepositoryClient client, PreprPrepr prepr, PreprGuides guides, PreprWebhooks webhooks, PreprAssets assets, PreprContent content, PreprTags tags, PreprContainers containers, PreprPersons persons, URI baseUrl)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PreprRepositoryImpl
configured(Map<String,String> properties, @NonNull String channel)
static PreprRepositoryImpl
configuredInUserHome(String channel)
String
getChannel()
String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface nl.vpro.io.prepr.PreprRepository
getAssets, getBaseUrl, getClient, getContainers, getContent, getGuides, getPersons, getPrepr, getTags, getWebhooks
-
-
-
-
Constructor Detail
-
PreprRepositoryImpl
@Inject public PreprRepositoryImpl(PreprRepositoryClient client, PreprPrepr prepr, PreprGuides guides, PreprWebhooks webhooks, PreprAssets assets, PreprContent content, PreprTags tags, PreprContainers containers, PreprPersons persons, URI baseUrl)
-
PreprRepositoryImpl
public PreprRepositoryImpl(PreprRepositoryClient client, URI baseUrl)
-
-
Method Detail
-
configuredInUserHome
public static PreprRepositoryImpl configuredInUserHome(String channel)
-
configured
public static PreprRepositoryImpl configured(Map<String,String> properties, @NonNull String channel)
-
getChannel
public String getChannel()
- Specified by:
getChannel
in interfacePreprRepository
-
-