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,java.lang.Integer,java.lang.String>
-
- org.opennms.web.rest.v2.NodeIpInterfacesRestService
-
@Component @Transactional public class NodeIpInterfacesRestService extends AbstractNodeDependentRestService<OnmsIpInterface,OnmsIpInterface,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 NodeIpInterfacesRestService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected JaxbListWrapper<OnmsIpInterface>
createListWrapper(java.util.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, java.lang.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 java.lang.Class<OnmsIpInterface>
getDaoClass()
protected OnmsIpInterface
getInterface(javax.ws.rs.core.UriInfo uriInfo, java.lang.String ipAddress)
OnmsMetaDataList
getMetaData(javax.ws.rs.core.UriInfo uriInfo, java.lang.String ipAddress)
OnmsMetaDataList
getMetaData(javax.ws.rs.core.UriInfo uriInfo, java.lang.String ipAddress, java.lang.String context)
OnmsMetaDataList
getMetaData(javax.ws.rs.core.UriInfo uriInfo, java.lang.String ipAddress, java.lang.String context, java.lang.String key)
NodeMonitoredServiceRestService
getMonitoredServicesResource(javax.ws.rs.container.ResourceContext context)
protected java.lang.Class<OnmsIpInterface>
getQueryBeanClass()
protected java.util.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,java.lang.Integer,java.lang.String>
-
getDaoClass
protected java.lang.Class<OnmsIpInterface> getDaoClass()
- Specified by:
getDaoClass
in classAbstractDaoRestServiceWithDTO<OnmsIpInterface,OnmsIpInterface,OnmsIpInterface,java.lang.Integer,java.lang.String>
-
getQueryBeanClass
protected java.lang.Class<OnmsIpInterface> getQueryBeanClass()
- Specified by:
getQueryBeanClass
in classAbstractDaoRestServiceWithDTO<OnmsIpInterface,OnmsIpInterface,OnmsIpInterface,java.lang.Integer,java.lang.String>
-
getQueryProperties
protected java.util.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,java.lang.Integer,java.lang.String>
- Returns:
-
getCriteriaBuilder
protected CriteriaBuilder getCriteriaBuilder(javax.ws.rs.core.UriInfo uriInfo)
- Specified by:
getCriteriaBuilder
in classAbstractDaoRestServiceWithDTO<OnmsIpInterface,OnmsIpInterface,OnmsIpInterface,java.lang.Integer,java.lang.String>
-
createListWrapper
protected JaxbListWrapper<OnmsIpInterface> createListWrapper(java.util.Collection<OnmsIpInterface> list)
- Specified by:
createListWrapper
in classAbstractDaoRestServiceWithDTO<OnmsIpInterface,OnmsIpInterface,OnmsIpInterface,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, OnmsIpInterface ipInterface)
- Overrides:
doCreate
in classAbstractDaoRestServiceWithDTO<OnmsIpInterface,OnmsIpInterface,OnmsIpInterface,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, OnmsIpInterface targetObject, MultivaluedMapImpl params)
- Overrides:
doUpdateProperties
in classAbstractDaoRestServiceWithDTO<OnmsIpInterface,OnmsIpInterface,OnmsIpInterface,java.lang.Integer,java.lang.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,java.lang.Integer,java.lang.String>
-
doGet
protected OnmsIpInterface doGet(javax.ws.rs.core.UriInfo uriInfo, java.lang.String ipAddress)
- Specified by:
doGet
in classAbstractDaoRestServiceWithDTO<OnmsIpInterface,OnmsIpInterface,OnmsIpInterface,java.lang.Integer,java.lang.String>
-
getMonitoredServicesResource
public NodeMonitoredServiceRestService getMonitoredServicesResource(@Context javax.ws.rs.container.ResourceContext context)
-
getInterface
protected OnmsIpInterface getInterface(javax.ws.rs.core.UriInfo uriInfo, java.lang.String ipAddress)
-
getMetaData
public OnmsMetaDataList getMetaData(@Context javax.ws.rs.core.UriInfo uriInfo, java.lang.String ipAddress)
-
getMetaData
public OnmsMetaDataList getMetaData(@Context javax.ws.rs.core.UriInfo uriInfo, java.lang.String ipAddress, java.lang.String context)
-
getMetaData
public OnmsMetaDataList getMetaData(@Context javax.ws.rs.core.UriInfo uriInfo, java.lang.String ipAddress, java.lang.String context, java.lang.String key)
-
-