@Service public class MessagesApiImpl extends Object implements MessagesApi
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 |
|---|---|
Message |
copy(String projectId,
String sourceKey,
String targetKey) |
Collection<Message> |
findAll(String projectId) |
Message |
findOne(String projectId,
String key) |
Message |
insert(String projectId,
String key) |
void |
remove(String projectId,
String key) |
Message |
update(String projectId,
Message message) |
Message |
update(String projectId,
String key,
Locale locale,
String translation) |
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<Message> findAll(String projectId)
findAll in interface MessagesApipublic Message findOne(String projectId, String key)
findOne in interface MessagesApipublic Message insert(String projectId, String key)
insert in interface MessagesApipublic Message update(String projectId, String key, Locale locale, String translation)
update in interface MessagesApipublic Message update(String projectId, Message message)
update in interface MessagesApipublic Message copy(String projectId, String sourceKey, String targetKey)
copy in interface MessagesApipublic void remove(String projectId, String key)
remove in interface MessagesApiCopyright © 2019. All rights reserved.