Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/**
* The MIT License (MIT)
*
* Copyright (C) 2011-2016 Incapture Technologies LLC
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
/**
* This file is autogenerated and any changes will be overwritten.
*/
package rapture.common.client;
import java.util.List;
import java.util.Map;
import rapture.common.api.DocApi;
import rapture.common.api.ScriptDocApi;
import rapture.common.CallingContext;
import rapture.common.model.GeneralResponse;
import rapture.common.model.BasePayload;
import rapture.common.exception.RaptureException;
import rapture.common.impl.jackson.JacksonUtil;
import com.fasterxml.jackson.core.type.TypeReference;
import org.apache.log4j.Logger;
import rapture.common.model.DocumentRepoConfig;
import rapture.common.model.DocumentMetadata;
import rapture.common.RaptureFolderInfo;
import rapture.common.RaptureIdGenConfig;
import rapture.common.model.DocumentWithMeta;
import rapture.common.XferDocumentAttribute;
import rapture.common.model.DocWriteHandle;
import rapture.common.shared.doc.ValidateDocRepoPayload;
import rapture.common.shared.doc.CreateDocRepoPayload;
import rapture.common.shared.doc.DocRepoExistsPayload;
import rapture.common.shared.doc.DocExistsPayload;
import rapture.common.shared.doc.GetDocRepoConfigPayload;
import rapture.common.shared.doc.GetDocRepoStatusPayload;
import rapture.common.shared.doc.GetDocRepoConfigsPayload;
import rapture.common.shared.doc.DeleteDocRepoPayload;
import rapture.common.shared.doc.ArchiveRepoDocsPayload;
import rapture.common.shared.doc.GetDocAndMetaPayload;
import rapture.common.shared.doc.GetDocMetaPayload;
import rapture.common.shared.doc.RevertDocPayload;
import rapture.common.shared.doc.GetDocPayload;
import rapture.common.shared.doc.PutDocPayload;
import rapture.common.shared.doc.PutDocWithVersionPayload;
import rapture.common.shared.doc.PutDocWithEventContextPayload;
import rapture.common.shared.doc.DeleteDocPayload;
import rapture.common.shared.doc.RenameDocPayload;
import rapture.common.shared.doc.GetDocsPayload;
import rapture.common.shared.doc.GetDocAndMetasPayload;
import rapture.common.shared.doc.DocsExistPayload;
import rapture.common.shared.doc.PutDocsPayload;
import rapture.common.shared.doc.RenameDocsPayload;
import rapture.common.shared.doc.DeleteDocsByUriPrefixPayload;
import rapture.common.shared.doc.ListDocsByUriPrefixPayload;
import rapture.common.shared.doc.SetDocAttributePayload;
import rapture.common.shared.doc.SetDocAttributesPayload;
import rapture.common.shared.doc.GetDocAttributePayload;
import rapture.common.shared.doc.GetDocAttributesPayload;
import rapture.common.shared.doc.DeleteDocAttributePayload;
import rapture.common.shared.doc.GetDocRepoIdGenUriPayload;
import rapture.common.shared.doc.SetDocRepoIdGenConfigPayload;
import rapture.common.shared.doc.GetDocRepoIdGenConfigPayload;
@SuppressWarnings("all")
public class HttpDocApi extends BaseHttpApi implements DocApi, ScriptDocApi {
private static final Logger log = Logger.getLogger(HttpDocApi.class);
public HttpDocApi(HttpLoginApi login) {
super(login, "doc");
}
private static final class ValidateDocRepoTypeReference extends TypeReference {
}
@Override
public Boolean validateDocRepo(CallingContext context, String docRepoUri) {
ValidateDocRepoPayload requestObj = new ValidateDocRepoPayload();
requestObj.setContext(context == null ? this.getContext() : context);
requestObj.setDocRepoUri(docRepoUri);
return doRequest(requestObj, "VALIDATEDOCREPO", new ValidateDocRepoTypeReference()); }
@Override
public void createDocRepo(CallingContext context, String docRepoUri, String config) {
CreateDocRepoPayload requestObj = new CreateDocRepoPayload();
requestObj.setContext(context == null ? this.getContext() : context);
requestObj.setDocRepoUri(docRepoUri);
requestObj.setConfig(config);
doRequest(requestObj, "CREATEDOCREPO", null); }
private static final class DocRepoExistsTypeReference extends TypeReference {
}
@Override
public Boolean docRepoExists(CallingContext context, String docRepoUri) {
DocRepoExistsPayload requestObj = new DocRepoExistsPayload();
requestObj.setContext(context == null ? this.getContext() : context);
requestObj.setDocRepoUri(docRepoUri);
return doRequest(requestObj, "DOCREPOEXISTS", new DocRepoExistsTypeReference()); }
private static final class DocExistsTypeReference extends TypeReference {
}
@Override
public Boolean docExists(CallingContext context, String docUri) {
DocExistsPayload requestObj = new DocExistsPayload();
requestObj.setContext(context == null ? this.getContext() : context);
requestObj.setDocUri(docUri);
return doRequest(requestObj, "DOCEXISTS", new DocExistsTypeReference()); }
private static final class GetDocRepoConfigTypeReference extends TypeReference {
}
@Override
public DocumentRepoConfig getDocRepoConfig(CallingContext context, String docRepoUri) {
GetDocRepoConfigPayload requestObj = new GetDocRepoConfigPayload();
requestObj.setContext(context == null ? this.getContext() : context);
requestObj.setDocRepoUri(docRepoUri);
return doRequest(requestObj, "GETDOCREPOCONFIG", new GetDocRepoConfigTypeReference()); }
private static final class GetDocRepoStatusTypeReference extends TypeReference