public class CatalogCategories extends AbstractCatalogBulkResources<CatalogCategoryRestRep> implements ACLResources, TenantResources<CatalogCategoryRestRep>
| Constructor and Description |
|---|
CatalogCategories(ViPRCatalogClient2 parent,
RestClient client) |
| Modifier and Type | Method and Description |
|---|---|
CatalogCategoryRestRep |
create(CatalogCategoryCreateParam input)
Creates a catalog category
|
void |
deactivate(java.net.URI id)
Deactivates the given catalog category by ID.
|
java.util.List<ACLEntry> |
getACLs(java.net.URI id)
Gets the ACL entries for a given resource by ID.
|
java.util.List<CatalogCategoryRestRep> |
getByTenant(java.net.URI tenantId)
Gets the resources associated with a given tenant.
|
java.util.List<CatalogCategoryRestRep> |
getByTenant(java.net.URI tenantId,
ResourceFilter<CatalogCategoryRestRep> filter)
Gets the resources associated with a given tenant, optionally filtering the results as they are returned.
|
java.util.List<CatalogCategoryRestRep> |
getByUserTenant()
Convenience method for retrieving by user's current tenant.
|
java.util.List<CatalogCategoryRestRep> |
getByUserTenant(ResourceFilter<CatalogCategoryRestRep> filter)
Convenience method for retrieving by user's current tenant.
|
CatalogCategoryRestRep |
getRootCatalogCategory(java.lang.String tenantId)
Get root catalog category
|
CatalogCategoryRestRep |
getRootCatalogCategory(java.net.URI tenantId) |
java.util.List<CatalogCategoryRestRep> |
getSubCategories(java.net.URI catalogCategoryId)
Return the list of catalog categories contained within supplied category id
|
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.
|
void |
moveDown(java.net.URI catalogCategoryId) |
void |
moveUp(java.net.URI catalogCategoryId) |
void |
resetCatalog(java.net.URI tenantId)
Reset the catalog to the default
|
CatalogCategoryRestRep |
update(java.net.URI id,
CatalogCategoryUpdateParam input)
Updates the given catalog category by ID.
|
java.util.List<ACLEntry> |
updateACLs(java.net.URI id,
ACLAssignmentChanges aclChanges)
Updates the ACL entries for a given resource by ID.
|
boolean |
upgradeAvailable(java.net.URI tenantId)
Determines if an upgrade is available to the service catalog
|
void |
upgradeCatalog(java.net.URI tenantId)
Upgrades the service catalog, if available
|
getByIds, getByRefs, listBulkIdsaddTags, get, get, getByIds, getByRefs, getTags, performSearch, performSearchBy, removeTags, search, updateTags, withInactive, withInternalequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetByIds, getByRefsaddTags, get, get, getTags, removeTags, search, updateTagspublic CatalogCategories(ViPRCatalogClient2 parent, RestClient client)
public java.util.List<NamedRelatedResourceRep> listByUserTenant()
TenantResourcesEquivalent to: listByTenant(client.getUserTenant())
listByUserTenant in interface TenantResources<CatalogCategoryRestRep>TenantResources.listByTenant(URI)public java.util.List<CatalogCategoryRestRep> getByUserTenant()
TenantResourcesEquivalent to: getByTenant(client.getUserTenant())
getByUserTenant in interface TenantResources<CatalogCategoryRestRep>TenantResources.getByTenant(URI)public java.util.List<CatalogCategoryRestRep> getByUserTenant(ResourceFilter<CatalogCategoryRestRep> filter)
TenantResourcesEquivalent to: getByTenant(client.getUserTenant(), filter)
getByUserTenant in interface TenantResources<CatalogCategoryRestRep>TenantResources.getByTenant(URI, ResourceFilter)public java.util.List<NamedRelatedResourceRep> listByTenant(java.net.URI tenantId)
TenantResourceslistByTenant in interface TenantResources<CatalogCategoryRestRep>tenantId - the tenant ID.public java.util.List<CatalogCategoryRestRep> getByTenant(java.net.URI tenantId)
TenantResourcesgetByTenant in interface TenantResources<CatalogCategoryRestRep>tenantId - the tenant ID.Resources.getByRefs(java.util.Collection)public java.util.List<CatalogCategoryRestRep> getByTenant(java.net.URI tenantId, ResourceFilter<CatalogCategoryRestRep> filter)
TenantResourcesgetByTenant in interface TenantResources<CatalogCategoryRestRep>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 CatalogCategoryRestRep create(CatalogCategoryCreateParam input)
API Call: POST /catalog/categories
input - the catalog category configuration.public CatalogCategoryRestRep getRootCatalogCategory(java.lang.String tenantId)
API Call: GET /catalog/categories
tenantId - public CatalogCategoryRestRep getRootCatalogCategory(java.net.URI tenantId)
public CatalogCategoryRestRep update(java.net.URI id, CatalogCategoryUpdateParam input)
API Call: PUT /catalog/categories/{id}
id - the ID of the catalog category to update.input - the update configuration.public void deactivate(java.net.URI id)
API Call: POST /catalog/categories/{id}/deactivate
id - the ID of catalog category to deactivate.public void resetCatalog(java.net.URI tenantId)
API Call: POST /catalog/categories/reset
tenantId - the ID of the tenantpublic java.util.List<CatalogCategoryRestRep> getSubCategories(java.net.URI catalogCategoryId)
API Call: POST /catalog/categories/{id}/categories
catalogCategoryId - the ID of the catalog categorypublic boolean upgradeAvailable(java.net.URI tenantId)
API Call: GET /catalog/upgrade
tenantId - the ID of the tenantpublic void upgradeCatalog(java.net.URI tenantId)
API Call: POST /catalog/upgrade
tenantId - the ID of the tenantpublic java.util.List<ACLEntry> getACLs(java.net.URI id)
ACLResourcesAPI Call: GET baseUrl/{id}/acl
getACLs in interface ACLResourcesid - the resource ID.public java.util.List<ACLEntry> updateACLs(java.net.URI id, ACLAssignmentChanges aclChanges)
ACLResourcesAPI Call: PUT baseUrl/{id}/acl
updateACLs in interface ACLResourcesid - the resource ID.aclChanges - the ACL changes to perform (ACL entries to add/remove).public void moveUp(java.net.URI catalogCategoryId)
public void moveDown(java.net.URI catalogCategoryId)