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 forOnmsMonitoringLocationentity- 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.ResponsedoCreate(javax.ws.rs.core.SecurityContext securityContext, javax.ws.rs.core.UriInfo uriInfo, OnmsMonitoringLocation location)protected voiddoDelete(javax.ws.rs.core.SecurityContext securityContext, javax.ws.rs.core.UriInfo uriInfo, OnmsMonitoringLocation location)protected OnmsMonitoringLocationdoGet(javax.ws.rs.core.UriInfo uriInfo, String id)protected javax.ws.rs.core.ResponsedoUpdate(javax.ws.rs.core.SecurityContext securityContext, javax.ws.rs.core.UriInfo uriInfo, String key, OnmsMonitoringLocation targetObject)protected CriteriaBuildergetCriteriaBuilder(javax.ws.rs.core.UriInfo uriInfo)protected MonitoringLocationDaogetDao()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 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, doUpdateProperties, get, get, getCount, getCriteria, getCriteriaBehaviors, getException, getProperties, getPropertyValues, getSearchBeanPropertyMap, sendEvent, update, updateMany, updateProperties, writeLock, writeUnlock
-
-
-
-
Method Detail
-
getDao
protected MonitoringLocationDao getDao()
- Specified by:
getDaoin classAbstractDaoRestServiceWithDTO<OnmsMonitoringLocation,OnmsMonitoringLocation,OnmsMonitoringLocation,String,String>
-
getDaoClass
protected Class<OnmsMonitoringLocation> getDaoClass()
- Specified by:
getDaoClassin classAbstractDaoRestServiceWithDTO<OnmsMonitoringLocation,OnmsMonitoringLocation,OnmsMonitoringLocation,String,String>
-
getQueryBeanClass
protected Class<OnmsMonitoringLocation> getQueryBeanClass()
- Specified by:
getQueryBeanClassin classAbstractDaoRestServiceWithDTO<OnmsMonitoringLocation,OnmsMonitoringLocation,OnmsMonitoringLocation,String,String>
-
getCriteriaBuilder
protected CriteriaBuilder getCriteriaBuilder(javax.ws.rs.core.UriInfo uriInfo)
- Specified by:
getCriteriaBuilderin classAbstractDaoRestServiceWithDTO<OnmsMonitoringLocation,OnmsMonitoringLocation,OnmsMonitoringLocation,String,String>
-
createListWrapper
protected JaxbListWrapper<OnmsMonitoringLocation> createListWrapper(Collection<OnmsMonitoringLocation> list)
- Specified by:
createListWrapperin classAbstractDaoRestServiceWithDTO<OnmsMonitoringLocation,OnmsMonitoringLocation,OnmsMonitoringLocation,String,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<OnmsMonitoringLocation,OnmsMonitoringLocation,OnmsMonitoringLocation,String,String>- Returns:
-
doGet
protected OnmsMonitoringLocation doGet(javax.ws.rs.core.UriInfo uriInfo, String id)
- Specified by:
doGetin 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:
doCreatein 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:
doUpdatein 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:
doDeletein classAbstractDaoRestServiceWithDTO<OnmsMonitoringLocation,OnmsMonitoringLocation,OnmsMonitoringLocation,String,String>
-
-