@Component @Transactional public class AlarmRestService extends AbstractDaoRestServiceWithDTO<OnmsAlarm,AlarmDTO,org.apache.cxf.jaxrs.ext.search.SearchBean,Integer,Integer>
OnmsAlarm entity.DEFAULT_LIMIT| Constructor and Description | 
|---|
AlarmRestService()  | 
| Modifier and Type | Method and Description | 
|---|---|
javax.ws.rs.core.Response | 
closeTicket(javax.ws.rs.core.SecurityContext securityContext,
           Integer alarmId)  | 
protected JaxbListWrapper<AlarmDTO> | 
createListWrapper(Collection<AlarmDTO> list)  | 
javax.ws.rs.core.Response | 
createTicket(javax.ws.rs.core.SecurityContext securityContext,
            Integer alarmId)  | 
protected OnmsAlarm | 
doGet(javax.ws.rs.core.UriInfo uriInfo,
     Integer id)  | 
protected javax.ws.rs.core.Response | 
doUpdateProperties(javax.ws.rs.core.SecurityContext securityContext,
                  javax.ws.rs.core.UriInfo uriInfo,
                  OnmsAlarm alarm,
                  MultivaluedMapImpl params)  | 
protected Map<String,CriteriaBehavior<?>> | 
getCriteriaBehaviors()
Map CXF query bean properties to Criteria property names, conversions,
 and actions. 
 | 
protected CriteriaBuilder | 
getCriteriaBuilder(javax.ws.rs.core.UriInfo uriInfo)  | 
protected AlarmDao | 
getDao()  | 
protected Class<OnmsAlarm> | 
getDaoClass()  | 
protected Class<org.apache.cxf.jaxrs.ext.search.SearchBean> | 
getQueryBeanClass()  | 
protected Set<SearchProperty> | 
getQueryProperties()
Get a list of query properties that this endpoint supports
 for FIQL expressions and  
orderBy expressions. | 
OnmsAlarm | 
mapDTOToEntity(AlarmDTO dto)
Map the given instance of the DTO to the corresponding entity. 
 | 
AlarmDTO | 
mapEntityToDTO(OnmsAlarm alarm)
Map the given instance of the entity to the corresponding DTO. 
 | 
javax.ws.rs.core.Response | 
removeJournal(javax.ws.rs.core.SecurityContext securityContext,
             Integer alarmId)  | 
javax.ws.rs.core.Response | 
removeMemo(javax.ws.rs.core.SecurityContext securityContext,
          Integer alarmId)  | 
javax.ws.rs.core.Response | 
updateJournal(javax.ws.rs.core.SecurityContext securityContext,
             Integer alarmId,
             MultivaluedMapImpl params)  | 
javax.ws.rs.core.Response | 
updateMemo(javax.ws.rs.core.SecurityContext securityContext,
          Integer alarmId,
          MultivaluedMapImpl params)  | 
javax.ws.rs.core.Response | 
updateTicket(javax.ws.rs.core.SecurityContext securityContext,
            Integer alarmId)  | 
applyLimitOffsetOrderBy, create, createSpecific, delete, deleteMany, doCreate, doDelete, doUpdate, get, get, getCount, getCriteria, getException, getProperties, getPropertyValues, getSearchBeanPropertyMap, sendEvent, update, updateMany, updateProperties, writeLock, writeUnlockprotected AlarmDao getDao()
protected Class<OnmsAlarm> getDaoClass()
getDaoClass in class AbstractDaoRestServiceWithDTO<OnmsAlarm,AlarmDTO,org.apache.cxf.jaxrs.ext.search.SearchBean,Integer,Integer>protected Class<org.apache.cxf.jaxrs.ext.search.SearchBean> getQueryBeanClass()
getQueryBeanClass in class AbstractDaoRestServiceWithDTO<OnmsAlarm,AlarmDTO,org.apache.cxf.jaxrs.ext.search.SearchBean,Integer,Integer>protected CriteriaBuilder getCriteriaBuilder(javax.ws.rs.core.UriInfo uriInfo)
getCriteriaBuilder in class AbstractDaoRestServiceWithDTO<OnmsAlarm,AlarmDTO,org.apache.cxf.jaxrs.ext.search.SearchBean,Integer,Integer>protected JaxbListWrapper<AlarmDTO> createListWrapper(Collection<AlarmDTO> list)
createListWrapper in class AbstractDaoRestServiceWithDTO<OnmsAlarm,AlarmDTO,org.apache.cxf.jaxrs.ext.search.SearchBean,Integer,Integer>protected Set<SearchProperty> getQueryProperties()
AbstractDaoRestServiceWithDTOGet a list of query properties that this endpoint supports
 for FIQL expressions and orderBy expressions.
