public class Events extends AbstractCoreBulkResources<EventRestRep> implements TenantResources<EventRestRep>
Base URL: /vdc/events
Constructor and Description |
---|
Events(ViPRCoreClient parent,
RestClient client) |
Modifier and Type | Method and Description |
---|---|
TaskList |
approve(java.net.URI id) |
void |
deactivate(java.net.URI id) |
void |
decline(java.net.URI id) |
java.util.List<EventRestRep> |
findByResource(java.net.URI resourceId) |
java.util.List<EventRestRep> |
getByTenant(java.net.URI tenantId)
Gets the resources associated with a given tenant.
|
java.util.List<EventRestRep> |
getByTenant(java.net.URI tenantId,
ResourceFilter<EventRestRep> filter)
Gets the resources associated with a given tenant, optionally filtering the results as they are returned.
|
java.util.List<EventRestRep> |
getByUserTenant()
Convenience method for retrieving by user's current tenant.
|
java.util.List<EventRestRep> |
getByUserTenant(ResourceFilter<EventRestRep> filter)
Convenience method for retrieving by user's current tenant.
|
EventDetailsRestRep |
getDetails(java.net.URI id) |
EventStatsRestRep |
getStatsByTenant(java.net.URI tenantId)
Returns task statistics for the given 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.
|
Events |
withInactive(boolean inactive)
Configures the fetch operations to include inactive resources.
|
Events |
withInternal(boolean internal)
Configures the fetch operations to include internal resources.
|
getByIds, getByRefs, listBulkIds
addTags, get, get, getByIds, getByRefs, getTags, performSearch, performSearchBy, removeTags, search, updateTags
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getByIds, getByRefs
addTags, get, get, getTags, removeTags, search, updateTags
public Events(ViPRCoreClient parent, RestClient client)
public Events withInactive(boolean inactive)
AbstractResources
withInactive
in class AbstractResources<EventRestRep>
inactive
- whether to include inactive resources.public Events withInternal(boolean internal)
AbstractResources
withInternal
in class AbstractResources<EventRestRep>
internal
- whether to include internal resources.public void deactivate(java.net.URI id)
public TaskList approve(java.net.URI id)
public void decline(java.net.URI id)
public EventDetailsRestRep getDetails(java.net.URI id)
public EventStatsRestRep getStatsByTenant(java.net.URI tenantId)
public java.util.List<NamedRelatedResourceRep> listByTenant(java.net.URI tenantId)
TenantResources
listByTenant
in interface TenantResources<EventRestRep>
tenantId
- the tenant ID.public java.util.List<NamedRelatedResourceRep> listByUserTenant()
TenantResources
Equivalent to: listByTenant(client.getUserTenant())
listByUserTenant
in interface TenantResources<EventRestRep>
TenantResources.listByTenant(URI)
public java.util.List<EventRestRep> getByTenant(java.net.URI tenantId)
TenantResources
getByTenant
in interface TenantResources<EventRestRep>
tenantId
- the tenant ID.Resources.getByRefs(java.util.Collection)
public java.util.List<EventRestRep> getByUserTenant()
TenantResources
Equivalent to: getByTenant(client.getUserTenant())
getByUserTenant
in interface TenantResources<EventRestRep>
TenantResources.getByTenant(URI)
public java.util.List<EventRestRep> getByUserTenant(ResourceFilter<EventRestRep> filter)
TenantResources
Equivalent to: getByTenant(client.getUserTenant(), filter)
getByUserTenant
in interface TenantResources<EventRestRep>
TenantResources.getByTenant(URI, ResourceFilter)
public java.util.List<EventRestRep> getByTenant(java.net.URI tenantId, ResourceFilter<EventRestRep> filter)
TenantResources
getByTenant
in interface TenantResources<EventRestRep>
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 java.util.List<EventRestRep> findByResource(java.net.URI resourceId)