Package org.opennms.web.rest.v2
Class ApplicationRestService
- java.lang.Object
-
- org.opennms.web.rest.v2.AbstractDaoRestServiceWithDTO<T,T,Q,K,I>
-
- org.opennms.web.rest.v2.AbstractDaoRestService<OnmsApplication,OnmsApplication,java.lang.Integer,java.lang.Integer>
-
- org.opennms.web.rest.v2.ApplicationRestService
-
@Component @Transactional public class ApplicationRestService extends AbstractDaoRestService<OnmsApplication,OnmsApplication,java.lang.Integer,java.lang.Integer>
Basic Web Service using REST forOnmsApplication
entity- Author:
- Seth Leger
-
-
Field Summary
-
Fields inherited from class org.opennms.web.rest.v2.AbstractDaoRestServiceWithDTO
DEFAULT_LIMIT
-
-
Constructor Summary
Constructors Constructor Description ApplicationRestService(ApplicationDao dao, EventProxy eventProxy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected JaxbListWrapper<OnmsApplication>
createListWrapper(java.util.Collection<OnmsApplication> list)
javax.ws.rs.core.Response
doCreate(javax.ws.rs.core.SecurityContext securityContext, javax.ws.rs.core.UriInfo uriInfo, OnmsApplication object)
protected void
doDelete(javax.ws.rs.core.SecurityContext securityContext, javax.ws.rs.core.UriInfo uriInfo, OnmsApplication object)
protected OnmsApplication
doGet(javax.ws.rs.core.UriInfo uriInfo, java.lang.Integer id)
protected CriteriaBuilder
getCriteriaBuilder(javax.ws.rs.core.UriInfo uriInfo)
protected ApplicationDao
getDao()
protected java.lang.Class<OnmsApplication>
getDaoClass()
protected java.lang.Class<OnmsApplication>
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.AbstractDaoRestService
mapDTOToEntity, mapEntityToDTO
-
Methods inherited from class org.opennms.web.rest.v2.AbstractDaoRestServiceWithDTO
applyLimitOffsetOrderBy, create, createSpecific, delete, deleteMany, doUpdate, doUpdateProperties, get, get, getCount, getCriteria, getCriteriaBehaviors, getException, getProperties, getPropertyValues, getSearchBeanPropertyMap, sendEvent, update, updateMany, updateProperties, writeLock, writeUnlock
-
-
-
-
Constructor Detail
-
ApplicationRestService
@Autowired public ApplicationRestService(ApplicationDao dao, EventProxy eventProxy)
-
-
Method Detail
-
getDao
protected ApplicationDao getDao()
- Specified by:
getDao
in classAbstractDaoRestServiceWithDTO<OnmsApplication,OnmsApplication,OnmsApplication,java.lang.Integer,java.lang.Integer>
-
getDaoClass
protected java.lang.Class<OnmsApplication> getDaoClass()
- Specified by:
getDaoClass
in classAbstractDaoRestServiceWithDTO<OnmsApplication,OnmsApplication,OnmsApplication,java.lang.Integer,java.lang.Integer>
-
getQueryBeanClass
protected java.lang.Class<OnmsApplication> getQueryBeanClass()
- Specified by:
getQueryBeanClass
in classAbstractDaoRestServiceWithDTO<OnmsApplication,OnmsApplication,OnmsApplication,java.lang.Integer,java.lang.Integer>
-
getCriteriaBuilder
protected CriteriaBuilder getCriteriaBuilder(javax.ws.rs.core.UriInfo uriInfo)
- Specified by:
getCriteriaBuilder
in classAbstractDaoRestServiceWithDTO<OnmsApplication,OnmsApplication,OnmsApplication,java.lang.Integer,java.lang.Integer>
-
createListWrapper
protected JaxbListWrapper<OnmsApplication> createListWrapper(java.util.Collection<OnmsApplication> list)
- Specified by:
createListWrapper
in classAbstractDaoRestServiceWithDTO<OnmsApplication,OnmsApplication,OnmsApplication,java.lang.Integer,java.lang.Integer>
-
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<OnmsApplication,OnmsApplication,OnmsApplication,java.lang.Integer,java.lang.Integer>
- Returns:
-
doGet
protected OnmsApplication doGet(javax.ws.rs.core.UriInfo uriInfo, java.lang.Integer id)
- Specified by:
doGet
in classAbstractDaoRestServiceWithDTO<OnmsApplication,OnmsApplication,OnmsApplication,java.lang.Integer,java.lang.Integer>
-
doCreate
public javax.ws.rs.core.Response doCreate(javax.ws.rs.core.SecurityContext securityContext, javax.ws.rs.core.UriInfo uriInfo, OnmsApplication object)
- Overrides:
doCreate
in classAbstractDaoRestServiceWithDTO<OnmsApplication,OnmsApplication,OnmsApplication,java.lang.Integer,java.lang.Integer>
-
doDelete
protected void doDelete(javax.ws.rs.core.SecurityContext securityContext, javax.ws.rs.core.UriInfo uriInfo, OnmsApplication object)
- Overrides:
doDelete
in classAbstractDaoRestServiceWithDTO<OnmsApplication,OnmsApplication,OnmsApplication,java.lang.Integer,java.lang.Integer>
-
-