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,Integer,Integer>
-
- org.opennms.web.rest.v2.ApplicationRestService
-
@Component @Transactional public class ApplicationRestService extends AbstractDaoRestService<OnmsApplication,OnmsApplication,Integer,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(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, Integer id)
protected CriteriaBuilder
getCriteriaBuilder(javax.ws.rs.core.UriInfo uriInfo)
protected ApplicationDao
getDao()
protected Class<OnmsApplication>
getDaoClass()
protected Class<OnmsApplication>
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.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,Integer,Integer>
-
getDaoClass
protected Class<OnmsApplication> getDaoClass()
- Specified by:
getDaoClass
in classAbstractDaoRestServiceWithDTO<OnmsApplication,OnmsApplication,OnmsApplication,Integer,Integer>
-
getQueryBeanClass
protected Class<OnmsApplication> getQueryBeanClass()
- Specified by:
getQueryBeanClass
in classAbstractDaoRestServiceWithDTO<OnmsApplication,OnmsApplication,OnmsApplication,Integer,Integer>
-
getCriteriaBuilder
protected CriteriaBuilder getCriteriaBuilder(javax.ws.rs.core.UriInfo uriInfo)
- Specified by:
getCriteriaBuilder
in classAbstractDaoRestServiceWithDTO<OnmsApplication,OnmsApplication,OnmsApplication,Integer,Integer>
-
createListWrapper
protected JaxbListWrapper<OnmsApplication> createListWrapper(Collection<OnmsApplication> list)
- Specified by:
createListWrapper
in classAbstractDaoRestServiceWithDTO<OnmsApplication,OnmsApplication,OnmsApplication,Integer,Integer>
-
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<OnmsApplication,OnmsApplication,OnmsApplication,Integer,Integer>
- Returns:
-
doGet
protected OnmsApplication doGet(javax.ws.rs.core.UriInfo uriInfo, Integer id)
- Specified by:
doGet
in classAbstractDaoRestServiceWithDTO<OnmsApplication,OnmsApplication,OnmsApplication,Integer,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,Integer,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,Integer,Integer>
-
-