@Service(value="commonServices#rest") public class DefaultCommonServices extends Object implements CommonServices
Modifier and Type | Field and Description |
---|---|
protected org.apache.archiva.components.scheduler.CronExpressionValidator |
cronExpressionValidator |
Constructor and Description |
---|
DefaultCommonServices() |
Modifier and Type | Method and Description |
---|---|
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.
|
void |
init() |
Boolean |
validateCronExpression(String cronExpression) |
@Inject protected org.apache.archiva.components.scheduler.CronExpressionValidator cronExpressionValidator
public DefaultCommonServices()
@PostConstruct public void init() throws ArchivaRestServiceException
ArchivaRestServiceException
public String getI18nResources(String locale) throws ArchivaRestServiceException
CommonServices
getI18nResources
in interface CommonServices
ArchivaRestServiceException
public String getAllI18nResources(String locale) throws ArchivaRestServiceException
CommonServices
getAllI18nResources
in interface CommonServices
ArchivaRestServiceException
public Boolean validateCronExpression(String cronExpression) throws ArchivaRestServiceException
validateCronExpression
in interface CommonServices
ArchivaRestServiceException
Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.