public abstract class ProjectResources<T extends DataObjectRestRep> extends AbstractCoreBulkResources<T>
Constructor and Description |
---|
ProjectResources(ViPRCoreClient parent,
RestClient client,
java.lang.Class<T> resourceClass,
java.lang.String baseUrl) |
Modifier and Type | Method and Description |
---|---|
java.util.List<T> |
findByProject(ProjectRestRep project)
Finds the list of resources in the given project.
|
java.util.List<T> |
findByProject(ProjectRestRep project,
ResourceFilter<T> filter)
Finds the list of resources in the given project, optionally filtering the results.
|
java.util.List<T> |
findByProject(java.net.URI projectId)
Finds the list of resources in the given project by ID.
|
java.util.List<T> |
findByProject(java.net.URI projectId,
ResourceFilter<T> filter)
Finds the list of resources in the given project by ID, optionally filtering the results.
|
ProjectSearchBuilder<T> |
search()
Creates a search builder for searching by project.
|
getByIds, getByRefs, listBulkIds
addTags, get, get, getByIds, getByRefs, getTags, performSearch, performSearchBy, removeTags, updateTags, withInactive, withInternal
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getByIds, getByRefs
addTags, get, get, getTags, removeTags, updateTags
public ProjectResources(ViPRCoreClient parent, RestClient client, java.lang.Class<T> resourceClass, java.lang.String baseUrl)
public ProjectSearchBuilder<T> search()
search
in interface Resources<T extends DataObjectRestRep>
search
in class AbstractResources<T extends DataObjectRestRep>
public java.util.List<T> findByProject(ProjectRestRep project)
project
- the project.public java.util.List<T> findByProject(ProjectRestRep project, ResourceFilter<T> filter)
project
- the project.filter
- the resource filter to apply to the results as they are returned (optional).public java.util.List<T> findByProject(java.net.URI projectId)
projectId
- the ID of the project.public java.util.List<T> findByProject(java.net.URI projectId, ResourceFilter<T> filter)
projectId
- the ID of the project.filter
- the resource filter to apply to the results as they are returned (optional).