public class Approvals2 extends AbstractCatalogBulkResources<ApprovalRestRep> implements TenantResources<ApprovalRestRep>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ORDER_ID_PARAM |
Constructor and Description |
---|
Approvals2(ViPRCatalogClient2 parent,
RestClient client) |
Modifier and Type | Method and Description |
---|---|
java.util.List<ApprovalRestRep> |
getByTenant(java.net.URI tenantId)
Gets the resources associated with a given tenant.
|
java.util.List<ApprovalRestRep> |
getByTenant(java.net.URI tenantId,
ResourceFilter<ApprovalRestRep> filter)
Gets the resources associated with a given tenant, optionally filtering the results as they are returned.
|
java.util.List<ApprovalRestRep> |
getByUserTenant()
Convenience method for retrieving by user's current tenant.
|
java.util.List<ApprovalRestRep> |
getByUserTenant(ResourceFilter<ApprovalRestRep> filter)
Convenience method for retrieving by user's current tenant.
|
java.util.List<NamedRelatedResourceRep> |
listByTenant(java.net.URI tenantId)
Lists resources associated with a given tenant.
|
java.util.List<NamedRelatedResourceRep> |
listByUserTenant()
Convenience method for listing by the user's current tenant.
|
ApprovalSearchBuilder |
search()
Creates a search builder specifically for creating approval search queries.
|
ApprovalRestRep |
update(java.net.URI id,
ApprovalUpdateParam input)
Updates the given approval by ID.
|
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 static final java.lang.String ORDER_ID_PARAM
public Approvals2(ViPRCatalogClient2 parent, RestClient client)
public java.util.List<NamedRelatedResourceRep> listByUserTenant()
TenantResources
Equivalent to: listByTenant(client.getUserTenant())
listByUserTenant
in interface TenantResources<ApprovalRestRep>
TenantResources.listByTenant(URI)
public java.util.List<ApprovalRestRep> getByUserTenant()
TenantResources
Equivalent to: getByTenant(client.getUserTenant())
getByUserTenant
in interface TenantResources<ApprovalRestRep>
TenantResources.getByTenant(URI)
public java.util.List<ApprovalRestRep> getByUserTenant(ResourceFilter<ApprovalRestRep> filter)
TenantResources
Equivalent to: getByTenant(client.getUserTenant(), filter)
getByUserTenant
in interface TenantResources<ApprovalRestRep>
TenantResources.getByTenant(URI, ResourceFilter)
public java.util.List<NamedRelatedResourceRep> listByTenant(java.net.URI tenantId)
TenantResources
listByTenant
in interface TenantResources<ApprovalRestRep>
tenantId
- the tenant ID.public java.util.List<ApprovalRestRep> getByTenant(java.net.URI tenantId)
TenantResources
getByTenant
in interface TenantResources<ApprovalRestRep>
tenantId
- the tenant ID.Resources.getByRefs(java.util.Collection)
public java.util.List<ApprovalRestRep> getByTenant(java.net.URI tenantId, ResourceFilter<ApprovalRestRep> filter)
TenantResources
getByTenant
in interface TenantResources<ApprovalRestRep>
tenantId
- the tenant ID.filter
- the resource filter to apply to the results as they are returned (optional).Resources.getByRefs(java.util.Collection, ResourceFilter)
public ApprovalSearchBuilder search()
search
in interface Resources<ApprovalRestRep>
search
in class AbstractResources<ApprovalRestRep>
public ApprovalRestRep update(java.net.URI id, ApprovalUpdateParam input)
API Call: PUT /catalog/approvals/{id}
id
- the ID of the approval to update.input
- the update configuration.