getQueryProperties in class AbstractDaoRestServiceWithDTO<OnmsAlarm,AlarmDTO,org.apache.cxf.jaxrs.ext.search.SearchBean,Integer,Integer>protected Map<String,CriteriaBehavior<?>> getCriteriaBehaviors()
AbstractDaoRestServiceWithDTOMap CXF query bean properties to Criteria property names, conversions, and actions. In the absence of a mapping, the query bean property will be specified directly as a Criteria property with the same name.
CriteriaBehavior to execute when this search term is specifiedgetCriteriaBehaviors in class AbstractDaoRestServiceWithDTO<OnmsAlarm,AlarmDTO,org.apache.cxf.jaxrs.ext.search.SearchBean,Integer,Integer>protected javax.ws.rs.core.Response doUpdateProperties(javax.ws.rs.core.SecurityContext securityContext,
                                                       javax.ws.rs.core.UriInfo uriInfo,
                                                       OnmsAlarm alarm,
                                                       MultivaluedMapImpl params)
doUpdateProperties in class AbstractDaoRestServiceWithDTO<OnmsAlarm,AlarmDTO,org.apache.cxf.jaxrs.ext.search.SearchBean,Integer,Integer>public javax.ws.rs.core.Response updateMemo(@Context
                                            javax.ws.rs.core.SecurityContext securityContext,
                                            Integer alarmId,
                                            MultivaluedMapImpl params)
public javax.ws.rs.core.Response updateJournal(@Context
                                               javax.ws.rs.core.SecurityContext securityContext,
                                               Integer alarmId,
                                               MultivaluedMapImpl params)
public javax.ws.rs.core.Response removeMemo(@Context
                                            javax.ws.rs.core.SecurityContext securityContext,
                                            Integer alarmId)
public javax.ws.rs.core.Response removeJournal(@Context
                                               javax.ws.rs.core.SecurityContext securityContext,
                                               Integer alarmId)
public javax.ws.rs.core.Response createTicket(@Context
                                              javax.ws.rs.core.SecurityContext securityContext,
                                              Integer alarmId)
                                       throws Exception
Exceptionpublic javax.ws.rs.core.Response updateTicket(@Context
                                              javax.ws.rs.core.SecurityContext securityContext,
                                              Integer alarmId)
                                       throws Exception
Exceptionpublic javax.ws.rs.core.Response closeTicket(@Context
                                             javax.ws.rs.core.SecurityContext securityContext,
                                             Integer alarmId)
                                      throws Exception
Exceptionpublic AlarmDTO mapEntityToDTO(OnmsAlarm alarm)
AbstractDaoRestServiceWithDTOmapEntityToDTO in class AbstractDaoRestServiceWithDTO<OnmsAlarm,AlarmDTO,org.apache.cxf.jaxrs.ext.search.SearchBean,Integer,Integer>public OnmsAlarm mapDTOToEntity(AlarmDTO dto)
AbstractDaoRestServiceWithDTOmapDTOToEntity in class AbstractDaoRestServiceWithDTO<OnmsAlarm,AlarmDTO,org.apache.cxf.jaxrs.ext.search.SearchBean,Integer,Integer>Copyright © 2021. All rights reserved.