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