Search in sources :

Example 1 with IContentMoveable

use of org.polymap.service.fs.spi.IContentMoveable in project polymap4-core by Polymap4.

the class WebDavMoveableResource method moveTo.

@Override
public void moveTo(CollectionResource dest, String newName) throws ConflictException, NotAuthorizedException, BadRequestException {
    try {
        IPath destPath = ((ContentNodeResource) dest).getNode().getPath();
        ((IContentMoveable) node).moveTo(destPath, newName);
    } catch (IOException e) {
        log.warn("", e);
        throw new BadRequestException(this, e.getMessage());
    } catch (org.polymap.service.fs.spi.BadRequestException e) {
        throw new BadRequestException(this, e.getMessage());
    }
}
Also used : IPath(org.eclipse.core.runtime.IPath) IContentMoveable(org.polymap.service.fs.spi.IContentMoveable) BadRequestException(io.milton.http.exceptions.BadRequestException) IOException(java.io.IOException)

Aggregations

BadRequestException (io.milton.http.exceptions.BadRequestException)1 IOException (java.io.IOException)1 IPath (org.eclipse.core.runtime.IPath)1 IContentMoveable (org.polymap.service.fs.spi.IContentMoveable)1