Package org.opennms.web.rest.v2
Class MonitoringLocationRestService
- java.lang.Object
-
- org.opennms.web.rest.v2.AbstractDaoRestServiceWithDTO<T,T,Q,K,I>
-
- org.opennms.web.rest.v2.AbstractDaoRestService<OnmsMonitoringLocation,OnmsMonitoringLocation,String,String>
-
- org.opennms.web.rest.v2.MonitoringLocationRestService
-
@Component @Transactional public class MonitoringLocationRestService extends AbstractDaoRestService<OnmsMonitoringLocation,OnmsMonitoringLocation,String,String>
Basic Web Service using REST forOnmsMonitoringLocation
entity- Author:
- Seth Leger
-
-
Field Summary
-
Fields inherited from class org.opennms.web.rest.v2.AbstractDaoRestServiceWithDTO
DEFAULT_LIMIT
-
-
Constructor Summary
Constructors Constructor Description MonitoringLocationRestService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected JaxbListWrapper<OnmsMonitoringLocation>
createListWrapper(Collection<OnmsMonitoringLocation> list)
javax.ws.rs.core.Response
doCreate(javax.ws.rs.core.SecurityContext securityContext, javax.ws.rs.core.UriInfo uriInfo, OnmsMonitoringLocation location)
protected void
doDelete(javax.ws.rs.core.SecurityContext securityContext, javax.ws.rs.core.UriInfo uriInfo, OnmsMonitoringLocation location)
protected OnmsMonitoringLocation
doGet(javax.ws.rs.core.UriInfo uriInfo, String id)
protected javax.ws.rs.core.Response
doUpdate(javax.ws.rs.core.SecurityContext securityContext, javax.ws.rs.core.UriInfo uriInfo, String key, OnmsMonitoringLocation targetObject)
protected CriteriaBuilder
getCriteriaBuilder(javax.ws.rs.core.UriInfo uriInfo)
protected MonitoringLocationDao
getDao()
protected Class<OnmsMonitoringLocation>
getDaoClass()
protected Class<OnmsMonitoringLocation>
getQueryBeanClass()
protected Set<SearchProperty>
getQueryProperties()
Get a list of query properties that this endpoint supports for FIQL expressions andorderBy
expressions.-
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, doUpdateProperties, get, get, getCount, getCriteria, getCriteriaBehaviors, getException, getProperties, getPropertyValues, getSearchBeanPropertyMap, sendEvent, update, updateMany, updateProperties, writeLock, writeUnlock
-
-
-
-
Method Detail
-
getDao
protected MonitoringLocationDao getDao()
- Specified by:
getDao
in classAbstractDaoRestServiceWithDTO<OnmsMonitoringLocation,OnmsMonitoringLocation,OnmsMonitoringLocation,String,String>
-
getDaoClass
protected Class<OnmsMonitoringLocation> getDaoClass()
- Specified by:
getDaoClass
in classAbstractDaoRestServiceWithDTO<OnmsMonitoringLocation,OnmsMonitoringLocation,OnmsMonitoringLocation,String,String>
-
getQueryBeanClass
protected Class<OnmsMonitoringLocation> getQueryBeanClass()
- Specified by:
getQueryBeanClass
in classAbstractDaoRestServiceWithDTO<OnmsMonitoringLocation,OnmsMonitoringLocation,OnmsMonitoringLocation,String,String>
-
getCriteriaBuilder
protected CriteriaBuilder getCriteriaBuilder(javax.ws.rs.core.UriInfo uriInfo)
- Specified by:
getCriteriaBuilder
in classAbstractDaoRestServiceWithDTO<OnmsMonitoringLocation,OnmsMonitoringLocation,OnmsMonitoringLocation,String,String>
-
createListWrapper
protected JaxbListWrapper<OnmsMonitoringLocation> createListWrapper(Collection<OnmsMonitoringLocation> list)
- Specified by:
createListWrapper
in classAbstractDaoRestServiceWithDTO<OnmsMonitoringLocation,OnmsMonitoringLocation,OnmsMonitoringLocation,String,String>
-
getQueryProperties
protected Set<SearchProperty> getQueryProperties()
Description copied from class:AbstractDaoRestServiceWithDTO
Get a list of query properties that this endpoint supports for FIQL expressions and
orderBy
expressions.- Overrides:
getQueryProperties
in classAbstractDaoRestServiceWithDTO<OnmsMonitoringLocation,OnmsMonitoringLocation,OnmsMonitoringLocation,String,String>
- Returns:
-
doGet
protected OnmsMonitoringLocation doGet(javax.ws.rs.core.UriInfo uriInfo, String id)
- Specified by:
doGet
in classAbstractDaoRestServiceWithDTO<OnmsMonitoringLocation,OnmsMonitoringLocation,OnmsMonitoringLocation,String,String>
-
doCreate
public javax.ws.rs.core.Response doCreate(javax.ws.rs.core.SecurityContext securityContext, javax.ws.rs.core.UriInfo uriInfo, OnmsMonitoringLocation location)
- Overrides:
doCreate
in classAbstractDaoRestServiceWithDTO<OnmsMonitoringLocation,OnmsMonitoringLocation,OnmsMonitoringLocation,String,String>
-
doUpdate
protected javax.ws.rs.core.Response doUpdate(javax.ws.rs.core.SecurityContext securityContext, javax.ws.rs.core.UriInfo uriInfo, String key, OnmsMonitoringLocation targetObject)
- Overrides:
doUpdate
in classAbstractDaoRestServiceWithDTO<OnmsMonitoringLocation,OnmsMonitoringLocation,OnmsMonitoringLocation,String,String>
-
doDelete
protected void doDelete(javax.ws.rs.core.SecurityContext securityContext, javax.ws.rs.core.UriInfo uriInfo, OnmsMonitoringLocation location)
- Overrides:
doDelete
in classAbstractDaoRestServiceWithDTO<OnmsMonitoringLocation,OnmsMonitoringLocation,OnmsMonitoringLocation,String,String>
-
-