Package org.opennms.web.rest.v2
Class AbstractDaoRestService<T,Q,K extends Serializable,I extends Serializable>
- java.lang.Object
-
- org.opennms.web.rest.v2.AbstractDaoRestServiceWithDTO<T,T,Q,K,I>
-
- org.opennms.web.rest.v2.AbstractDaoRestService<T,Q,K,I>
-
- Direct Known Subclasses:
AbstractNodeDependentRestService
,ApplicationRestService
,IfServiceRestService
,IpInterfaceRestService
,MinionRestService
,MonitoringLocationRestService
,NodeRestService
,NotificationRestService
,OutageRestService
,SnmpInterfaceRestService
,UserDefinedLinkRestService
public abstract class AbstractDaoRestService<T,Q,K extends Serializable,I extends Serializable> extends AbstractDaoRestServiceWithDTO<T,T,Q,K,I>
Abstract class for use by V2 endpoints that do not support DTOs. SeeAbstractDaoRestServiceWithDTO
for more details.
-
-
Field Summary
-
Fields inherited from class org.opennms.web.rest.v2.AbstractDaoRestServiceWithDTO
DEFAULT_LIMIT
-
-
Constructor Summary
Constructors Constructor Description AbstractDaoRestService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
mapDTOToEntity(T dto)
Map the given instance of the DTO to the corresponding entity.T
mapEntityToDTO(T entity)
Map the given instance of the entity to the corresponding DTO.-
Methods inherited from class org.opennms.web.rest.v2.AbstractDaoRestServiceWithDTO
applyLimitOffsetOrderBy, create, createListWrapper, createSpecific, delete, deleteMany, doCreate, doDelete, doGet, doUpdate, doUpdateProperties, get, get, getCount, getCriteria, getCriteriaBehaviors, getCriteriaBuilder, getDao, getDaoClass, getException, getProperties, getPropertyValues, getQueryBeanClass, getQueryProperties, getSearchBeanPropertyMap, sendEvent, update, updateMany, updateProperties, writeLock, writeUnlock
-
-
-
-
Method Detail
-
mapEntityToDTO
public T mapEntityToDTO(T entity)
Description copied from class:AbstractDaoRestServiceWithDTO
Map the given instance of the entity to the corresponding DTO.- Specified by:
mapEntityToDTO
in classAbstractDaoRestServiceWithDTO<T,T,Q,K extends Serializable,I extends Serializable>
-
mapDTOToEntity
public T mapDTOToEntity(T dto)
Description copied from class:AbstractDaoRestServiceWithDTO
Map the given instance of the DTO to the corresponding entity.- Specified by:
mapDTOToEntity
in classAbstractDaoRestServiceWithDTO<T,T,Q,K extends Serializable,I extends Serializable>
-
-