@Named public class PreprRepositoryImpl extends Object implements PreprRepository
PreprRepository
. This is implemented by being a rest client, so it has to be configured
with credentials.
*
This can be done by code (using PreprRepositoryClient#builder()
, using config file configuredInUserHome(String)
}
or using some IoC-framework (depending on the Inject
and Named
annotations on the constructor.Constructor and Description |
---|
PreprRepositoryImpl(PreprRepositoryClient client,
PreprPrepr prepr,
PreprGuides guides,
PreprWebhooks webhooks,
PreprAssets assets,
PreprContent content,
PreprTags tags,
PreprContainers containers,
PreprPersons persons,
URI baseUrl) |
PreprRepositoryImpl(PreprRepositoryClient client,
URI baseUrl) |
Modifier and Type | Method and Description |
---|---|
static PreprRepositoryImpl |
configured(Map<String,String> properties,
String channel) |
static PreprRepositoryImpl |
configuredInUserHome(String channel) |
String |
getChannel() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAssets, getBaseUrl, getClient, getContainers, getContent, getGuides, getPersons, getPrepr, getTags, getWebhooks
@Inject public PreprRepositoryImpl(PreprRepositoryClient client, PreprPrepr prepr, PreprGuides guides, PreprWebhooks webhooks, PreprAssets assets, PreprContent content, PreprTags tags, PreprContainers containers, PreprPersons persons, URI baseUrl)
public PreprRepositoryImpl(PreprRepositoryClient client, URI baseUrl)
public static PreprRepositoryImpl configuredInUserHome(String channel)
public static PreprRepositoryImpl configured(Map<String,String> properties, String channel)
public String getChannel()
getChannel
in interface PreprRepository
Copyright © 2018–2019. All rights reserved.