public final class JpaCommandSpecs
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
JpaCommandSpecs()
Private constructor for utility class.
|
Modifier and Type | Method and Description |
---|---|
static org.springframework.data.jpa.domain.Specification<CommandEntity> |
find(java.lang.String name,
java.lang.String user,
java.util.Set<CommandStatus> statuses,
java.util.Set<java.lang.String> tags)
Get a specification using the specified parameters.
|
static org.springframework.data.jpa.domain.Specification<CommandEntity> |
findCommandsForApplication(java.lang.String applicationId,
java.util.Set<CommandStatus> statuses)
Get all the clusters given the specified parameters.
|
protected JpaCommandSpecs()
public static org.springframework.data.jpa.domain.Specification<CommandEntity> find(java.lang.String name, java.lang.String user, java.util.Set<CommandStatus> statuses, java.util.Set<java.lang.String> tags)
name
- The name of the commanduser
- The name of the user who created the commandstatuses
- The status of the commandtags
- The set of tags to search the command forpublic static org.springframework.data.jpa.domain.Specification<CommandEntity> findCommandsForApplication(java.lang.String applicationId, java.util.Set<CommandStatus> statuses)
applicationId
- The id of the application that is registered with these commandsstatuses
- The status of the commands