@Service public class MessagesApiImpl extends Object implements MessagesApi
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_HOST |
PATH_MESSAGES_COPY, PATH_MESSAGES_FIND_ALL, PATH_MESSAGES_FIND_ONE, PATH_MESSAGES_INSERT, PATH_MESSAGES_REMOVE, PATH_MESSAGES_UPDATE| Constructor and Description |
|---|
MessagesApiImpl(org.springframework.web.client.RestTemplate restTemplate,
int port,
UserCredentialsSupplier userCredentialsSupplier) |
MessagesApiImpl(org.springframework.web.client.RestTemplate restTemplate,
String host,
UserCredentialsSupplier userCredentialsSupplier) |
| Modifier and Type | Method and Description |
|---|---|
MessageImpl |
copy(String projectId,
String sourceKey,
String targetKey) |
Collection<MessageImpl> |
findAll(String projectId) |
Message |
findOne(String projectId,
String key) |
MessageImpl |
insert(String projectId,
String key) |
void |
remove(String projectId,
String key) |
MessageImpl |
update(String projectId,
String key,
Locale locale,
String translation) |
public static final String DEFAULT_HOST
public MessagesApiImpl(org.springframework.web.client.RestTemplate restTemplate,
String host,
UserCredentialsSupplier userCredentialsSupplier)
public MessagesApiImpl(org.springframework.web.client.RestTemplate restTemplate,
int port,
UserCredentialsSupplier userCredentialsSupplier)
public Collection<MessageImpl> findAll(String projectId)
findAll in interface MessagesApipublic Message findOne(String projectId, String key)
findOne in interface MessagesApipublic MessageImpl insert(String projectId, String key)
insert in interface MessagesApipublic MessageImpl update(String projectId, String key, Locale locale, String translation)
update in interface MessagesApipublic MessageImpl copy(String projectId, String sourceKey, String targetKey)
copy in interface MessagesApipublic void remove(String projectId, String key)
remove in interface MessagesApiCopyright © 2017. All rights reserved.