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, listBulkIdsaddTags, get, get, getByIds, getByRefs, getTags, performSearch, performSearchBy, removeTags, updateTags, withInactive, withInternalequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetByIds, getByRefsaddTags, get, get, getTags, removeTags, updateTagspublic static final java.lang.String ORDER_ID_PARAM
public Approvals2(ViPRCatalogClient2 parent, RestClient client)
public java.util.List<NamedRelatedResourceRep> listByUserTenant()
TenantResourcesEquivalent to: listByTenant(client.getUserTenant())
listByUserTenant in interface TenantResources<ApprovalRestRep>TenantResources.listByTenant(URI)public java.util.List<ApprovalRestRep> getByUserTenant()
TenantResourcesEquivalent to: getByTenant(client.getUserTenant())
getByUserTenant in interface TenantResources<ApprovalRestRep>TenantResources.getByTenant(URI)public java.util.List<ApprovalRestRep> getByUserTenant(ResourceFilter<ApprovalRestRep> filter)
TenantResourcesEquivalent to: getByTenant(client.getUserTenant(), filter)
getByUserTenant in interface TenantResources<ApprovalRestRep>TenantResources.getByTenant(URI, ResourceFilter)public java.util.List<NamedRelatedResourceRep> listByTenant(java.net.URI tenantId)
TenantResourceslistByTenant in interface TenantResources<ApprovalRestRep>tenantId - the tenant ID.public java.util.List<ApprovalRestRep> getByTenant(java.net.URI tenantId)
TenantResourcesgetByTenant 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)
TenantResourcesgetByTenant 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.