com.autonomy.nonaci.indexing.impl.DreUndeleteDocCommand Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of indexing-api Show documentation
Show all versions of indexing-api Show documentation
API for indexing into IDOL using Java
/*
* (c) Copyright 2008-2015 Micro Focus or one of its affiliates.
*
* Licensed under the MIT License (the "License"); you may not use this file
* except in compliance with the License.
*
* The only warranties for products and services of Micro Focus and its affiliates
* and licensors ("Micro Focus") are as may be set forth in the express warranty
* statements accompanying such products and services. Nothing herein should be
* construed as constituting an additional warranty. Micro Focus shall not be
* liable for technical or editorial errors or omissions contained herein. The
* information contained herein is subject to change without notice.
*/
package com.autonomy.nonaci.indexing.impl;
/**
* Allows you to restore documents deleted by the the DREDELETEDOC command. If you used the
* DREDELETEDOC command to delete documents from IDOL server’s data index, you can use the
* DREUNDELETEDOC command to restore some or all of the individual documents; provided you have not executed
* a DRECOMPACT command which removes unused documents and space from IDOL server.
*
* @author boba
*/
public class DreUndeleteDocCommand extends IndexCommandImpl {
/** Creates a new instance of DreUndeleteDocCommand. */
public DreUndeleteDocCommand() {
super(CMD_DREUNDELETEDOC);
}
public String getDocs() {
return get(PARAM_DOCS);
}
/**
* Specify one or more individual documents and / or a range of documents that you want to restore. You can use the
* following formats to do this (if you want to combine the two formats you must separate them with plus symbols
* with no spaces before or after a plus symbol):
*
*
* - doc IDs
* - Specify the IDs of one or more documents. If you want to specify multiple document IDs, you must separate
* them with plus symbols (there must be no space before or after a plus symbol).
* - range=[<first doc>,<last doc>]
* - Enter the document ID of the first and last document in a range of documents that you want to restore. You
* can restore up to 5000 documents at a time.
*
*
* @param docs The IDs of the documents to be restored.
*/
public void setDocs(final String docs) {
put(PARAM_DOCS, docs);
}
} // End of class DreUndeleteDocCommand...