1 package org.apache.maven.repository.legacy;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import java.io.File;
23
24 import org.apache.maven.artifact.Artifact;
25 import org.apache.maven.artifact.repository.ArtifactRepository;
26 import org.apache.maven.artifact.repository.metadata.RepositoryMetadata;
27
28
29
30
31 public interface UpdateCheckManager
32 {
33
34 boolean isUpdateRequired( Artifact artifact, ArtifactRepository repository );
35
36 void touch( Artifact artifact, ArtifactRepository repository, String error );
37
38 String getError( Artifact artifact, ArtifactRepository repository );
39
40 boolean isUpdateRequired( RepositoryMetadata metadata, ArtifactRepository repository, File file );
41
42 void touch( RepositoryMetadata metadata, ArtifactRepository repository, File file );
43
44 }