Package org.opennms.web.rest.v2
Class IfServiceRestService
- java.lang.Object
 - 
- org.opennms.web.rest.v2.AbstractDaoRestServiceWithDTO<T,T,Q,K,I>
 - 
- org.opennms.web.rest.v2.AbstractDaoRestService<OnmsMonitoredService,org.apache.cxf.jaxrs.ext.search.SearchBean,Integer,String>
 - 
- org.opennms.web.rest.v2.IfServiceRestService
 
 
 
 
- 
@Component @Path("ifservices") @Transactional public class IfServiceRestService extends AbstractDaoRestService<OnmsMonitoredService,org.apache.cxf.jaxrs.ext.search.SearchBean,Integer,String>Basic Web Service using REST forOnmsMonitoredServiceentity.This end-point exist to retrieve and update a set of monitored services at once, based on a given criteria.
This facilitates moving services to maintenance mode (and restore the services to be online).
- Author:
 - Alejandro Galue
 
 
- 
- 
Field Summary
- 
Fields inherited from class org.opennms.web.rest.v2.AbstractDaoRestServiceWithDTO
DEFAULT_LIMIT 
 - 
 
- 
Constructor Summary
Constructors Constructor Description IfServiceRestService() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected JaxbListWrapper<OnmsMonitoredService>createListWrapper(Collection<OnmsMonitoredService> list)protected OnmsMonitoredServicedoGet(javax.ws.rs.core.UriInfo uriInfo, String serviceName)protected javax.ws.rs.core.ResponsedoUpdateProperties(javax.ws.rs.core.SecurityContext securityContext, javax.ws.rs.core.UriInfo uriInfo, OnmsMonitoredService targetObject, MultivaluedMapImpl params)protected Map<String,CriteriaBehavior<?>>getCriteriaBehaviors()Map CXF query bean properties to Criteria property names, conversions, and actions.protected CriteriaBuildergetCriteriaBuilder(javax.ws.rs.core.UriInfo uriInfo)protected MonitoredServiceDaogetDao()protected Class<OnmsMonitoredService>getDaoClass()protected Class<org.apache.cxf.jaxrs.ext.search.SearchBean>getQueryBeanClass()protected Set<SearchProperty>getQueryProperties()Get a list of query properties that this endpoint supports for FIQL expressions andorderByexpressions.- 
Methods inherited from class org.opennms.web.rest.v2.AbstractDaoRestService
mapDTOToEntity, mapEntityToDTO 
- 
Methods inherited from class org.opennms.web.rest.v2.AbstractDaoRestServiceWithDTO
applyLimitOffsetOrderBy, create, createSpecific, delete, deleteMany, doCreate, doDelete, doUpdate, get, get, getCount, getCriteria, getException, getProperties, getPropertyValues, getSearchBeanPropertyMap, sendEvent, update, updateMany, updateProperties, writeLock, writeUnlock 
 - 
 
 - 
 
- 
- 
Method Detail
- 
getDao
protected MonitoredServiceDao getDao()
- Specified by:
 getDaoin classAbstractDaoRestServiceWithDTO<OnmsMonitoredService,OnmsMonitoredService,org.apache.cxf.jaxrs.ext.search.SearchBean,Integer,String>
 
- 
getDaoClass
protected Class<OnmsMonitoredService> getDaoClass()
- Specified by:
 getDaoClassin classAbstractDaoRestServiceWithDTO<OnmsMonitoredService,OnmsMonitoredService,org.apache.cxf.jaxrs.ext.search.SearchBean,Integer,String>
 
- 
getQueryBeanClass
protected Class<org.apache.cxf.jaxrs.ext.search.SearchBean> getQueryBeanClass()
- Specified by:
 getQueryBeanClassin classAbstractDaoRestServiceWithDTO<OnmsMonitoredService,OnmsMonitoredService,org.apache.cxf.jaxrs.ext.search.SearchBean,Integer,String>
 
- 
getCriteriaBuilder
protected CriteriaBuilder getCriteriaBuilder(javax.ws.rs.core.UriInfo uriInfo)
- Specified by:
 getCriteriaBuilderin classAbstractDaoRestServiceWithDTO<OnmsMonitoredService,OnmsMonitoredService,org.apache.cxf.jaxrs.ext.search.SearchBean,Integer,String>
 
- 
createListWrapper
protected JaxbListWrapper<OnmsMonitoredService> createListWrapper(Collection<OnmsMonitoredService> list)
- Specified by:
 createListWrapperin classAbstractDaoRestServiceWithDTO<OnmsMonitoredService,OnmsMonitoredService,org.apache.cxf.jaxrs.ext.search.SearchBean,Integer,String>
 
- 
getQueryProperties
protected Set<SearchProperty> getQueryProperties()
Description copied from class:AbstractDaoRestServiceWithDTOGet a list of query properties that this endpoint supports for FIQL expressions and
orderByexpressions.- Overrides:
 getQueryPropertiesin classAbstractDaoRestServiceWithDTO<OnmsMonitoredService,OnmsMonitoredService,org.apache.cxf.jaxrs.ext.search.SearchBean,Integer,String>- Returns:
 
 
- 
getCriteriaBehaviors
protected Map<String,CriteriaBehavior<?>> getCriteriaBehaviors()
Description copied from class:AbstractDaoRestServiceWithDTOMap CXF query bean properties to Criteria property names, conversions, and actions. In the absence of a mapping, the query bean property will be specified directly as a Criteria property with the same name.
- Key: CXF query property name
 - Value: 
CriteriaBehaviorto execute when this search term is specified 
- Overrides:
 getCriteriaBehaviorsin classAbstractDaoRestServiceWithDTO<OnmsMonitoredService,OnmsMonitoredService,org.apache.cxf.jaxrs.ext.search.SearchBean,Integer,String>- Returns:
 
 
- 
doUpdateProperties
protected javax.ws.rs.core.Response doUpdateProperties(javax.ws.rs.core.SecurityContext securityContext, javax.ws.rs.core.UriInfo uriInfo, OnmsMonitoredService targetObject, MultivaluedMapImpl params)- Overrides:
 doUpdatePropertiesin classAbstractDaoRestServiceWithDTO<OnmsMonitoredService,OnmsMonitoredService,org.apache.cxf.jaxrs.ext.search.SearchBean,Integer,String>
 
- 
doGet
protected OnmsMonitoredService doGet(javax.ws.rs.core.UriInfo uriInfo, String serviceName)
- Specified by:
 doGetin classAbstractDaoRestServiceWithDTO<OnmsMonitoredService,OnmsMonitoredService,org.apache.cxf.jaxrs.ext.search.SearchBean,Integer,String>
 
 - 
 
 -