use of org.apache.camel.component.atmos.dto.AtmosMoveResult in project camel by apache.
the class AtmosAPIFacade method move.
/**
* Rename a remote path with the new path location.
*
* @param remotePath the existing remote path to be renamed
* @param newRemotePath the new remote path substituting the old one
* @return a AtmosResult object with the result of the move operation.
* @throws AtmosException
*/
public AtmosResult move(String remotePath, String newRemotePath) throws AtmosException {
AtmosResult result = null;
AtmosAPIFacade.client.move(new ObjectPath(remotePath), new ObjectPath(newRemotePath), true);
result = new AtmosMoveResult();
result.setResultEntries(remotePath + "-" + newRemotePath);
return result;
}
Aggregations