Search in sources :

Example 1 with AtmosMoveResult

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;
}
Also used : ObjectPath(com.emc.atmos.api.ObjectPath) AtmosMoveResult(org.apache.camel.component.atmos.dto.AtmosMoveResult) AtmosResult(org.apache.camel.component.atmos.dto.AtmosResult)

Aggregations

ObjectPath (com.emc.atmos.api.ObjectPath)1 AtmosMoveResult (org.apache.camel.component.atmos.dto.AtmosMoveResult)1 AtmosResult (org.apache.camel.component.atmos.dto.AtmosResult)1