mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-01 19:15:52 +01:00
Mark old import handler api as deprecated
This commit is contained in:
@@ -41,8 +41,10 @@ import java.util.List;
|
||||
* {@link AdvancedImportHandler}.
|
||||
*
|
||||
* @author Sebastian Sdorra
|
||||
* @since 1.12
|
||||
* @deprecated
|
||||
* @since 2.11.0
|
||||
*/
|
||||
@Deprecated
|
||||
public abstract class AbstactImportHandler implements AdvancedImportHandler
|
||||
{
|
||||
|
||||
|
||||
@@ -30,8 +30,10 @@ package sonia.scm.repository;
|
||||
* {@link ImportHandler}.
|
||||
*
|
||||
* @author Sebastian Sdorra
|
||||
* @since 1.43
|
||||
* @deprecated
|
||||
* @since 2.11.0
|
||||
*/
|
||||
@Deprecated
|
||||
public interface AdvancedImportHandler extends ImportHandler
|
||||
{
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
|
||||
package sonia.scm.repository;
|
||||
|
||||
//~--- JDK imports ------------------------------------------------------------
|
||||
@@ -33,20 +33,20 @@ import java.util.List;
|
||||
* Searches and import existing repositories.
|
||||
*
|
||||
* @author Sebastian Sdorra
|
||||
* @since 1.12
|
||||
* @since 2.11.0
|
||||
* @deprecated
|
||||
*/
|
||||
public interface ImportHandler
|
||||
{
|
||||
@Deprecated
|
||||
public interface ImportHandler {
|
||||
|
||||
/**
|
||||
* Import existing and non managed repositories.
|
||||
*
|
||||
*
|
||||
* @param manager The global {@link RepositoryManager}
|
||||
*
|
||||
*
|
||||
* @return a {@link List} names of imported repositories
|
||||
* @throws IOException
|
||||
* @since 2.11.0
|
||||
* @deprecated
|
||||
*/
|
||||
public List<String> importRepositories(RepositoryManager manager) throws IOException;
|
||||
}
|
||||
|
||||
@@ -38,11 +38,13 @@ import static com.google.common.base.Preconditions.checkNotNull;
|
||||
* Import result of the {@link AdvancedImportHandler}.
|
||||
*
|
||||
* @author Sebastian Sdorra
|
||||
* @since 1.43
|
||||
* @deprecated
|
||||
* @since 2.11.0
|
||||
*/
|
||||
@EqualsAndHashCode
|
||||
@ToString
|
||||
@Getter
|
||||
@Deprecated
|
||||
public final class ImportResult {
|
||||
|
||||
/**
|
||||
|
||||
@@ -48,7 +48,8 @@ public interface RepositoryHandler
|
||||
*
|
||||
*
|
||||
* @return {@link ImportHandler} for the repository type of this handler
|
||||
* @since 1.12
|
||||
* @deprecated
|
||||
* @since 2.11.0
|
||||
*
|
||||
* @throws FeatureNotSupportedException
|
||||
*/
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
|
||||
package sonia.scm.repository;
|
||||
|
||||
//~--- non-JDK imports --------------------------------------------------------
|
||||
@@ -30,16 +30,19 @@ import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Sebastian Sdorra
|
||||
*/
|
||||
public class GitImportHandler extends AbstactImportHandler
|
||||
{
|
||||
@Deprecated
|
||||
public class GitImportHandler extends AbstactImportHandler {
|
||||
|
||||
/** Field description */
|
||||
/**
|
||||
* Field description
|
||||
*/
|
||||
public static final String GIT_DIR = ".git";
|
||||
|
||||
/** Field description */
|
||||
/**
|
||||
* Field description
|
||||
*/
|
||||
public static final String GIT_DIR_REFS = "refs";
|
||||
|
||||
/**
|
||||
@@ -53,11 +56,9 @@ public class GitImportHandler extends AbstactImportHandler
|
||||
/**
|
||||
* Constructs ...
|
||||
*
|
||||
*
|
||||
* @param handler
|
||||
*/
|
||||
public GitImportHandler(GitRepositoryHandler handler)
|
||||
{
|
||||
public GitImportHandler(GitRepositoryHandler handler) {
|
||||
this.handler = handler;
|
||||
}
|
||||
|
||||
@@ -66,29 +67,27 @@ public class GitImportHandler extends AbstactImportHandler
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
protected String[] getDirectoryNames()
|
||||
{
|
||||
return new String[] { GIT_DIR, GIT_DIR_REFS };
|
||||
protected String[] getDirectoryNames() {
|
||||
return new String[]{GIT_DIR, GIT_DIR_REFS};
|
||||
}
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
protected AbstractRepositoryHandler<?> getRepositoryHandler()
|
||||
{
|
||||
protected AbstractRepositoryHandler<?> getRepositoryHandler() {
|
||||
return handler;
|
||||
}
|
||||
|
||||
//~--- fields ---------------------------------------------------------------
|
||||
|
||||
/** Field description */
|
||||
/**
|
||||
* Field description
|
||||
*/
|
||||
private GitRepositoryHandler handler;
|
||||
}
|
||||
|
||||
@@ -41,7 +41,10 @@ import java.io.IOException;
|
||||
/**
|
||||
*
|
||||
* @author Sebastian Sdorra
|
||||
* @deprecated
|
||||
* @since 2.11.0
|
||||
*/
|
||||
@Deprecated
|
||||
public class HgImportHandler extends AbstactImportHandler
|
||||
{
|
||||
|
||||
|
||||
@@ -27,7 +27,10 @@ package sonia.scm.repository;
|
||||
/**
|
||||
*
|
||||
* @author Sebastian Sdorra
|
||||
* @deprecated
|
||||
* @since 2.11.0
|
||||
*/
|
||||
@Deprecated
|
||||
public class SvnImportHandler extends AbstactImportHandler
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user