Package org.opennms.web.rest.v2
Class NotificationRestService
- java.lang.Object
-
- org.opennms.web.rest.v2.AbstractDaoRestServiceWithDTO<T,T,Q,K,I>
-
- org.opennms.web.rest.v2.AbstractDaoRestService<OnmsNotification,org.apache.cxf.jaxrs.ext.search.SearchBean,Integer,Integer>
-
- org.opennms.web.rest.v2.NotificationRestService
-
@Component @Transactional public class NotificationRestService extends AbstractDaoRestService<OnmsNotification,org.apache.cxf.jaxrs.ext.search.SearchBean,Integer,Integer>
Basic Web Service using REST forOnmsNotificationentity.- Author:
- Seth Leger
-
-
Field Summary
-
Fields inherited from class org.opennms.web.rest.v2.AbstractDaoRestServiceWithDTO
DEFAULT_LIMIT
-
-
Constructor Summary
Constructors Constructor Description NotificationRestService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected JaxbListWrapper<OnmsNotification>createListWrapper(Collection<OnmsNotification> list)protected OnmsNotificationdoGet(javax.ws.rs.core.UriInfo uriInfo, Integer id)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 NotificationDaogetDao()protected Class<OnmsNotification>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, doUpdateProperties, get, get, getCount, getCriteria, getException, getProperties, getPropertyValues, getSearchBeanPropertyMap, sendEvent, update, updateMany, updateProperties, writeLock, writeUnlock
-
-
-
-
Method Detail
-
getDao
protected NotificationDao getDao()
- Specified by:
getDaoin classAbstractDaoRestServiceWithDTO<OnmsNotification,OnmsNotification,org.apache.cxf.jaxrs.ext.search.SearchBean,Integer,Integer>
-
getDaoClass
protected Class<OnmsNotification> getDaoClass()
- Specified by:
getDaoClassin classAbstractDaoRestServiceWithDTO<OnmsNotification,OnmsNotification,org.apache.cxf.jaxrs.ext.search.SearchBean,Integer,Integer>
-
getQueryBeanClass
protected Class<org.apache.cxf.jaxrs.ext.search.SearchBean> getQueryBeanClass()
- Specified by:
getQueryBeanClassin classAbstractDaoRestServiceWithDTO<OnmsNotification,OnmsNotification,org.apache.cxf.jaxrs.ext.search.SearchBean,Integer,Integer>
-
getCriteriaBuilder
protected CriteriaBuilder getCriteriaBuilder(javax.ws.rs.core.UriInfo uriInfo)
- Specified by:
getCriteriaBuilderin classAbstractDaoRestServiceWithDTO<OnmsNotification,OnmsNotification,org.apache.cxf.jaxrs.ext.search.SearchBean,Integer,Integer>
-
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<OnmsNotification,OnmsNotification,org.apache.cxf.jaxrs.ext.search.SearchBean,Integer,Integer>- 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<OnmsNotification,OnmsNotification,org.apache.cxf.jaxrs.ext.search.SearchBean,Integer,Integer>- Returns:
-
createListWrapper
protected JaxbListWrapper<OnmsNotification> createListWrapper(Collection<OnmsNotification> list)
- Specified by:
createListWrapperin classAbstractDaoRestServiceWithDTO<OnmsNotification,OnmsNotification,org.apache.cxf.jaxrs.ext.search.SearchBean,Integer,Integer>
-
doGet
protected OnmsNotification doGet(javax.ws.rs.core.UriInfo uriInfo, Integer id)
- Specified by:
doGetin classAbstractDaoRestServiceWithDTO<OnmsNotification,OnmsNotification,org.apache.cxf.jaxrs.ext.search.SearchBean,Integer,Integer>
-
-