org.apache.archiva.rest.services
Class DefaultCommonServices

java.lang.Object
  extended by org.apache.archiva.rest.services.DefaultCommonServices
All Implemented Interfaces:
org.apache.archiva.rest.api.services.CommonServices

@Service(value="commonServices#rest")
public class DefaultCommonServices
extends Object
implements org.apache.archiva.rest.api.services.CommonServices

Author:
Olivier Lamy

Field Summary
protected  org.apache.archiva.redback.components.scheduler.CronExpressionValidator cronExpressionValidator
           
 
Constructor Summary
DefaultCommonServices()
           
 
Method Summary
 String getAllI18nResources(String locale)
           
 String getI18nResources(String locale)
           
 void init()
           
 Boolean validateCronExpression(String cronExpression)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cronExpressionValidator

@Inject
protected org.apache.archiva.redback.components.scheduler.CronExpressionValidator cronExpressionValidator
Constructor Detail

DefaultCommonServices

public DefaultCommonServices()
Method Detail

init

@PostConstruct
public void init()
          throws org.apache.archiva.rest.api.services.ArchivaRestServiceException
Throws:
org.apache.archiva.rest.api.services.ArchivaRestServiceException

getI18nResources

public String getI18nResources(String locale)
                        throws org.apache.archiva.rest.api.services.ArchivaRestServiceException
Specified by:
getI18nResources in interface org.apache.archiva.rest.api.services.CommonServices
Throws:
org.apache.archiva.rest.api.services.ArchivaRestServiceException

getAllI18nResources

public String getAllI18nResources(String locale)
                           throws org.apache.archiva.rest.api.services.ArchivaRestServiceException
Specified by:
getAllI18nResources in interface org.apache.archiva.rest.api.services.CommonServices
Throws:
org.apache.archiva.rest.api.services.ArchivaRestServiceException

validateCronExpression

public Boolean validateCronExpression(String cronExpression)
                               throws org.apache.archiva.rest.api.services.ArchivaRestServiceException
Specified by:
validateCronExpression in interface org.apache.archiva.rest.api.services.CommonServices
Throws:
org.apache.archiva.rest.api.services.ArchivaRestServiceException


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