Package org.opennms.web.rest.v2
Class NodeMonitoredServiceRestService
- java.lang.Object
-
- org.opennms.web.rest.v2.AbstractDaoRestServiceWithDTO<T,T,Q,K,I>
-
- org.opennms.web.rest.v2.AbstractDaoRestService<T,Q,K,I>
-
- org.opennms.web.rest.v2.AbstractNodeDependentRestService<OnmsMonitoredService,OnmsMonitoredService,java.lang.Integer,java.lang.String>
-
- org.opennms.web.rest.v2.NodeMonitoredServiceRestService
-
@Component @Transactional public class NodeMonitoredServiceRestService extends AbstractNodeDependentRestService<OnmsMonitoredService,OnmsMonitoredService,java.lang.Integer,java.lang.String>
Basic Web Service using REST forOnmsIpInterface
entity.- Author:
- Alejandro Galue
-
-
Field Summary
-
Fields inherited from class org.opennms.web.rest.v2.AbstractNodeDependentRestService
m_nodeDao
-
Fields inherited from class org.opennms.web.rest.v2.AbstractDaoRestServiceWithDTO
DEFAULT_LIMIT
-
-
Constructor Summary
Constructors Constructor Description NodeMonitoredServiceRestService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected JaxbListWrapper<OnmsMonitoredService>
createListWrapper(java.util.Collection<OnmsMonitoredService> list)
protected javax.ws.rs.core.Response
doCreate(javax.ws.rs.core.SecurityContext securityContext, javax.ws.rs.core.UriInfo uriInfo, OnmsMonitoredService service)
protected void
doDelete(javax.ws.rs.core.SecurityContext securityContext, javax.ws.rs.core.UriInfo uriInfo, OnmsMonitoredService svc)
protected OnmsMonitoredService
doGet(javax.ws.rs.core.UriInfo uriInfo, java.lang.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 CriteriaBuilder
getCriteriaBuilder(javax.ws.rs.core.UriInfo uriInfo)
protected MonitoredServiceDao
getDao()
protected java.lang.Class<OnmsMonitoredService>
getDaoClass()
OnmsMetaDataList
getMetaData(javax.ws.rs.core.UriInfo uriInfo, java.lang.String serviceName)
OnmsMetaDataList
getMetaData(javax.ws.rs.core.UriInfo uriInfo, java.lang.String serviceName, java.lang.String context)
OnmsMetaDataList
getMetaData(javax.ws.rs.core.UriInfo uriInfo, java.lang.String serviceName, java.lang.String context, java.lang.String key)
protected java.lang.Class<OnmsMonitoredService>
getQueryBeanClass()
protected OnmsMonitoredService
getService(javax.ws.rs.core.UriInfo uriInfo, java.lang.String serviceName)
protected void
updateCriteria(javax.ws.rs.core.UriInfo uriInfo, CriteriaBuilder builder)
-
Methods inherited from class org.opennms.web.rest.v2.AbstractNodeDependentRestService
getNode
-
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, doUpdate, get, get, getCount, getCriteria, getCriteriaBehaviors, getException, getProperties, getPropertyValues, getQueryProperties, getSearchBeanPropertyMap, sendEvent, update, updateMany, updateProperties, writeLock, writeUnlock
-
-
-
-
Method Detail
-
getDao
protected MonitoredServiceDao getDao()
- Specified by:
getDao
in classAbstractDaoRestServiceWithDTO<OnmsMonitoredService,OnmsMonitoredService,OnmsMonitoredService,java.lang.Integer,java.lang.String>
-
getDaoClass
protected java.lang.Class<OnmsMonitoredService> getDaoClass()
- Specified by:
getDaoClass
in classAbstractDaoRestServiceWithDTO<OnmsMonitoredService,OnmsMonitoredService,OnmsMonitoredService,java.lang.Integer,java.lang.String>
-
getQueryBeanClass
protected java.lang.Class<OnmsMonitoredService> getQueryBeanClass()
- Specified by:
getQueryBeanClass
in classAbstractDaoRestServiceWithDTO<OnmsMonitoredService,OnmsMonitoredService,OnmsMonitoredService,java.lang.Integer,java.lang.String>
-
getCriteriaBuilder
protected CriteriaBuilder getCriteriaBuilder(javax.ws.rs.core.UriInfo uriInfo)
- Specified by:
getCriteriaBuilder
in classAbstractDaoRestServiceWithDTO<OnmsMonitoredService,OnmsMonitoredService,OnmsMonitoredService,java.lang.Integer,java.lang.String>
-
createListWrapper
protected JaxbListWrapper<OnmsMonitoredService> createListWrapper(java.util.Collection<OnmsMonitoredService> list)
- Specified by:
createListWrapper
in classAbstractDaoRestServiceWithDTO<OnmsMonitoredService,OnmsMonitoredService,OnmsMonitoredService,java.lang.Integer,java.lang.String>
-
doCreate
protected javax.ws.rs.core.Response doCreate(javax.ws.rs.core.SecurityContext securityContext, javax.ws.rs.core.UriInfo uriInfo, OnmsMonitoredService service)
- Overrides:
doCreate
in classAbstractDaoRestServiceWithDTO<OnmsMonitoredService,OnmsMonitoredService,OnmsMonitoredService,java.lang.Integer,java.lang.String>
-
updateCriteria
protected void updateCriteria(javax.ws.rs.core.UriInfo uriInfo, CriteriaBuilder builder)
- Overrides:
updateCriteria
in classAbstractNodeDependentRestService<OnmsMonitoredService,OnmsMonitoredService,java.lang.Integer,java.lang.String>
-
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:
doUpdateProperties
in classAbstractDaoRestServiceWithDTO<OnmsMonitoredService,OnmsMonitoredService,OnmsMonitoredService,java.lang.Integer,java.lang.String>
-
doDelete
protected void doDelete(javax.ws.rs.core.SecurityContext securityContext, javax.ws.rs.core.UriInfo uriInfo, OnmsMonitoredService svc)
- Overrides:
doDelete
in classAbstractDaoRestServiceWithDTO<OnmsMonitoredService,OnmsMonitoredService,OnmsMonitoredService,java.lang.Integer,java.lang.String>
-
doGet
protected OnmsMonitoredService doGet(javax.ws.rs.core.UriInfo uriInfo, java.lang.String serviceName)
- Specified by:
doGet
in classAbstractDaoRestServiceWithDTO<OnmsMonitoredService,OnmsMonitoredService,OnmsMonitoredService,java.lang.Integer,java.lang.String>
-
getService
protected OnmsMonitoredService getService(javax.ws.rs.core.UriInfo uriInfo, java.lang.String serviceName)
-
getMetaData
public OnmsMetaDataList getMetaData(@Context javax.ws.rs.core.UriInfo uriInfo, java.lang.String serviceName)
-
getMetaData
public OnmsMetaDataList getMetaData(@Context javax.ws.rs.core.UriInfo uriInfo, java.lang.String serviceName, java.lang.String context)
-
getMetaData
public OnmsMetaDataList getMetaData(@Context javax.ws.rs.core.UriInfo uriInfo, java.lang.String serviceName, java.lang.String context, java.lang.String key)
-
-