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 forOnmsApplicationentity- 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.ResponsedoCreate(javax.ws.rs.core.SecurityContext securityContext, javax.ws.rs.core.UriInfo uriInfo, OnmsApplication object)protected voiddoDelete(javax.ws.rs.core.SecurityContext securityContext, javax.ws.rs.core.UriInfo uriInfo, OnmsApplication object)protected OnmsApplicationdoGet(javax.ws.rs.core.UriInfo uriInfo, Integer id)protected CriteriaBuildergetCriteriaBuilder(javax.ws.rs.core.UriInfo uriInfo)protected ApplicationDaogetDao()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 andorderByexpressions.-
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:
getDaoin classAbstractDaoRestServiceWithDTO<OnmsApplication,OnmsApplication,OnmsApplication,Integer,Integer>
-
getDaoClass
protected Class<OnmsApplication> getDaoClass()
- Specified by:
getDaoClassin classAbstractDaoRestServiceWithDTO<OnmsApplication,OnmsApplication,OnmsApplication,Integer,Integer>
-
getQueryBeanClass
protected Class<OnmsApplication> getQueryBeanClass()
- Specified by:
getQueryBeanClassin classAbstractDaoRestServiceWithDTO<OnmsApplication,OnmsApplication,OnmsApplication,Integer,Integer>
-
getCriteriaBuilder
protected CriteriaBuilder getCriteriaBuilder(javax.ws.rs.core.UriInfo uriInfo)
- Specified by:
getCriteriaBuilderin classAbstractDaoRestServiceWithDTO<OnmsApplication,OnmsApplication,OnmsApplication,Integer,Integer>
-
createListWrapper
protected JaxbListWrapper<OnmsApplication> createListWrapper(Collection<OnmsApplication> list)
- Specified by:
createListWrapperin classAbstractDaoRestServiceWithDTO<OnmsApplication,OnmsApplication,OnmsApplication,Integer,Integer>
-
getQueryProperties
protected Set<SearchProperty> getQueryProperties()
Description copied from class:AbstractDaoRestServiceWithDTOGet a list of query properties that this endpoint supports for FIQL expressions and
orderByexpressions.- Overrides:
getQueryPropertiesin classAbstractDaoRestServiceWithDTO<OnmsApplication,OnmsApplication,OnmsApplication,Integer,Integer>- Returns:
-
doGet
protected OnmsApplication doGet(javax.ws.rs.core.UriInfo uriInfo, Integer id)
- Specified by:
doGetin 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:
doCreatein 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:
doDeletein classAbstractDaoRestServiceWithDTO<OnmsApplication,OnmsApplication,OnmsApplication,Integer,Integer>
-
-