idataprovider.java
来自「web版的SVN客户端」· Java 代码 · 共 65 行
JAVA
65 行
/*
* Copyright (c) 2004, 2005 Polarion Software, All rights reserved.
* Email: community@polarion.org
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 (the "License"). You may not use
* this file except in compliance with the License. Copy of the License is
* located in the file LICENSE.txt in the project distribution. You may also
* obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
*
*
* POLARION SOFTWARE MAKES NO REPRESENTATIONS OR WARRANTIES
* ABOUT THE SUITABILITY OF THE SOFTWARE, EITHER EXPRESSED OR IMPLIED,
* INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. POLARION SOFTWARE
* SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT
* OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
*/
package org.polarion.svnwebclient.data;
import java.util.List;
import org.polarion.svnwebclient.authorization.UserCredentials;
import org.polarion.svnwebclient.data.model.DataChangedElement;
import org.polarion.svnwebclient.data.model.DataDirectoryElement;
import org.polarion.svnwebclient.data.model.DataFile;
import org.polarion.svnwebclient.data.model.DataFileElement;
import org.polarion.svnwebclient.data.model.DataRepositoryElement;
import org.polarion.svnwebclient.data.model.DataRevision;
/**
* Interface to SVN repository
*
* @author <A HREF="mailto:svnbrowser@polarion.org">Polarion Software </A>
*/
public interface IDataProvider {
int NOT_EXIST = 0;
int FILE = 1;
int DIRECTORY = 2;
int UNKNOWN = 3;
void connect(UserCredentials credentials, String id, String url) throws DataProviderException;
void close() throws DataProviderException;
long getHeadRevision() throws DataProviderException;
DataDirectoryElement getDirectory(String url, long revision) throws DataProviderException;
DataDirectoryElement getDirectory(String url, long revision, boolean recusive) throws DataProviderException;
List getRevisions(String url, long fromRevision, long toRevision, long count) throws DataProviderException;
String getLocation(String url, long pegRevision, long revision) throws DataProviderException;
DataRepositoryElement getInfo(String url, long revision) throws DataProviderException;
DataFileElement getFile(String url, long revision) throws DataProviderException;
DataFile getFileData(String url, long revision) throws DataProviderException;
List getAnnotation(String url, long revision) throws DataProviderException;
DataRevision getRevisionInfo(long revision) throws DataProviderException;
boolean isBinaryFile(String url, long revision) throws DataProviderException;
void testConnection() throws AuthenticationException;
DataChangedElement createDirectory(String url, String name, String comment) throws DataProviderException;
DataChangedElement addFile(String url, String path, String comment) throws DataProviderException;
DataChangedElement delete(String url, List elements, String comment) throws DataProviderException;
DataChangedElement commitFile(String url, String path, String comment) throws DataProviderException;
List compareDirectoryRevisions(String url, long startRevision, long endRevision) throws DataProviderException;
String getFileDifference(String url, long startRevision, long endRevision, String pathToStart, String pathToEnd) throws DataProviderException;
int checkUrl(String url, long revision) throws DataProviderException;
public void setRelativeLocation(String id, String url);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?