org.apache.archiva.rest.api.services
Interface CommonServices

All Known Implementing Classes:
DefaultCommonServices

public interface CommonServices

contains some "free" services (i18n)

Since:
1.4-M3
Author:
Olivier Lamy

Method Summary
 String getAllI18nResources(String locale)
          will return properties available in org/apache/archiva/i18n/default.properties load default (en) then override with locale used so at least en are returned if no translation in the locale asked.
 String getI18nResources(String locale)
          will return properties available in org/apache/archiva/i18n/default.properties load default (en) then override with locale used so at least en are returned if no translation in the locale asked.
 Boolean validateCronExpression(String cronExpression)
           
 

Method Detail

getI18nResources

String getI18nResources(String locale)
                        throws ArchivaRestServiceException
will return properties available in org/apache/archiva/i18n/default.properties load default (en) then override with locale used so at least en are returned if no translation in the locale asked.

Throws:
ArchivaRestServiceException

getAllI18nResources

String getAllI18nResources(String locale)
                           throws ArchivaRestServiceException
will return properties available in org/apache/archiva/i18n/default.properties load default (en) then override with locale used so at least en are returned if no translation in the locale asked. This method will add redback resources too. note Archva wins

Throws:
ArchivaRestServiceException

validateCronExpression

Boolean validateCronExpression(String cronExpression)
                               throws ArchivaRestServiceException
Throws:
ArchivaRestServiceException


Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.