Class OperationFilter


  • public class OperationFilter
    extends Filter
    A filter to be used in operation queries. The setter (by*) methods return the filter itself to provide chaining: OperationFilter filter = new OperationFilter().byStatus(status).byDevice(deviceId);
    • Constructor Detail

      • OperationFilter

        public OperationFilter()
    • Method Detail

      • byFragmentType

        public OperationFilter byFragmentType​(Class<?> fragmentClass)
        Specifies the fragmentType query parameter
        Parameters:
        fragmentClass - the class representation of the type of the operation(s)
        Returns:
        the operation filter with fragmentType set
      • byStatus

        public OperationFilter byStatus​(OperationStatus status)
        Specifies the status query parameter
        Parameters:
        status - status of the operation(s)
        Returns:
        the operation filter with status set
      • byDevice

        public OperationFilter byDevice​(String deviceId)
        Specifies the deviceId query parameter
        Parameters:
        deviceId - id of the device associated with the the operations(s)
        Returns:
        the operation filter with deviceId set
      • byAgent

        public OperationFilter byAgent​(String agentId)
        Specifies the agentId query parameter
        Parameters:
        agentId - id of the agent associated with the the operations(s)
        Returns:
        the operation filter with agentId set
      • getStatus

        public String getStatus()
        Returns:
        the status parameter of the query
      • getDevice

        public String getDevice()
        Returns:
        the deviceId parameter of the query
      • getAgent

        public String getAgent()
        Returns:
        the agentId parameter of the query
      • getFragmentType

        public String getFragmentType()
        Returns:
        the fragmentType parameter of the query