diff options
author | Olivier Lamy <olamy@apache.org> | 2015-01-12 17:07:54 +1100 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2015-01-12 17:07:54 +1100 |
commit | 61c83ff3d94c6e2e7a26319992a4ce7398562977 (patch) | |
tree | 59f60262bfe310ac99fb614e835e4e7960eef869 /archiva-modules/archiva-scheduler | |
parent | 775f7efbf32171d0b07150b41eec273d84992cea (diff) | |
download | archiva-61c83ff3d94c6e2e7a26319992a4ce7398562977.tar.gz archiva-61c83ff3d94c6e2e7a26319992a4ce7398562977.zip |
[MRM-1867] Adding a find jar by checksum functionality to the REST api
Diffstat (limited to 'archiva-modules/archiva-scheduler')
-rw-r--r-- | archiva-modules/archiva-scheduler/archiva-scheduler-repository-api/src/main/java/org/apache/archiva/scheduler/repository/model/RepositoryTask.java | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/archiva-modules/archiva-scheduler/archiva-scheduler-repository-api/src/main/java/org/apache/archiva/scheduler/repository/model/RepositoryTask.java b/archiva-modules/archiva-scheduler/archiva-scheduler-repository-api/src/main/java/org/apache/archiva/scheduler/repository/model/RepositoryTask.java index e4a562075..c665a79a9 100644 --- a/archiva-modules/archiva-scheduler/archiva-scheduler-repository-api/src/main/java/org/apache/archiva/scheduler/repository/model/RepositoryTask.java +++ b/archiva-modules/archiva-scheduler/archiva-scheduler-repository-api/src/main/java/org/apache/archiva/scheduler/repository/model/RepositoryTask.java @@ -26,8 +26,6 @@ import java.io.File; /** * DataRefreshTask - task for discovering changes in the repository * and updating all associated data. - * - * */ public class RepositoryTask implements Task @@ -40,6 +38,22 @@ public class RepositoryTask private boolean scanAll; + public RepositoryTask() + { + // no op + } + + public RepositoryTask( String repositoryId ) + { + this.repositoryId = repositoryId; + } + + public RepositoryTask( String repositoryId, boolean scanAll ) + { + this.repositoryId = repositoryId; + this.scanAll = scanAll; + } + public boolean isScanAll() { return scanAll; |