protected boolean isRemoteStorageReachable( ResourceStoreRequest request ) throws StorageException { return getRemoteStorage().isReachable( this, request ); }
getRemoteStorage().validateStorageUrl( mirror.getUrl() ); getRemoteStorage().retrieveItem( this, request, mirror.getUrl() );
/** * Checks for remote existence of local item. * * @param localItem * @param request * @return * @throws RemoteAccessException * @throws StorageException */ protected boolean doCheckRemoteItemExistence( StorageItem localItem, ResourceStoreRequest request ) throws RemoteAccessException, RemoteStorageException { if ( localItem != null ) { return getRemoteStorage().containsItem( localItem.getModified(), this, request ); } else { return getRemoteStorage().containsItem( this, request ); } }
public void setRemoteUrl( String remoteUrl ) throws RemoteStorageException { if ( getRemoteStorage() != null ) { String newRemoteUrl = remoteUrl.trim(); String oldRemoteUrl = getRemoteUrl(); if ( !newRemoteUrl.endsWith( RepositoryItemUid.PATH_SEPARATOR ) ) { newRemoteUrl = newRemoteUrl + RepositoryItemUid.PATH_SEPARATOR; } getRemoteStorage().validateStorageUrl( newRemoteUrl ); getCurrentConfiguration( true ).getRemoteStorage().setUrl( newRemoteUrl ); if ( ( StringUtils.isEmpty( oldRemoteUrl ) && StringUtils.isNotEmpty( newRemoteUrl ) ) || ( StringUtils.isNotEmpty( oldRemoteUrl ) && !oldRemoteUrl.equals( newRemoteUrl ) ) ) { this.remoteUrlChanged = true; } } else { throw new RemoteStorageException( "No remote storage set on repository \"" + getName() + "\" (ID=\"" + getId() + "\"), cannot set remoteUrl!" ); } }
RemoteRepositoryStorage remoteStorage = getRemoteStorage();