diff options
author | Eric Barboni <skygo@apache.org> | 2014-04-11 23:46:35 +0200 |
---|---|---|
committer | Eric Barboni <skygo@apache.org> | 2014-04-11 23:46:35 +0200 |
commit | 99117364be2b27ddb74fc6ffe3e052e0ad52d8dd (patch) | |
tree | 5aa6ee887b1cf3c1659f83b7c561a728c0ee4555 /archiva-modules/archiva-web/archiva-rest | |
parent | d44d957734badacce74293846d11b3b736b9a478 (diff) | |
download | archiva-99117364be2b27ddb74fc6ffe3e052e0ad52d8dd.tar.gz archiva-99117364be2b27ddb74fc6ffe3e052e0ad52d8dd.zip |
one move for all remaining override annotation
Diffstat (limited to 'archiva-modules/archiva-web/archiva-rest')
26 files changed, 133 insertions, 0 deletions
diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/model/BrowseResultEntry.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/model/BrowseResultEntry.java index 4b7816dce..38c19adb0 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/model/BrowseResultEntry.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/model/BrowseResultEntry.java @@ -75,6 +75,7 @@ public class BrowseResultEntry this.project = project; } + @Override public int compareTo( BrowseResultEntry browseGroupResultEntry ) { return this.name.compareTo( browseGroupResultEntry.name ); diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/model/CacheEntry.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/model/CacheEntry.java index 2f920d9d3..e92009077 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/model/CacheEntry.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/model/CacheEntry.java @@ -120,6 +120,7 @@ public class CacheEntry this.inMemorySize = inMemorySize; } + @Override public int compareTo( Object o ) { return this.key.compareTo( ( (CacheEntry) o ).key ); diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/AbstractRestService.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/AbstractRestService.java index 8534e0c96..6fb7d0bd0 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/AbstractRestService.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/AbstractRestService.java @@ -332,6 +332,7 @@ public abstract class AbstractRestService private static class SearchResultHitMap extends PropertyMap<SearchResultHit, Artifact> { + @Override protected void configure() { skip().setId( null ); diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultArchivaAdministrationService.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultArchivaAdministrationService.java index 854da3e59..9edafe78e 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultArchivaAdministrationService.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultArchivaAdministrationService.java @@ -63,6 +63,7 @@ public class DefaultArchivaAdministrationService @Inject private RepositoryContentConsumers repoConsumerUtil; + @Override public List<LegacyArtifactPath> getLegacyArtifactPaths() throws ArchivaRestServiceException { @@ -76,6 +77,7 @@ public class DefaultArchivaAdministrationService } } + @Override public void addLegacyArtifactPath( LegacyArtifactPath legacyArtifactPath ) throws ArchivaRestServiceException { @@ -107,6 +109,7 @@ public class DefaultArchivaAdministrationService } } + @Override public Boolean deleteLegacyArtifactPath( String path ) throws ArchivaRestServiceException { @@ -122,6 +125,7 @@ public class DefaultArchivaAdministrationService } + @Override public Boolean addFileTypePattern( String fileTypeId, String pattern ) throws ArchivaRestServiceException { @@ -136,6 +140,7 @@ public class DefaultArchivaAdministrationService } } + @Override public Boolean removeFileTypePattern( String fileTypeId, String pattern ) throws ArchivaRestServiceException { @@ -150,6 +155,7 @@ public class DefaultArchivaAdministrationService } } + @Override public FileType getFileType( String fileTypeId ) throws ArchivaRestServiceException { @@ -163,6 +169,7 @@ public class DefaultArchivaAdministrationService } } + @Override public void addFileType( FileType fileType ) throws ArchivaRestServiceException { @@ -176,6 +183,7 @@ public class DefaultArchivaAdministrationService } } + @Override public Boolean removeFileType( String fileTypeId ) throws ArchivaRestServiceException { @@ -190,6 +198,7 @@ public class DefaultArchivaAdministrationService } } + @Override public Boolean enabledKnownContentConsumer( String knownContentConsumer ) throws ArchivaRestServiceException { @@ -204,6 +213,7 @@ public class DefaultArchivaAdministrationService } } + @Override public void enabledKnownContentConsumers( List<String> knownContentConsumers ) throws ArchivaRestServiceException { @@ -217,6 +227,7 @@ public class DefaultArchivaAdministrationService } } + @Override public Boolean disabledKnownContentConsumer( String knownContentConsumer ) throws ArchivaRestServiceException { @@ -231,6 +242,7 @@ public class DefaultArchivaAdministrationService } } + @Override public Boolean enabledInvalidContentConsumer( String invalidContentConsumer ) throws ArchivaRestServiceException { @@ -245,6 +257,7 @@ public class DefaultArchivaAdministrationService } } + @Override public void enabledInvalidContentConsumers( List<String> invalidContentConsumers ) throws ArchivaRestServiceException { @@ -258,6 +271,7 @@ public class DefaultArchivaAdministrationService } } + @Override public Boolean disabledInvalidContentConsumer( String invalidContentConsumer ) throws ArchivaRestServiceException { @@ -272,6 +286,7 @@ public class DefaultArchivaAdministrationService } } + @Override public List<FileType> getFileTypes() throws ArchivaRestServiceException { @@ -290,6 +305,7 @@ public class DefaultArchivaAdministrationService } } + @Override public List<String> getKnownContentConsumers() throws ArchivaRestServiceException { @@ -303,6 +319,7 @@ public class DefaultArchivaAdministrationService } } + @Override public List<String> getInvalidContentConsumers() throws ArchivaRestServiceException { @@ -316,6 +333,7 @@ public class DefaultArchivaAdministrationService } } + @Override public OrganisationInformation getOrganisationInformation() throws ArchivaRestServiceException { @@ -329,6 +347,7 @@ public class DefaultArchivaAdministrationService } } + @Override public void setOrganisationInformation( OrganisationInformation organisationInformation ) throws ArchivaRestServiceException { @@ -342,12 +361,14 @@ public class DefaultArchivaAdministrationService } } + @Override public Boolean registrationDisabled() throws ArchivaRestServiceException { return getUiConfiguration().isDisableRegistration(); } + @Override public UiConfiguration getUiConfiguration() throws ArchivaRestServiceException { @@ -361,6 +382,7 @@ public class DefaultArchivaAdministrationService } } + @Override public void setUiConfiguration( UiConfiguration uiConfiguration ) throws ArchivaRestServiceException { @@ -378,6 +400,7 @@ public class DefaultArchivaAdministrationService } } + @Override public String getApplicationUrl() throws ArchivaRestServiceException { @@ -391,6 +414,7 @@ public class DefaultArchivaAdministrationService } } + @Override public NetworkConfiguration getNetworkConfiguration() throws ArchivaRestServiceException { @@ -404,6 +428,7 @@ public class DefaultArchivaAdministrationService } } + @Override public void setNetworkConfiguration( NetworkConfiguration networkConfiguration ) throws ArchivaRestServiceException { @@ -417,6 +442,7 @@ public class DefaultArchivaAdministrationService } } + @Override public List<AdminRepositoryConsumer> getKnownContentAdminRepositoryConsumers() throws ArchivaRestServiceException { @@ -435,6 +461,7 @@ public class DefaultArchivaAdministrationService } } + @Override public List<AdminRepositoryConsumer> getInvalidContentAdminRepositoryConsumers() throws ArchivaRestServiceException { diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultArchivaRuntimeConfigurationService.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultArchivaRuntimeConfigurationService.java index c83feb2b3..461b824b6 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultArchivaRuntimeConfigurationService.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultArchivaRuntimeConfigurationService.java @@ -52,6 +52,7 @@ public class DefaultArchivaRuntimeConfigurationService @Named( value = "fileLockManager#default" ) private FileLockManager fileLockManager; + @Override public ArchivaRuntimeConfiguration getArchivaRuntimeConfiguration() throws ArchivaRestServiceException { @@ -65,6 +66,7 @@ public class DefaultArchivaRuntimeConfigurationService } } + @Override public Boolean updateArchivaRuntimeConfiguration( ArchivaRuntimeConfiguration archivaRuntimeConfiguration ) throws ArchivaRestServiceException { diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultBrowseService.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultBrowseService.java index 507cfd50a..93e36284d 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultBrowseService.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultBrowseService.java @@ -108,6 +108,7 @@ public class DefaultBrowseService @Named( value = "browse#versionMetadata" ) private Cache<String, ProjectVersionMetadata> versionMetadataCache; + @Override public BrowseResult getRootGroups( String repositoryId ) throws ArchivaRestServiceException { @@ -154,6 +155,7 @@ public class DefaultBrowseService return new BrowseResult( browseGroupResultEntries ); } + @Override public BrowseResult browseGroupId( String groupId, String repositoryId ) throws ArchivaRestServiceException { @@ -210,6 +212,7 @@ public class DefaultBrowseService } + @Override public VersionsList getVersionsList( String groupId, String artifactId, String repositoryId ) throws ArchivaRestServiceException { @@ -258,6 +261,7 @@ public class DefaultBrowseService } } + @Override public ProjectVersionMetadata getProjectMetadata( String groupId, String artifactId, String version, String repositoryId ) throws ArchivaRestServiceException @@ -302,6 +306,7 @@ public class DefaultBrowseService } + @Override public ProjectVersionMetadata getProjectVersionMetadata( String groupId, String artifactId, String repositoryId ) throws ArchivaRestServiceException { @@ -462,6 +467,7 @@ public class DefaultBrowseService } } + @Override public List<TreeEntry> getTreeEntries( String groupId, String artifactId, String version, String repositoryId ) throws ArchivaRestServiceException { @@ -481,6 +487,7 @@ public class DefaultBrowseService return Collections.emptyList(); } + @Override public List<ManagedRepository> getUserRepositories() throws ArchivaRestServiceException { @@ -495,6 +502,7 @@ public class DefaultBrowseService } } + @Override public List<Artifact> getDependees( String groupId, String artifactId, String version, String repositoryId ) throws ArchivaRestServiceException { @@ -532,6 +540,7 @@ public class DefaultBrowseService return artifacts; } + @Override public List<Entry> getMetadatas( String groupId, String artifactId, String version, String repositoryId ) throws ArchivaRestServiceException { @@ -558,6 +567,7 @@ public class DefaultBrowseService return entries; } + @Override public Boolean addMetadata( String groupId, String artifactId, String version, String key, String value, String repositoryId ) throws ArchivaRestServiceException @@ -612,6 +622,7 @@ public class DefaultBrowseService return Boolean.TRUE; } + @Override public Boolean deleteMetadata( String groupId, String artifactId, String version, String key, String repositoryId ) throws ArchivaRestServiceException { @@ -660,6 +671,7 @@ public class DefaultBrowseService return Boolean.TRUE; } + @Override public List<ArtifactContentEntry> getArtifactContentEntries( String groupId, String artifactId, String version, String classifier, String type, String path, String repositoryId ) @@ -704,6 +716,7 @@ public class DefaultBrowseService return Collections.emptyList(); } + @Override public List<Artifact> getArtifactDownloadInfos( String groupId, String artifactId, String version, String repositoryId ) throws ArchivaRestServiceException @@ -746,6 +759,7 @@ public class DefaultBrowseService return artifactDownloadInfos; } + @Override public ArtifactContent getArtifactContentText( String groupId, String artifactId, String version, String classifier, String type, String path, String repositoryId ) throws ArchivaRestServiceException @@ -809,6 +823,7 @@ public class DefaultBrowseService return new ArtifactContent(); } + @Override public Boolean artifactAvailable( String groupId, String artifactId, String version, String classifier, String repositoryId ) throws ArchivaRestServiceException @@ -907,12 +922,14 @@ public class DefaultBrowseService return false; } + @Override public Boolean artifactAvailable( String groupId, String artifactId, String version, String repositoryId ) throws ArchivaRestServiceException { return artifactAvailable( groupId, artifactId, version, null, repositoryId ); } + @Override public List<Artifact> getArtifacts( String repositoryId ) throws ArchivaRestServiceException { @@ -932,6 +949,7 @@ public class DefaultBrowseService } } + @Override public Boolean importMetadata( MetadataAddRequest metadataAddRequest, String repositoryId ) throws ArchivaRestServiceException { diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultCommonServices.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultCommonServices.java index 4068f900e..795aaf169 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultCommonServices.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultCommonServices.java @@ -69,6 +69,7 @@ public class DefaultCommonServices getAllI18nResources( "fr" ); } + @Override public String getI18nResources( String locale ) throws ArchivaRestServiceException { @@ -144,6 +145,7 @@ public class DefaultCommonServices } } + @Override public String getAllI18nResources( String locale ) throws ArchivaRestServiceException { @@ -197,6 +199,7 @@ public class DefaultCommonServices } + @Override public Boolean validateCronExpression( String cronExpression ) throws ArchivaRestServiceException { diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultManagedRepositoriesService.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultManagedRepositoriesService.java index c5383bb28..9c10c9f09 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultManagedRepositoriesService.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultManagedRepositoriesService.java @@ -57,6 +57,7 @@ public class DefaultManagedRepositoriesService @Inject private RepositoryStatisticsManager repositoryStatisticsManager; + @Override public List<ManagedRepository> getManagedRepositories() throws ArchivaRestServiceException { @@ -72,6 +73,7 @@ public class DefaultManagedRepositoriesService } } + @Override public ManagedRepository getManagedRepository( String repositoryId ) throws ArchivaRestServiceException { @@ -87,6 +89,7 @@ public class DefaultManagedRepositoriesService } + @Override public Boolean deleteManagedRepository( String repoId, boolean deleteContent ) throws ArchivaRestServiceException { @@ -102,6 +105,7 @@ public class DefaultManagedRepositoriesService } } + @Override public ManagedRepository addManagedRepository( ManagedRepository managedRepository ) throws ArchivaRestServiceException { @@ -124,6 +128,7 @@ public class DefaultManagedRepositoriesService } + @Override public Boolean updateManagedRepository( ManagedRepository managedRepository ) throws ArchivaRestServiceException { @@ -141,6 +146,7 @@ public class DefaultManagedRepositoriesService } } + @Override public Boolean fileLocationExists( String fileLocation ) throws ArchivaRestServiceException { @@ -148,6 +154,7 @@ public class DefaultManagedRepositoriesService return new File( location ).exists(); } + @Override public ArchivaRepositoryStatistics getManagedRepositoryStatistics( String repositoryId, String lang ) throws ArchivaRestServiceException { @@ -188,6 +195,7 @@ public class DefaultManagedRepositoriesService return null; } + @Override public String getPomSnippet( String repositoryId ) throws ArchivaRestServiceException { diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultMergeRepositoriesService.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultMergeRepositoriesService.java index dc187afe9..a5c76b0b9 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultMergeRepositoriesService.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultMergeRepositoriesService.java @@ -57,6 +57,7 @@ public class DefaultMergeRepositoriesService private Maven2RepositoryMerger repositoryMerger; + @Override public List<Artifact> getMergeConflictedArtifacts( String sourceRepositoryId, String targetRepositoryId ) throws ArchivaRestServiceException { @@ -79,6 +80,7 @@ public class DefaultMergeRepositoriesService } } + @Override public void mergeRepositories( String sourceRepositoryId, String targetRepositoryId, boolean skipConflicts ) throws ArchivaRestServiceException { diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultNetworkProxyService.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultNetworkProxyService.java index a39e1b35a..6e3c0fec8 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultNetworkProxyService.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultNetworkProxyService.java @@ -40,6 +40,7 @@ public class DefaultNetworkProxyService @Inject private NetworkProxyAdmin networkProxyAdmin; + @Override public List<NetworkProxy> getNetworkProxies() throws ArchivaRestServiceException { @@ -54,6 +55,7 @@ public class DefaultNetworkProxyService } } + @Override public NetworkProxy getNetworkProxy( String networkProxyId ) throws ArchivaRestServiceException { @@ -67,6 +69,7 @@ public class DefaultNetworkProxyService } } + @Override public void addNetworkProxy( NetworkProxy networkProxy ) throws ArchivaRestServiceException { @@ -84,6 +87,7 @@ public class DefaultNetworkProxyService } } + @Override public void updateNetworkProxy( NetworkProxy networkProxy ) throws ArchivaRestServiceException { @@ -101,6 +105,7 @@ public class DefaultNetworkProxyService } } + @Override public Boolean deleteNetworkProxy( String networkProxyId ) throws ArchivaRestServiceException { diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultPingService.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultPingService.java index b9b0060ec..1d89c7e43 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultPingService.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultPingService.java @@ -30,11 +30,13 @@ import org.springframework.stereotype.Service; public class DefaultPingService implements PingService { + @Override public String ping() { return "Yeah Baby It rocks!"; } + @Override public String pingWithAuthz() { return ping(); diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultProxyConnectorRuleService.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultProxyConnectorRuleService.java index 3b13bd8b9..c645c3f3b 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultProxyConnectorRuleService.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultProxyConnectorRuleService.java @@ -41,6 +41,7 @@ public class DefaultProxyConnectorRuleService @Inject private ProxyConnectorRuleAdmin proxyConnectorRuleAdmin; + @Override public List<ProxyConnectorRule> getProxyConnectorRules() throws ArchivaRestServiceException { @@ -85,6 +86,7 @@ public class DefaultProxyConnectorRuleService } } + @Override public Boolean addProxyConnectorRule( ProxyConnectorRule proxyConnectorRule ) throws ArchivaRestServiceException { @@ -102,6 +104,7 @@ public class DefaultProxyConnectorRuleService } } + @Override public Boolean deleteProxyConnectorRule( ProxyConnectorRule proxyConnectorRule ) throws ArchivaRestServiceException { @@ -116,6 +119,7 @@ public class DefaultProxyConnectorRuleService } } + @Override public Boolean updateProxyConnectorRule( ProxyConnectorRule proxyConnectorRule ) throws ArchivaRestServiceException { diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultProxyConnectorService.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultProxyConnectorService.java index fa1861c70..b9557c030 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultProxyConnectorService.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultProxyConnectorService.java @@ -52,6 +52,7 @@ public class DefaultProxyConnectorService allPolicies = new ArrayList<>( getBeansOfType( applicationContext, Policy.class ).values() ); } + @Override public List<ProxyConnector> getProxyConnectors() throws ArchivaRestServiceException { @@ -66,6 +67,7 @@ public class DefaultProxyConnectorService } } + @Override public ProxyConnector getProxyConnector( String sourceRepoId, String targetRepoId ) throws ArchivaRestServiceException { @@ -79,6 +81,7 @@ public class DefaultProxyConnectorService } } + @Override public Boolean addProxyConnector( ProxyConnector proxyConnector ) throws ArchivaRestServiceException { @@ -96,6 +99,7 @@ public class DefaultProxyConnectorService } } + @Override public Boolean deleteProxyConnector( ProxyConnector proxyConnector ) throws ArchivaRestServiceException { @@ -113,6 +117,7 @@ public class DefaultProxyConnectorService } } + @Override public Boolean removeProxyConnector( String sourceRepoId, String targetRepoId ) throws ArchivaRestServiceException { @@ -126,6 +131,7 @@ public class DefaultProxyConnectorService return deleteProxyConnector( proxyConnector ); } + @Override public Boolean updateProxyConnector( ProxyConnector proxyConnector ) throws ArchivaRestServiceException { @@ -143,6 +149,7 @@ public class DefaultProxyConnectorService } } + @Override public List<PolicyInformation> getAllPolicyInformations() throws ArchivaRestServiceException { diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRedbackRuntimeConfigurationService.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRedbackRuntimeConfigurationService.java index c47e1d3bb..209c405c8 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRedbackRuntimeConfigurationService.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRedbackRuntimeConfigurationService.java @@ -91,6 +91,7 @@ public class DefaultRedbackRuntimeConfigurationService private LdapUserMapper ldapUserMapper; + @Override public RedbackRuntimeConfiguration getRedbackRuntimeConfiguration() throws ArchivaRestServiceException { @@ -104,6 +105,7 @@ public class DefaultRedbackRuntimeConfigurationService } } + @Override public Boolean updateRedbackRuntimeConfiguration( RedbackRuntimeConfiguration redbackRuntimeConfiguration ) throws ArchivaRestServiceException { @@ -189,6 +191,7 @@ public class DefaultRedbackRuntimeConfigurationService } } + @Override public List<UserManagerImplementationInformation> getUserManagerImplementationInformations() throws ArchivaRestServiceException { @@ -218,6 +221,7 @@ public class DefaultRedbackRuntimeConfigurationService return informations; } + @Override public List<RBACManagerImplementationInformation> getRbacManagerImplementationInformations() throws ArchivaRestServiceException { @@ -246,6 +250,7 @@ public class DefaultRedbackRuntimeConfigurationService return informations; } + @Override public RedbackImplementationsInformations getRedbackImplementationsInformations() throws ArchivaRestServiceException { @@ -253,6 +258,7 @@ public class DefaultRedbackRuntimeConfigurationService getRbacManagerImplementationInformations() ); } + @Override public Boolean checkLdapConnection() throws ArchivaRestServiceException { @@ -278,6 +284,7 @@ public class DefaultRedbackRuntimeConfigurationService return Boolean.TRUE; } + @Override public Boolean checkLdapConnection( LdapConfiguration ldapConfiguration ) throws ArchivaRestServiceException { diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRemoteRepositoriesService.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRemoteRepositoriesService.java index fd6c1a7ca..92508bfb5 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRemoteRepositoriesService.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRemoteRepositoriesService.java @@ -69,6 +69,7 @@ public class DefaultRemoteRepositoriesService @Inject private NetworkProxyAdmin networkProxyAdmin; + @Override public List<RemoteRepository> getRemoteRepositories() throws ArchivaRestServiceException { @@ -84,6 +85,7 @@ public class DefaultRemoteRepositoriesService } } + @Override public RemoteRepository getRemoteRepository( String repositoryId ) throws ArchivaRestServiceException { @@ -99,6 +101,7 @@ public class DefaultRemoteRepositoriesService return null; } + @Override public Boolean deleteRemoteRepository( String repositoryId ) throws ArchivaRestServiceException { @@ -113,6 +116,7 @@ public class DefaultRemoteRepositoriesService } } + @Override public Boolean addRemoteRepository( RemoteRepository remoteRepository ) throws ArchivaRestServiceException { @@ -127,6 +131,7 @@ public class DefaultRemoteRepositoriesService } } + @Override public Boolean updateRemoteRepository( RemoteRepository remoteRepository ) throws ArchivaRestServiceException { diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultReportRepositoriesService.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultReportRepositoriesService.java index 08c7c1d13..37b5f9b1f 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultReportRepositoriesService.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultReportRepositoriesService.java @@ -52,6 +52,7 @@ public class DefaultReportRepositoriesService @Inject private RepositoryStatisticsManager repositoryStatisticsManager; + @Override public List<RepositoryStatistics> getStatisticsReport( List<String> repositoriesId, int rowCount, Date startDate, Date endDate ) throws ArchivaRestServiceException @@ -124,6 +125,7 @@ public class DefaultReportRepositoriesService } } + @Override public List<RepositoryProblemFacet> getHealthReport( String repository, String groupId, int rowCount ) throws ArchivaRestServiceException { diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRepositoriesService.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRepositoriesService.java index c90589ce9..a623d82fe 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRepositoriesService.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRepositoriesService.java @@ -159,16 +159,19 @@ public class DefaultRepositoriesService private ChecksumAlgorithm[] algorithms = new ChecksumAlgorithm[]{ ChecksumAlgorithm.SHA1, ChecksumAlgorithm.MD5 }; + @Override public Boolean scanRepository( String repositoryId, boolean fullScan ) { return doScanRepository( repositoryId, fullScan ); } + @Override public Boolean alreadyScanning( String repositoryId ) { return repositoryTaskScheduler.isProcessingRepositoryTask( repositoryId ); } + @Override public Boolean removeScanningTaskFromQueue( String repositoryId ) { RepositoryTask task = new RepositoryTask(); @@ -184,6 +187,7 @@ public class DefaultRepositoriesService } } + @Override public Boolean scanRepositoryNow( String repositoryId, boolean fullScan ) throws ArchivaRestServiceException { @@ -210,6 +214,7 @@ public class DefaultRepositoriesService } } + @Override public Boolean scheduleDownloadRemoteIndex( String repositoryId, boolean now, boolean fullDownload ) throws ArchivaRestServiceException { @@ -225,6 +230,7 @@ public class DefaultRepositoriesService return Boolean.TRUE; } + @Override public Boolean copyArtifact( ArtifactTransferRequest artifactTransferRequest ) throws ArchivaRestServiceException { @@ -610,6 +616,7 @@ public class DefaultRepositoriesService } } + @Override public Boolean removeProjectVersion( String repositoryId, String namespace, String projectId, String version ) throws ArchivaRestServiceException { @@ -715,6 +722,7 @@ public class DefaultRepositoriesService return Boolean.TRUE; } + @Override public Boolean deleteArtifact( Artifact artifact ) throws ArchivaRestServiceException { @@ -958,6 +966,7 @@ public class DefaultRepositoriesService return Boolean.TRUE; } + @Override public Boolean deleteGroupId( String groupId, String repositoryId ) throws ArchivaRestServiceException { @@ -1013,6 +1022,7 @@ public class DefaultRepositoriesService return true; } + @Override public Boolean deleteProject( String groupId, String projectId, String repositoryId ) throws ArchivaRestServiceException { @@ -1077,6 +1087,7 @@ public class DefaultRepositoriesService } + @Override public Boolean isAuthorizedToDeleteArtifacts( String repoId ) throws ArchivaRestServiceException { @@ -1094,6 +1105,7 @@ public class DefaultRepositoriesService } } + @Override public RepositoryScanStatistics scanRepositoryDirectoriesNow( String repositoryId ) throws ArchivaRestServiceException { diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRepositoryGroupService.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRepositoryGroupService.java index 8269e763e..cbe4bfff7 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRepositoryGroupService.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRepositoryGroupService.java @@ -42,6 +42,7 @@ public class DefaultRepositoryGroupService @Inject private RepositoryGroupAdmin repositoryGroupAdmin; + @Override public List<RepositoryGroup> getRepositoriesGroups() throws ArchivaRestServiceException { @@ -63,6 +64,7 @@ public class DefaultRepositoryGroupService } } + @Override public RepositoryGroup getRepositoryGroup( String repositoryGroupId ) throws ArchivaRestServiceException { @@ -76,6 +78,7 @@ public class DefaultRepositoryGroupService return null; } + @Override public Boolean addRepositoryGroup( RepositoryGroup repoGroup ) throws ArchivaRestServiceException { @@ -93,6 +96,7 @@ public class DefaultRepositoryGroupService } } + @Override public Boolean updateRepositoryGroup( RepositoryGroup repoGroup ) throws ArchivaRestServiceException { @@ -110,6 +114,7 @@ public class DefaultRepositoryGroupService } } + @Override public Boolean deleteRepositoryGroup( String repositoryGroupId ) throws ArchivaRestServiceException { @@ -123,6 +128,7 @@ public class DefaultRepositoryGroupService } } + @Override public Boolean addRepositoryToGroup( String repositoryGroupId, String repositoryId ) throws ArchivaRestServiceException { @@ -136,6 +142,7 @@ public class DefaultRepositoryGroupService } } + @Override public Boolean deleteRepositoryFromGroup( String repositoryGroupId, String repositoryId ) throws ArchivaRestServiceException { diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultSearchService.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultSearchService.java index f17137365..a26fd7fdf 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultSearchService.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultSearchService.java @@ -53,6 +53,7 @@ public class DefaultSearchService @Inject private RepositorySearch repositorySearch; + @Override public List<Artifact> quickSearch( String queryString ) throws ArchivaRestServiceException { @@ -77,6 +78,7 @@ public class DefaultSearchService } } + @Override public List<Artifact> quickSearchWithRepositories( SearchRequest searchRequest ) throws ArchivaRestServiceException { @@ -106,6 +108,7 @@ public class DefaultSearchService } } + @Override public List<Artifact> getArtifactVersions( String groupId, String artifactId, String packaging ) throws ArchivaRestServiceException { @@ -131,6 +134,7 @@ public class DefaultSearchService } } + @Override public List<Artifact> searchArtifacts( SearchRequest searchRequest ) throws ArchivaRestServiceException { @@ -159,6 +163,7 @@ public class DefaultSearchService } } + @Override public GroupIdList getAllGroupIds( List<String> selectedRepos ) throws ArchivaRestServiceException { @@ -192,6 +197,7 @@ public class DefaultSearchService return null; //To change body of implemented methods use File | Settings | File Templates. } + @Override public StringList getObservablesRepoIds() throws ArchivaRestServiceException { diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultSystemStatusService.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultSystemStatusService.java index 62716ea9d..9f55c0294 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultSystemStatusService.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultSystemStatusService.java @@ -77,6 +77,7 @@ public class DefaultSystemStatusService caches = getBeansOfType( applicationContext, Cache.class ); } + @Override public String getMemoryStatus() throws ArchivaRestServiceException { @@ -93,6 +94,7 @@ public class DefaultSystemStatusService return l / ( 1024 * 1024 ) + "M"; } + @Override public String getCurrentServerTime( String locale ) throws ArchivaRestServiceException { @@ -100,6 +102,7 @@ public class DefaultSystemStatusService return sdf.format( new Date() ); } + @Override public List<QueueEntry> getQueueEntries() throws ArchivaRestServiceException { @@ -121,6 +124,7 @@ public class DefaultSystemStatusService } } + @Override public List<CacheEntry> getCacheEntries() throws ArchivaRestServiceException { @@ -142,6 +146,7 @@ public class DefaultSystemStatusService return cacheEntries; } + @Override public Boolean clearCache( String cacheKey ) throws ArchivaRestServiceException { @@ -156,6 +161,7 @@ public class DefaultSystemStatusService return Boolean.TRUE; } + @Override public Boolean clearAllCaches() throws ArchivaRestServiceException { @@ -166,6 +172,7 @@ public class DefaultSystemStatusService return Boolean.TRUE; } + @Override public List<RepositoryScannerStatistics> getRepositoryScannerStatistics() throws ArchivaRestServiceException { diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/interceptors/ArchivaRestServiceExceptionMapper.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/interceptors/ArchivaRestServiceExceptionMapper.java index 04e4ced19..ef75fc734 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/interceptors/ArchivaRestServiceExceptionMapper.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/interceptors/ArchivaRestServiceExceptionMapper.java @@ -35,6 +35,7 @@ import javax.ws.rs.ext.Provider; public class ArchivaRestServiceExceptionMapper implements ExceptionMapper<ArchivaRestServiceException> { + @Override public Response toResponse( ArchivaRestServiceException e ) { ArchivaRestError restError = new ArchivaRestError( e ); diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/utils/AddAdminRepoConsumerClosure.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/utils/AddAdminRepoConsumerClosure.java index 21d329f78..6a42c9518 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/utils/AddAdminRepoConsumerClosure.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/utils/AddAdminRepoConsumerClosure.java @@ -43,6 +43,7 @@ public class AddAdminRepoConsumerClosure this.selectedIds = selectedIds; } + @Override public void execute( Object input ) { if ( input instanceof RepositoryContentConsumer ) diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/utils/AdminRepositoryConsumerComparator.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/utils/AdminRepositoryConsumerComparator.java index 6cadd3da0..61daa4eeb 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/utils/AdminRepositoryConsumerComparator.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/utils/AdminRepositoryConsumerComparator.java @@ -38,6 +38,7 @@ public class AdminRepositoryConsumerComparator return INSTANCE; } + @Override public int compare( AdminRepositoryConsumer o1, AdminRepositoryConsumer o2 ) { if ( o1 == null && o2 == null ) diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/utils/ArtifactContentEntryComparator.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/utils/ArtifactContentEntryComparator.java index 088520078..a58593d9c 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/utils/ArtifactContentEntryComparator.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/utils/ArtifactContentEntryComparator.java @@ -30,6 +30,7 @@ public class ArtifactContentEntryComparator { public static final ArtifactContentEntryComparator INSTANCE = new ArtifactContentEntryComparator(); + @Override public int compare( ArtifactContentEntry artifactContentEntry, ArtifactContentEntry artifactContentEntry1 ) { // include depth too in comparaison ? diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/utils/ConsumerScanningStatisticsComparator.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/utils/ConsumerScanningStatisticsComparator.java index 34b0e598e..b90923c8b 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/utils/ConsumerScanningStatisticsComparator.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/utils/ConsumerScanningStatisticsComparator.java @@ -30,6 +30,7 @@ public class ConsumerScanningStatisticsComparator { public static final ConsumerScanningStatisticsComparator INSTANCE = new ConsumerScanningStatisticsComparator(); + @Override public int compare( ConsumerScanningStatistics one, ConsumerScanningStatistics two ) { if ( one == two ) diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/RepositoriesServiceTest.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/RepositoriesServiceTest.java index f0c44b51c..12070c3ac 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/RepositoriesServiceTest.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/RepositoriesServiceTest.java @@ -543,6 +543,7 @@ public class RepositoriesServiceTest true, false ); } + @Override protected ManagedRepository getTestManagedRepository() { return getTestManagedRepository( "TEST", "test-repo" ); |