public class StringTranslationsApi extends CrowdinApi
clientConfig, graphqlUrl, httpClient, url| Constructor and Description |
|---|
StringTranslationsApi(Credentials credentials) |
StringTranslationsApi(Credentials credentials,
ClientConfig clientConfig) |
| Modifier and Type | Method and Description |
|---|---|
ResponseObject<Approval> |
addApproval(java.lang.Long projectId,
AddApprovalRequest request) |
ResponseObject<StringTranslation> |
addTranslation(java.lang.Long projectId,
AddStringTranslationRequest request) |
ResponseObject<Vote> |
addVote(java.lang.Long projectId,
AddVoteRequest request) |
AlignTranslationResponse |
alignTranslation(java.lang.Long projectId,
AlignTranslationRequest request) |
ResponseList<Approval> |
approvalBatchOperations(java.lang.Long projectId,
java.util.List<PatchRequest> request) |
void |
cancelVote(java.lang.Long projectId,
java.lang.Long voteId) |
void |
deleteStringTranslation(java.lang.Long projectId,
java.lang.Long translationId) |
void |
deleteStringTranslations(java.lang.Long projectId,
java.lang.Long stringId,
java.lang.String languageId) |
ResponseObject<Approval> |
getApproval(java.lang.Long projectId,
java.lang.Long approvalId) |
ResponseObject<StringTranslation> |
getStringTranslation(java.lang.Long projectId,
java.lang.Long translationId) |
ResponseObject<Vote> |
getVote(java.lang.Long projectId,
java.lang.Long voteId) |
ResponseList<LanguageTranslations> |
listLanguageTranslations(java.lang.Long projectId,
java.lang.String languageId,
ListLanguageTranslationsOptions options) |
ResponseList<LanguageTranslations> |
listLanguageTranslations(java.lang.Long projectId,
java.lang.String languageId,
java.lang.String stringIds,
java.lang.String labelIds,
java.lang.Long fileId,
java.lang.Long branchId,
java.lang.Long directoryId,
java.lang.String croql,
java.lang.Integer denormalizePlaceholders,
java.lang.Integer limit,
java.lang.Integer offset) |
ResponseList<LanguageTranslations> |
listLanguageTranslations(java.lang.Long projectId,
java.lang.String languageId,
java.lang.String stringIds,
java.lang.String labelIds,
java.lang.Long fileId,
java.lang.Long branchId,
java.lang.Long directoryId,
java.lang.String croql,
java.lang.Integer denormalizePlaceholders,
java.lang.Integer limit,
java.lang.Integer offset,
java.util.List<OrderByField> orderBy) |
ResponseList<StringTranslation> |
listStringTranslations(java.lang.Long projectId,
ListStringTranslationsOptions options) |
ResponseList<StringTranslation> |
listStringTranslations(java.lang.Long projectId,
java.lang.Long stringId,
java.lang.String languageId,
java.lang.Integer limit,
java.lang.Integer offset) |
ResponseList<StringTranslation> |
listStringTranslations(java.lang.Long projectId,
java.lang.Long stringId,
java.lang.String languageId,
java.lang.Integer limit,
java.lang.Integer offset,
java.util.List<OrderByField> orderBy) |
ResponseList<Approval> |
listTranslationApprovals(java.lang.Long projectId,
ListTranslationApprovalsOptions options) |
ResponseList<Approval> |
listTranslationApprovals(java.lang.Long projectId,
java.lang.Long fileId,
java.lang.Long stringId,
java.lang.String languageId,
java.lang.Long translationId,
java.lang.String labelIds,
java.lang.String excludeLabelIds,
java.lang.Integer limit,
java.lang.Integer offset) |
ResponseList<Approval> |
listTranslationApprovals(java.lang.Long projectId,
java.lang.Long fileId,
java.lang.Long stringId,
java.lang.String languageId,
java.lang.Long translationId,
java.lang.String labelIds,
java.lang.String excludeLabelIds,
java.lang.Integer limit,
java.lang.Integer offset,
java.util.List<OrderByField> orderBy) |
ResponseList<Vote> |
listTranslationVotes(java.lang.Long projectId,
ListTranslationVotesOptions options) |
ResponseList<Vote> |
listTranslationVotes(java.lang.Long projectId,
java.lang.Long stringId,
java.lang.String languageId,
java.lang.Long translationId,
java.lang.String labelIds,
java.lang.String excludeLabelIds,
java.lang.Integer limit,
java.lang.Integer offset) |
void |
removeApproval(java.lang.Long projectId,
java.lang.Long approvalId) |
void |
removeStringApprovals(java.lang.Long projectId,
java.lang.Long stringId) |
ResponseObject<StringTranslation> |
restoreStringTranslation(java.lang.Long projectId,
java.lang.Long translationId) |
ResponseList<StringTranslation> |
translationBatchOperations(java.lang.Long projectId,
java.util.List<PatchRequest> request) |
graphql, graphqlpublic StringTranslationsApi(Credentials credentials)
public StringTranslationsApi(Credentials credentials, ClientConfig clientConfig)
public AlignTranslationResponse alignTranslation(java.lang.Long projectId, AlignTranslationRequest request)
projectId - project identifierrequest - request bodypublic ResponseList<Approval> listTranslationApprovals(java.lang.Long projectId, java.lang.Long fileId, java.lang.Long stringId, java.lang.String languageId, java.lang.Long translationId, java.lang.String labelIds, java.lang.String excludeLabelIds, java.lang.Integer limit, java.lang.Integer offset) throws HttpException, HttpBadRequestException
projectId - project identifierfileId - file identifierstringId - string identifierlanguageId - language identifiertranslationId - translation identifierlabelIds - filter approvals by labelIdsexcludeLabelIds - exclude approvals by labelIdslimit - maximum number of items to retrieve (default 25)offset - starting offset in the collection (default 0)HttpExceptionHttpBadRequestExceptionpublic ResponseList<Approval> listTranslationApprovals(java.lang.Long projectId, java.lang.Long fileId, java.lang.Long stringId, java.lang.String languageId, java.lang.Long translationId, java.lang.String labelIds, java.lang.String excludeLabelIds, java.lang.Integer limit, java.lang.Integer offset, java.util.List<OrderByField> orderBy) throws HttpException, HttpBadRequestException
projectId - project identifierfileId - file identifierstringId - string identifierlanguageId - language identifiertranslationId - translation identifierlabelIds - filter approvals by labelIdsexcludeLabelIds - exclude approvals by labelIdslimit - maximum number of items to retrieve (default 25)offset - starting offset in the collection (default 0)orderBy - list of OrderByFieldHttpExceptionHttpBadRequestExceptionpublic ResponseList<Approval> listTranslationApprovals(java.lang.Long projectId, ListTranslationApprovalsOptions options) throws HttpException, HttpBadRequestException
HttpExceptionHttpBadRequestExceptionpublic ResponseObject<Approval> addApproval(java.lang.Long projectId, AddApprovalRequest request) throws HttpException, HttpBadRequestException
projectId - project identifierrequest - request bodyHttpExceptionHttpBadRequestExceptionpublic ResponseObject<Approval> getApproval(java.lang.Long projectId, java.lang.Long approvalId) throws HttpException, HttpBadRequestException
projectId - project identifierapprovalId - approval identifierHttpExceptionHttpBadRequestExceptionpublic void removeStringApprovals(java.lang.Long projectId,
java.lang.Long stringId)
throws HttpException,
HttpBadRequestException
projectId - project identifierstringId - string identifierHttpExceptionHttpBadRequestExceptionpublic void removeApproval(java.lang.Long projectId,
java.lang.Long approvalId)
throws HttpException,
HttpBadRequestException
projectId - project identifierapprovalId - approval identifierHttpExceptionHttpBadRequestExceptionpublic ResponseList<Approval> approvalBatchOperations(java.lang.Long projectId, java.util.List<PatchRequest> request)
projectId - project identifierpublic ResponseList<StringTranslation> translationBatchOperations(java.lang.Long projectId, java.util.List<PatchRequest> request)
projectId - project identifierpublic ResponseList<LanguageTranslations> listLanguageTranslations(java.lang.Long projectId, java.lang.String languageId, java.lang.String stringIds, java.lang.String labelIds, java.lang.Long fileId, java.lang.Long branchId, java.lang.Long directoryId, java.lang.String croql, java.lang.Integer denormalizePlaceholders, java.lang.Integer limit, java.lang.Integer offset) throws HttpException, HttpBadRequestException
projectId - project identifierlanguageId - language identifierstringIds - filter translations by stringIdslabelIds - filter translations by labelIdsfileId - filter translations by file identifierbranchId - filter translations by branchIddirectoryId - filter translations by directoryIdcroql - filter translations by croqldenormalizePlaceholders - enable denormalize placeholderslimit - maximum number of items to retrieve (default 25)offset - starting offset in the collection (default 0)HttpExceptionHttpBadRequestExceptionpublic ResponseList<LanguageTranslations> listLanguageTranslations(java.lang.Long projectId, java.lang.String languageId, java.lang.String stringIds, java.lang.String labelIds, java.lang.Long fileId, java.lang.Long branchId, java.lang.Long directoryId, java.lang.String croql, java.lang.Integer denormalizePlaceholders, java.lang.Integer limit, java.lang.Integer offset, java.util.List<OrderByField> orderBy) throws HttpException, HttpBadRequestException
projectId - project identifierlanguageId - language identifierstringIds - filter translations by stringIdslabelIds - filter translations by labelIdsfileId - filter translations by file identifierbranchId - filter translations by branchIddirectoryId - filter translations by directoryIdcroql - filter translations by croqldenormalizePlaceholders - enable denormalize placeholderslimit - maximum number of items to retrieve (default 25)offset - starting offset in the collection (default 0)orderBy - list of OrderByFieldHttpExceptionHttpBadRequestExceptionpublic ResponseList<LanguageTranslations> listLanguageTranslations(java.lang.Long projectId, java.lang.String languageId, ListLanguageTranslationsOptions options) throws HttpException, HttpBadRequestException
HttpExceptionHttpBadRequestExceptionpublic ResponseList<StringTranslation> listStringTranslations(java.lang.Long projectId, java.lang.Long stringId, java.lang.String languageId, java.lang.Integer limit, java.lang.Integer offset) throws HttpException, HttpBadRequestException
projectId - project identifierstringId - string identifierlanguageId - language identifierlimit - maximum number of items to retrieve (default 25)offset - starting offset in the collection (default 0)HttpExceptionHttpBadRequestExceptionpublic ResponseList<StringTranslation> listStringTranslations(java.lang.Long projectId, java.lang.Long stringId, java.lang.String languageId, java.lang.Integer limit, java.lang.Integer offset, java.util.List<OrderByField> orderBy) throws HttpException, HttpBadRequestException
projectId - project identifierstringId - string identifierlanguageId - language identifierlimit - maximum number of items to retrieve (default 25)offset - starting offset in the collection (default 0)orderBy - list of OrderBy fieldHttpExceptionHttpBadRequestExceptionpublic ResponseList<StringTranslation> listStringTranslations(java.lang.Long projectId, ListStringTranslationsOptions options) throws HttpException, HttpBadRequestException
HttpExceptionHttpBadRequestExceptionpublic ResponseObject<StringTranslation> addTranslation(java.lang.Long projectId, AddStringTranslationRequest request) throws HttpException, HttpBadRequestException
projectId - project identifierrequest - request bodyHttpExceptionHttpBadRequestExceptionpublic void deleteStringTranslations(java.lang.Long projectId,
java.lang.Long stringId,
java.lang.String languageId)
throws HttpException,
HttpBadRequestException
projectId - project identifierstringId - string identifierlanguageId - language identifierHttpExceptionHttpBadRequestExceptionpublic ResponseObject<StringTranslation> getStringTranslation(java.lang.Long projectId, java.lang.Long translationId) throws HttpException, HttpBadRequestException
projectId - project identifiertranslationId - translation identifierHttpExceptionHttpBadRequestExceptionpublic void deleteStringTranslation(java.lang.Long projectId,
java.lang.Long translationId)
throws HttpException,
HttpBadRequestException
projectId - project identifiertranslationId - translation identifierHttpExceptionHttpBadRequestExceptionpublic ResponseObject<StringTranslation> restoreStringTranslation(java.lang.Long projectId, java.lang.Long translationId) throws HttpException, HttpBadRequestException
projectId - project identifiertranslationId - translation identifierHttpExceptionHttpBadRequestExceptionpublic ResponseList<Vote> listTranslationVotes(java.lang.Long projectId, java.lang.Long stringId, java.lang.String languageId, java.lang.Long translationId, java.lang.String labelIds, java.lang.String excludeLabelIds, java.lang.Integer limit, java.lang.Integer offset) throws HttpException, HttpBadRequestException
projectId - project identifierstringId - string identifierlanguageId - language identifiertranslationId - translation identifierlabelIds - filter votes by labelIdsexcludeLabelIds - exclude votes by labelIdslimit - maximum number of items to retrieve (default 25)offset - starting offset in the collection (default 0)HttpExceptionHttpBadRequestExceptionpublic ResponseList<Vote> listTranslationVotes(java.lang.Long projectId, ListTranslationVotesOptions options) throws HttpException, HttpBadRequestException
HttpExceptionHttpBadRequestExceptionpublic ResponseObject<Vote> addVote(java.lang.Long projectId, AddVoteRequest request) throws HttpException, HttpBadRequestException
projectId - project identifierrequest - request bodyHttpExceptionHttpBadRequestExceptionpublic ResponseObject<Vote> getVote(java.lang.Long projectId, java.lang.Long voteId) throws HttpException, HttpBadRequestException
projectId - project identifiervoteId - vote identifierHttpExceptionHttpBadRequestExceptionpublic void cancelVote(java.lang.Long projectId,
java.lang.Long voteId)
throws HttpException,
HttpBadRequestException
projectId - project identifiervoteId - vote identifierHttpExceptionHttpBadRequestException