@Component @Transactional public class IfServiceRestService extends AbstractDaoRestService<OnmsMonitoredService,org.apache.cxf.jaxrs.ext.search.SearchBean,Integer,String>
OnmsMonitoredService entity.
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).
DEFAULT_LIMIT| Constructor and Description |
|---|
IfServiceRestService() |
| Modifier and Type | Method and Description |
|---|---|
protected JaxbListWrapper<OnmsMonitoredService> |
createListWrapper(Collection<OnmsMonitoredService> list) |
protected OnmsMonitoredService |
doGet(javax.ws.rs.core.UriInfo uriInfo,
String serviceName) |
protected javax.ws.rs.core.Response |
doUpdateProperties(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 CriteriaBuilder |
getCriteriaBuilder(javax.ws.rs.core.UriInfo uriInfo) |
protected MonitoredServiceDao |
getDao() |
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 and
orderBy expressions. |
mapDTOToEntity, mapEntityToDTOcreate, createSpecific, delete, deleteMany, doCreate, doDelete, doUpdate, get, get, getCount, getCriteria, getException, getProperties, getPropertyValues, getSearchBeanPropertyMap, sendEvent, update, updateMany, updateProperties, writeLock, writeUnlockprotected MonitoredServiceDao getDao()
getDao in class AbstractDaoRestServiceWithDTO<OnmsMonitoredService,OnmsMonitoredService,org.apache.cxf.jaxrs.ext.search.SearchBean,Integer,String>protected Class<OnmsMonitoredService> getDaoClass()
getDaoClass in class AbstractDaoRestServiceWithDTO<OnmsMonitoredService,OnmsMonitoredService,org.apache.cxf.jaxrs.ext.search.SearchBean,Integer,String>protected Class<org.apache.cxf.jaxrs.ext.search.SearchBean> getQueryBeanClass()
getQueryBeanClass in class AbstractDaoRestServiceWithDTO<OnmsMonitoredService,OnmsMonitoredService,org.apache.cxf.jaxrs.ext.search.SearchBean,Integer,String>protected CriteriaBuilder getCriteriaBuilder(javax.ws.rs.core.UriInfo uriInfo)
getCriteriaBuilder in class AbstractDaoRestServiceWithDTO<OnmsMonitoredService,OnmsMonitoredService,org.apache.cxf.jaxrs.ext.search.SearchBean,Integer,String>protected JaxbListWrapper<OnmsMonitoredService> createListWrapper(Collection<OnmsMonitoredService> list)
createListWrapper in class AbstractDaoRestServiceWithDTO<OnmsMonitoredService,OnmsMonitoredService,org.apache.cxf.jaxrs.ext.search.SearchBean,Integer,String>protected Set<SearchProperty> getQueryProperties()
AbstractDaoRestServiceWithDTOGet a list of query properties that this endpoint supports
for FIQL expressions and orderBy expressions.
getQueryProperties in class AbstractDaoRestServiceWithDTO<OnmsMonitoredService,OnmsMonitoredService,org.apache.cxf.jaxrs.ext.search.SearchBean,Integer,String>protected Map<String,CriteriaBehavior<?>> getCriteriaBehaviors()
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.
CriteriaBehavior to execute when this search term is specifiedgetCriteriaBehaviors in class AbstractDaoRestServiceWithDTO<OnmsMonitoredService,OnmsMonitoredService,org.apache.cxf.jaxrs.ext.search.SearchBean,Integer,String>protected javax.ws.rs.core.Response doUpdateProperties(javax.ws.rs.core.SecurityContext securityContext,
javax.ws.rs.core.UriInfo uriInfo,
OnmsMonitoredService targetObject,
MultivaluedMapImpl params)
doUpdateProperties in class AbstractDaoRestServiceWithDTO<OnmsMonitoredService,OnmsMonitoredService,org.apache.cxf.jaxrs.ext.search.SearchBean,Integer,String>protected OnmsMonitoredService doGet(javax.ws.rs.core.UriInfo uriInfo, String serviceName)
doGet in class AbstractDaoRestServiceWithDTO<OnmsMonitoredService,OnmsMonitoredService,org.apache.cxf.jaxrs.ext.search.SearchBean,Integer,String>Copyright © 2020. All rights reserved.