public class CatalogServices extends AbstractCatalogBulkResources<CatalogServiceRestRep> implements ACLResources, TenantResources<CatalogServiceRestRep>
| Constructor and Description | 
|---|
CatalogServices(ViPRCatalogClient2 parent,
               RestClient client)  | 
| Modifier and Type | Method and Description | 
|---|---|
CatalogServiceRestRep | 
create(CatalogServiceCreateParam input)
Creates a catalog service 
 | 
void | 
deactivate(java.net.URI id)
Deactivates the given catalog service by ID. 
 | 
java.util.List<CatalogServiceRestRep> | 
findByCatalogCategory(java.net.URI catalogCategoryId)
Return the list of catalog services contained within supplied category id 
 | 
java.util.List<ACLEntry> | 
getACLs(java.net.URI id)
Gets the ACL entries for a given resource by ID. 
 | 
java.util.List<CatalogServiceRestRep> | 
getByTenant(java.net.URI tenantId)
Gets the resources associated with a given tenant. 
 | 
java.util.List<CatalogServiceRestRep> | 
getByTenant(java.net.URI tenantId,
           ResourceFilter<CatalogServiceRestRep> filter)
Gets the resources associated with a given tenant, optionally filtering the results as they are returned. 
 | 
java.util.List<CatalogServiceRestRep> | 
getByUserTenant()
Convenience method for retrieving by user's current tenant. 
 | 
java.util.List<CatalogServiceRestRep> | 
getByUserTenant(ResourceFilter<CatalogServiceRestRep> filter)
Convenience method for retrieving by user's current tenant. 
 | 
java.util.List<CatalogServiceRestRep> | 
getRecentServices()
Return the list of recent services used by the current user 
 | 
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 catalogServiceId)  | 
void | 
moveDownField(java.net.URI catalogServiceId,
             java.lang.String fieldName)  | 
void | 
moveUp(java.net.URI catalogServiceId)  | 
void | 
moveUpField(java.net.URI catalogServiceId,
           java.lang.String fieldName)  | 
CatalogServiceRestRep | 
update(java.net.URI id,
      CatalogServiceUpdateParam input)
Updates the given catalog service by ID. 
 | 
java.util.List<ACLEntry> | 
updateACLs(java.net.URI id,
          ACLAssignmentChanges aclChanges)
Updates the ACL entries for a given resource by ID. 
 | 
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 CatalogServices(ViPRCatalogClient2 parent, RestClient client)
public java.util.List<NamedRelatedResourceRep> listByUserTenant()
TenantResourcesEquivalent to: listByTenant(client.getUserTenant())
listByUserTenant in interface TenantResources<CatalogServiceRestRep>TenantResources.listByTenant(URI)public java.util.List<CatalogServiceRestRep> getByUserTenant()
TenantResourcesEquivalent to: getByTenant(client.getUserTenant())
getByUserTenant in interface TenantResources<CatalogServiceRestRep>TenantResources.getByTenant(URI)public java.util.List<CatalogServiceRestRep> getByUserTenant(ResourceFilter<CatalogServiceRestRep> filter)
TenantResourcesEquivalent to: getByTenant(client.getUserTenant(), filter)
getByUserTenant in interface TenantResources<CatalogServiceRestRep>TenantResources.getByTenant(URI, ResourceFilter)public java.util.List<NamedRelatedResourceRep> listByTenant(java.net.URI tenantId)
TenantResourceslistByTenant in interface TenantResources<CatalogServiceRestRep>tenantId - the tenant ID.public java.util.List<CatalogServiceRestRep> getByTenant(java.net.URI tenantId)
TenantResourcesgetByTenant in interface TenantResources<CatalogServiceRestRep>tenantId - the tenant ID.Resources.getByRefs(java.util.Collection)public java.util.List<CatalogServiceRestRep> getByTenant(java.net.URI tenantId, ResourceFilter<CatalogServiceRestRep> filter)
TenantResourcesgetByTenant in interface TenantResources<CatalogServiceRestRep>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 CatalogServiceRestRep create(CatalogServiceCreateParam input)
API Call: POST /catalog/services
input - the catalog service configuration.public CatalogServiceRestRep update(java.net.URI id, CatalogServiceUpdateParam input)
API Call: PUT /catalog/services/{id}
id - the ID of the catalog service to update.input - the update configuration.public void deactivate(java.net.URI id)
API Call: POST /catalog/services/{id}/deactivate
id - the ID of catalog service to deactivate.public java.util.List<CatalogServiceRestRep> findByCatalogCategory(java.net.URI catalogCategoryId)
API Call: POST /catalog/categories/{id}/services
catalogCategoryId - the ID of the catalog servicepublic java.util.List<CatalogServiceRestRep> getRecentServices()
API Call: GET /catalog/services/recent
public 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 catalogServiceId)
public void moveDown(java.net.URI catalogServiceId)
public void moveUpField(java.net.URI catalogServiceId,
                        java.lang.String fieldName)
public void moveDownField(java.net.URI catalogServiceId,
                          java.lang.String fieldName)