public static interface ServicePackageGrantSDK.ServicePackageGrantClient
ServicePackageGrant resource APIs.| Modifier and Type | Interface and Description |
|---|---|
static class |
ServicePackageGrantSDK.ServicePackageGrantClient.GranteeType
Enumeration of supported package grantee types.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.common.util.concurrent.CheckedFuture<ServicePackageGrant,com.covisint.core.http.service.core.ServiceException> |
assignOrganizationGrant(String organizationId,
String packageId)
Grants a service package to an organization, based on the given organization and package id.
|
com.google.common.util.concurrent.CheckedFuture<ServicePackageGrant,com.covisint.core.http.service.core.ServiceException> |
assignPersonGrant(String personId,
String packageId)
Grants a service package to a person, based on the given person and package id.
|
com.google.common.util.concurrent.CheckedFuture<ServicePackageGrant,com.covisint.core.http.service.core.ServiceException> |
getOrganizationGrant(String organizationId,
String packageId)
Retrieves a
ServicePackageGrant issued to the given organization, matching the package id. |
com.google.common.util.concurrent.CheckedFuture<ServicePackageGrant,com.covisint.core.http.service.core.ServiceException> |
getPersonGrant(String personId,
String packageId)
Retrieves a
ServicePackageGrant issued to the given person, matching the package id. |
com.google.common.util.concurrent.CheckedFuture<Iterable<ServicePackageGrant>,com.covisint.core.http.service.core.ServiceException> |
listOrganizationGrants(String organizationId,
com.covisint.core.http.service.core.Page page)
Lists all service package grants issued to the given organization.
|
com.google.common.util.concurrent.CheckedFuture<Iterable<ServicePackageGrant>,com.covisint.core.http.service.core.ServiceException> |
listPersonGrants(String personId,
com.covisint.core.http.service.core.Page page)
Lists all service package grants issued to the given person.
|
com.google.common.util.concurrent.CheckedFuture<List<ServicePackageGrant>,com.covisint.core.http.service.core.ServiceException> |
search(String grantedPackageId,
ServicePackageGrantSDK.ServicePackageGrantClient.GranteeType granteeType,
com.covisint.core.http.service.core.Page page)
Search for service package grants satisfying the given criteria.
|
@Nonnull com.google.common.util.concurrent.CheckedFuture<Iterable<ServicePackageGrant>,com.covisint.core.http.service.core.ServiceException> listPersonGrants(@Nonnull@NotEmpty String personId, @Nonnull com.covisint.core.http.service.core.Page page)
personId - The id of the person whose package grants are to be returned.page - The pagination criteria.@Nonnull com.google.common.util.concurrent.CheckedFuture<Iterable<ServicePackageGrant>,com.covisint.core.http.service.core.ServiceException> listOrganizationGrants(@Nonnull@NotEmpty String organizationId, @Nonnull com.covisint.core.http.service.core.Page page)
organizationId - The id of the organization whose package grants are to be returned.page - The pagination criteria.@Nonnull com.google.common.util.concurrent.CheckedFuture<ServicePackageGrant,com.covisint.core.http.service.core.ServiceException> getPersonGrant(@Nonnull@NotEmpty String personId, @Nonnull@NotEmpty String packageId)
ServicePackageGrant issued to the given person, matching the package id.personId - The id of the grantee.packageId - The id of the granted package.@Nonnull com.google.common.util.concurrent.CheckedFuture<ServicePackageGrant,com.covisint.core.http.service.core.ServiceException> getOrganizationGrant(@Nonnull@NotEmpty String organizationId, @Nonnull@NotEmpty String packageId)
ServicePackageGrant issued to the given organization, matching the package id.organizationId - The id of the grantee.packageId - The id of the granted package.@Nonnull com.google.common.util.concurrent.CheckedFuture<ServicePackageGrant,com.covisint.core.http.service.core.ServiceException> assignPersonGrant(@Nonnull@NotEmpty String personId, @Nonnull@NotEmpty String packageId)
personId - The id of the person receiving the package grant.packageId - The id of the package to be granted.@Nonnull com.google.common.util.concurrent.CheckedFuture<ServicePackageGrant,com.covisint.core.http.service.core.ServiceException> assignOrganizationGrant(@Nonnull@NotEmpty String organizationId, @Nonnull@NotEmpty String packageId)
organizationId - The id of the organization receiving the package grant.packageId - The id of the package to be granted.@Nonnull com.google.common.util.concurrent.CheckedFuture<List<ServicePackageGrant>,com.covisint.core.http.service.core.ServiceException> search(@Nonnull@NotEmpty String grantedPackageId, @Nonnull@NotEmpty ServicePackageGrantSDK.ServicePackageGrantClient.GranteeType granteeType, @Nonnull com.covisint.core.http.service.core.Page page)
grantedPackageId - The id of the granted package to search.granteeType - The package grantee type.page - The pagination criteria. Pass Page.DEFAULT to return the standard result collection.Copyright © 2015 Covisint. All rights reserved.