@Override public Integer getId(final OnmsApplication app) { return app.getId(); }
@Override public int getId() { return m_entity.getId(); }
@Override public Integer getId(final OnmsApplication app) { return app.getId(); }
@Override protected Integer getId(OnmsApplication bean) { return bean == null ? null : bean.getId(); }
@Override protected Integer getId(OnmsApplication bean) { return bean == null ? null : bean.getId(); }
@Override protected Integer getId(OnmsApplication bean) { return bean == null ? null : bean.getId(); }
/** {@inheritDoc} */ @Override public String toString() { return MoreObjects.toStringHelper(this) .add("id", getId()) .add("name", getName()) .toString(); }
public ApplicationVertex(OnmsApplication application) { this(application.getId().toString(), application.getName()); setTooltipText(String.format("Application '%s'", application.getName())); setIconKey("application.application"); }
public ApplicationVertex(OnmsApplication application) { this(application.getId().toString(), application.getName()); setTooltipText(String.format("Application '%s'", application.getName())); setIconKey("application.application"); }
public ApplicationVertex(OnmsApplication application) { this(application.getId().toString(), application.getName()); setTooltipText(String.format("Application '%s'", application.getName())); setIconKey("application.application"); }
@GET @Path("/applications") public Response getApplications(@Context final UriInfo uriInfo) { final QueryParameters queryParameters = QueryParametersBuilder.buildFrom(uriInfo); final SeverityFilter severityFilter = getSeverityFilter(uriInfo); final Query query = new Query(queryParameters, severityFilter); final List<StatusEntity<OnmsApplication>> applications = applicationStatusService.getStatus(query); final int totalCount = applicationStatusService.count(query); final int offset = queryParameters.getOffset(); final List<ApplicationDTO> statusEntities = applications.stream().map(a -> { ApplicationDTO dto = new ApplicationDTO(); dto.setId(a.getEntity().getId()); dto.setName(a.getEntity().getName()); dto.setSeverity(a.getStatus()); return dto; }).collect(Collectors.toList()); final ApplicationDTOList list = new ApplicationDTOList(statusEntities); list.setOffset(queryParameters.getOffset()); list.setTotalCount(totalCount); return createResponse(list, offset, totalCount); }