Package org.opennms.netmgt.bsm.service
Class BusinessServiceSearchCriteriaBuilder
- java.lang.Object
-
- org.opennms.netmgt.bsm.service.BusinessServiceSearchCriteriaBuilder
-
- All Implemented Interfaces:
BusinessServiceSearchCriteria
public class BusinessServiceSearchCriteriaBuilder extends Object implements BusinessServiceSearchCriteria
Criteria for searching for business services- Author:
- Christian Pape
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BusinessServiceSearchCriteriaBuilder.CompareOperator
the compare operator for severity comparisonsstatic class
BusinessServiceSearchCriteriaBuilder.Order
the order in which results are returnedstatic class
BusinessServiceSearchCriteriaBuilder.Sequence
the sequence of the ordered results
-
Constructor Summary
Constructors Constructor Description BusinessServiceSearchCriteriaBuilder()
Default constructor
-
Method Summary
-
-
-
Method Detail
-
apply
public List<BusinessService> apply(BusinessServiceManager businessServiceManager, List<BusinessService> businessServiceDTOs)
Description copied from interface:BusinessServiceSearchCriteria
This will apply the criteria represented by an instance of this interface to a list of business services and will return a subset of these business services.- Specified by:
apply
in interfaceBusinessServiceSearchCriteria
- Parameters:
businessServiceManager
- the business service manager (required to gather the operational status)businessServiceDTOs
- the list of business services- Returns:
- a subset of business services
-
attribute
public BusinessServiceSearchCriteriaBuilder attribute(String key, String valueRegexp)
-
name
public BusinessServiceSearchCriteriaBuilder name(String nameRegexp)
-
order
public BusinessServiceSearchCriteriaBuilder order(BusinessServiceSearchCriteriaBuilder.Order order)
-
filterSeverity
public BusinessServiceSearchCriteriaBuilder filterSeverity(BusinessServiceSearchCriteriaBuilder.CompareOperator compareOperator, Status severity)
-
greaterOrEqualSeverity
public BusinessServiceSearchCriteriaBuilder greaterOrEqualSeverity(Status severity)
-
equalSeverity
public BusinessServiceSearchCriteriaBuilder equalSeverity(Status severity)
-
lowerOrEqualSeverity
public BusinessServiceSearchCriteriaBuilder lowerOrEqualSeverity(Status severity)
-
lowerSeverity
public BusinessServiceSearchCriteriaBuilder lowerSeverity(Status severity)
-
greaterSeverity
public BusinessServiceSearchCriteriaBuilder greaterSeverity(Status severity)
-
inSeverity
public BusinessServiceSearchCriteriaBuilder inSeverity(List<Status> severities)
-
limit
public BusinessServiceSearchCriteriaBuilder limit(int limit)
-
offset
public BusinessServiceSearchCriteriaBuilder offset(int offset)
-
order
public BusinessServiceSearchCriteriaBuilder order(BusinessServiceSearchCriteriaBuilder.Sequence sequence)
-
order
public BusinessServiceSearchCriteriaBuilder order(String column, boolean asc)
-
asc
public BusinessServiceSearchCriteriaBuilder asc()
-
desc
public BusinessServiceSearchCriteriaBuilder desc()
-
prepareForCounting
public void prepareForCounting()
-
getOrder
public BusinessServiceSearchCriteriaBuilder.Order getOrder()
-
getSequence
public BusinessServiceSearchCriteriaBuilder.Sequence getSequence()
-
-