Package org.kie.server.api.model
Class ReleaseIdFilter
- java.lang.Object
-
- org.kie.server.api.model.ReleaseIdFilter
-
public class ReleaseIdFilter extends Object
Enables filtering ofReleaseIds based on provided constraints (groupId, artifactId, version).This implementation compares the expected parts for equality (e.g. the filter accepts the releaseId in case the groupId/artifactId/version exactly matches the configured one). It is also possible to filter only on a subset of the constraints (e.g. only on groupId).
The class comes with
ReleaseIdFilter.Builderwhich can be used to easily create all kinds of filters.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classReleaseIdFilter.Builder
-
Field Summary
Fields Modifier and Type Field Description static ReleaseIdFilterACCEPT_ALL
-
Constructor Summary
Constructors Constructor Description ReleaseIdFilter(String groupId, String artifactId, String version)ReleaseIdFilter(ReleaseId releaseId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(ReleaseId releaseId)Checks whether the specified releaseId matches (is accepted by) this filter.booleanequals(Object o)StringgetArtifactId()StringgetGroupId()StringgetVersion()inthashCode()StringtoString()
-
-
-
Field Detail
-
ACCEPT_ALL
public static final ReleaseIdFilter ACCEPT_ALL
-
-
Method Detail
-
getGroupId
public String getGroupId()
-
getArtifactId
public String getArtifactId()
-
getVersion
public String getVersion()
-
accept
public boolean accept(ReleaseId releaseId)
Checks whether the specified releaseId matches (is accepted by) this filter.- Parameters:
releaseId- releaseId to match against- Returns:
- true if this filter accepts the specified releaseId, otherwise false
-
-