Package org.opennms.web.rest.v2
Class NodeIpInterfacesRestService
- 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<OnmsIpInterface,OnmsIpInterface,Integer,String>
-
- org.opennms.web.rest.v2.NodeIpInterfacesRestService
-
@Component @Transactional public class NodeIpInterfacesRestService extends AbstractNodeDependentRestService<OnmsIpInterface,OnmsIpInterface,Integer,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 NodeIpInterfacesRestService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected JaxbListWrapper<OnmsIpInterface>
createListWrapper(Collection<OnmsIpInterface> list)
protected javax.ws.rs.core.Response
doCreate(javax.ws.rs.core.SecurityContext securityContext, javax.ws.rs.core.UriInfo uriInfo, OnmsIpInterface ipInterface)
protected void
doDelete(javax.ws.rs.core.SecurityContext securityContext, javax.ws.rs.core.UriInfo uriInfo, OnmsIpInterface intf)
protected OnmsIpInterface
doGet(javax.ws.rs.core.UriInfo uriInfo, String ipAddress)
protected javax.ws.rs.core.Response
doUpdateProperties(javax.ws.rs.core.SecurityContext securityContext, javax.ws.rs.core.UriInfo uriInfo, OnmsIpInterface targetObject, MultivaluedMapImpl params)
protected CriteriaBuilder
getCriteriaBuilder(javax.ws.rs.core.UriInfo uriInfo)
protected IpInterfaceDao
getDao()
protected Class<OnmsIpInterface>
getDaoClass()
protected OnmsIpInterface
getInterface(javax.ws.rs.core.UriInfo uriInfo, String ipAddress)
OnmsMetaDataList
getMetaData(javax.ws.rs.core.UriInfo uriInfo, String ipAddress)
OnmsMetaDataList
getMetaData(javax.ws.rs.core.UriInfo uriInfo, String ipAddress, String context)
OnmsMetaDataList
getMetaData(javax.ws.rs.core.UriInfo uriInfo, String ipAddress, String context, String key)
NodeMonitoredServiceRestService
getMonitoredServicesResource(javax.ws.rs.container.ResourceContext context)
protected Class<OnmsIpInterface>
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.AbstractNodeDependentRestService
getNode, updateCriteria
-
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, getSearchBeanPropertyMap, sendEvent, update, updateMany, updateProperties, writeLock, writeUnlock
-
-
-
-
Method Detail
-
getDao
protected IpInterfaceDao getDao()
- Specified by:
getDao
in classAbstractDaoRestServiceWithDTO<OnmsIpInterface,OnmsIpInterface,OnmsIpInterface,Integer,String>
-
getDaoClass
protected Class<OnmsIpInterface> getDaoClass()
- Specified by:
getDaoClass
in classAbstractDaoRestServiceWithDTO<OnmsIpInterface,OnmsIpInterface,OnmsIpInterface,Integer,String>
-
getQueryBeanClass
protected Class<OnmsIpInterface> getQueryBeanClass()
- Specified by:
getQueryBeanClass
in classAbstractDaoRestServiceWithDTO<OnmsIpInterface,OnmsIpInterface,OnmsIpInterface,Integer,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<OnmsIpInterface,OnmsIpInterface,OnmsIpInterface,Integer,String>
- Returns:
-
getCriteriaBuilder
protected CriteriaBuilder getCriteriaBuilder(javax.ws.rs.core.UriInfo uriInfo)
- Specified by:
getCriteriaBuilder
in classAbstractDaoRestServiceWithDTO<OnmsIpInterface,OnmsIpInterface,OnmsIpInterface,Integer,String>
-
createListWrapper
protected JaxbListWrapper<OnmsIpInterface> createListWrapper(Collection<OnmsIpInterface> list)
- Specified by:
createListWrapper
in classAbstractDaoRestServiceWithDTO<OnmsIpInterface,OnmsIpInterface,OnmsIpInterface,Integer,String>
-
doCreate
protected javax.ws.rs.core.Response doCreate(javax.ws.rs.core.SecurityContext securityContext, javax.ws.rs.core.UriInfo uriInfo, OnmsIpInterface ipInterface)
- Overrides:
doCreate
in classAbstractDaoRestServiceWithDTO<OnmsIpInterface,OnmsIpInterface,OnmsIpInterface,Integer,String>
-
doUpdateProperties
protected javax.ws.rs.core.Response doUpdateProperties(javax.ws.rs.core.SecurityContext securityContext, javax.ws.rs.core.UriInfo uriInfo, OnmsIpInterface targetObject, MultivaluedMapImpl params)
- Overrides:
doUpdateProperties
in classAbstractDaoRestServiceWithDTO<OnmsIpInterface,OnmsIpInterface,OnmsIpInterface,Integer,String>
-
doDelete
protected void doDelete(javax.ws.rs.core.SecurityContext securityContext, javax.ws.rs.core.UriInfo uriInfo, OnmsIpInterface intf)
- Overrides:
doDelete
in classAbstractDaoRestServiceWithDTO<OnmsIpInterface,OnmsIpInterface,OnmsIpInterface,Integer,String>
-
doGet
protected OnmsIpInterface doGet(javax.ws.rs.core.UriInfo uriInfo, String ipAddress)
- Specified by:
doGet
in classAbstractDaoRestServiceWithDTO<OnmsIpInterface,OnmsIpInterface,OnmsIpInterface,Integer,String>
-
getMonitoredServicesResource
public NodeMonitoredServiceRestService getMonitoredServicesResource(@Context javax.ws.rs.container.ResourceContext context)
-
getInterface
protected OnmsIpInterface getInterface(javax.ws.rs.core.UriInfo uriInfo, String ipAddress)
-
getMetaData
public OnmsMetaDataList getMetaData(@Context javax.ws.rs.core.UriInfo uriInfo, String ipAddress)
-
getMetaData
public OnmsMetaDataList getMetaData(@Context javax.ws.rs.core.UriInfo uriInfo, String ipAddress, String context)
-
getMetaData
public OnmsMetaDataList getMetaData(@Context javax.ws.rs.core.UriInfo uriInfo, String ipAddress, String context, String key)
-
-