public class ServicePackageGrantClientImpl extends com.covisint.core.http.service.client.BaseResourceClient<ServicePackageGrant> implements ServicePackageGrantClient
ServicePackageGrants.| Constructor and Description |
|---|
ServicePackageGrantClientImpl() |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.util.concurrent.CheckedFuture<ServicePackageGrant,com.covisint.core.http.service.core.ServiceException> |
add(ServicePackageGrant resource,
org.apache.http.protocol.HttpContext httpContext) |
com.google.common.util.concurrent.CheckedFuture<ServicePackageGrant,com.covisint.core.http.service.core.ServiceException> |
assignOrganizationGrant(String organizationId,
String packageId,
org.apache.http.protocol.HttpContext httpContext)
Grants a service package to an organization, based on the given organizationId and packageId.
|
com.google.common.util.concurrent.CheckedFuture<ServicePackageGrant,com.covisint.core.http.service.core.ServiceException> |
assignPersonGrant(String personId,
String packageId,
org.apache.http.protocol.HttpContext httpContext)
Grants a service package to a person, based on the given personId and packageId.
|
com.google.common.util.concurrent.CheckedFuture<ServicePackageGrant,com.covisint.core.http.service.core.ServiceException> |
delete(String id,
org.apache.http.protocol.HttpContext httpContext) |
com.google.common.util.concurrent.CheckedFuture<ServicePackageGrant,com.covisint.core.http.service.core.ServiceException> |
get(ServicePackageGrant resource,
org.apache.http.protocol.HttpContext httpContext) |
com.google.common.util.concurrent.CheckedFuture<ServicePackageGrant,com.covisint.core.http.service.core.ServiceException> |
get(String id,
org.apache.http.protocol.HttpContext httpContext) |
com.google.common.util.concurrent.CheckedFuture<ServicePackageGrant,com.covisint.core.http.service.core.ServiceException> |
getOrganizationGrant(String organizationId,
String packageId,
org.apache.http.protocol.HttpContext httpContext)
Retrieves a
ServicePackageGrant issued to the given organization, that matches the package id. |
com.google.common.util.concurrent.CheckedFuture<ServicePackageGrant,com.covisint.core.http.service.core.ServiceException> |
getPersonGrant(String personId,
String packageId,
org.apache.http.protocol.HttpContext httpContext)
Retrieves a
ServicePackageGrant issued to the given person, that matches the package id. |
com.google.common.util.concurrent.CheckedFuture<ServicePackageGrant,com.covisint.core.http.service.core.ServiceException> |
persist(ServicePackageGrant resource,
org.apache.http.protocol.HttpContext httpContext) |
com.google.common.util.concurrent.CheckedFuture<List<ServicePackageGrant>,com.covisint.core.http.service.core.ServiceException> |
search(com.google.common.collect.Multimap<String,String> searchCriteria,
com.covisint.core.http.service.core.SortCriteria sortCriteria,
com.covisint.core.http.service.core.Page page,
org.apache.http.protocol.HttpContext httpContext) |
com.google.common.util.concurrent.CheckedFuture<List<ServicePackageGrant>,com.covisint.core.http.service.core.ServiceException> |
search(com.google.common.collect.Multimap<String,String> searchCriteria,
com.covisint.core.http.service.core.SortCriteria sortCriteria,
com.covisint.core.http.service.core.Page page,
org.apache.http.protocol.HttpContext httpContext,
com.google.common.net.MediaType mediaType,
String searchResourcesEndPoint) |
com.google.common.util.concurrent.CheckedFuture<Iterable<ServicePackageGrant>,com.covisint.core.http.service.core.ServiceException> |
searchOrganizationGrants(String organizationId,
org.apache.http.protocol.HttpContext httpContext,
com.covisint.core.http.service.core.Page page)
Searches for all service package grants issued to the given organization.
|
com.google.common.util.concurrent.CheckedFuture<Iterable<ServicePackageGrant>,com.covisint.core.http.service.core.ServiceException> |
searchPersonGrants(String personId,
org.apache.http.protocol.HttpContext httpContext,
com.covisint.core.http.service.core.Page page)
Searches for all service package grants issued to the given person.
|
void |
setPackageGrantCollectionUriTemplate(com.damnhandy.uri.template.UriTemplate template)
Sets the URI template for the search package grant resource endpoint.
|
public void setPackageGrantCollectionUriTemplate(com.damnhandy.uri.template.UriTemplate template)
template - The URI template for the search package grant resource endpoint.@Nonnull public com.google.common.util.concurrent.CheckedFuture<Iterable<ServicePackageGrant>,com.covisint.core.http.service.core.ServiceException> searchPersonGrants(@Nonnull@NotEmpty String personId, @Nonnull org.apache.http.protocol.HttpContext httpContext, @Nonnull com.covisint.core.http.service.core.Page page)
searchPersonGrants in interface ServicePackageGrantClientpersonId - The id of the person to search on.httpContext - The http context used to store session-level attributes.page - The pagination criteria.@Nonnull public com.google.common.util.concurrent.CheckedFuture<Iterable<ServicePackageGrant>,com.covisint.core.http.service.core.ServiceException> searchOrganizationGrants(@Nonnull@NotEmpty String organizationId, @Nonnull org.apache.http.protocol.HttpContext httpContext, @Nonnull com.covisint.core.http.service.core.Page page)
searchOrganizationGrants in interface ServicePackageGrantClientorganizationId - The id of the organization to search on.httpContext - The http context used to store session-level attributes.page - The pagination criteria.@Nonnull public com.google.common.util.concurrent.CheckedFuture<ServicePackageGrant,com.covisint.core.http.service.core.ServiceException> getPersonGrant(@Nonnull@NotEmpty String personId, @Nonnull@NotEmpty String packageId, @Nonnull org.apache.http.protocol.HttpContext httpContext)
ServicePackageGrant issued to the given person, that matches the package id.getPersonGrant in interface ServicePackageGrantClientpersonId - The id of the grantee.packageId - The id of the granted package.httpContext - The http context used to store session-level attributes.@Nonnull public com.google.common.util.concurrent.CheckedFuture<ServicePackageGrant,com.covisint.core.http.service.core.ServiceException> getOrganizationGrant(@Nonnull@NotEmpty String organizationId, @Nonnull@NotEmpty String packageId, @Nonnull org.apache.http.protocol.HttpContext httpContext)
ServicePackageGrant issued to the given organization, that matches the package id.getOrganizationGrant in interface ServicePackageGrantClientorganizationId - The id of the grantee.packageId - The id of the granted package.httpContext - The http context used to store session-level attributes.@Nonnull public com.google.common.util.concurrent.CheckedFuture<ServicePackageGrant,com.covisint.core.http.service.core.ServiceException> assignPersonGrant(@Nonnull@NotEmpty String personId, @Nonnull@NotEmpty String packageId, @Nonnull org.apache.http.protocol.HttpContext httpContext)
assignPersonGrant in interface ServicePackageGrantClientpersonId - The id of the person receiving the package grantpackageId - The id of the package about to be grantedhttpContext - The http context used to store session-level attributes@Nonnull public com.google.common.util.concurrent.CheckedFuture<ServicePackageGrant,com.covisint.core.http.service.core.ServiceException> assignOrganizationGrant(@Nonnull@NotEmpty String organizationId, @Nonnull@NotEmpty String packageId, @Nonnull org.apache.http.protocol.HttpContext httpContext)
assignOrganizationGrant in interface ServicePackageGrantClientorganizationId - The id of the organization receiving the package grantpackageId - The id of the package about to be grantedhttpContext - The http context used to store session-level attributespublic com.google.common.util.concurrent.CheckedFuture<ServicePackageGrant,com.covisint.core.http.service.core.ServiceException> add(ServicePackageGrant resource, org.apache.http.protocol.HttpContext httpContext)
add in interface com.covisint.core.http.service.client.ResourceClient<ServicePackageGrant>add in class com.covisint.core.http.service.client.BaseResourceClient<ServicePackageGrant>public com.google.common.util.concurrent.CheckedFuture<ServicePackageGrant,com.covisint.core.http.service.core.ServiceException> delete(String id, org.apache.http.protocol.HttpContext httpContext)
delete in interface com.covisint.core.http.service.client.ResourceClient<ServicePackageGrant>delete in class com.covisint.core.http.service.client.BaseResourceClient<ServicePackageGrant>public com.google.common.util.concurrent.CheckedFuture<ServicePackageGrant,com.covisint.core.http.service.core.ServiceException> get(ServicePackageGrant resource, org.apache.http.protocol.HttpContext httpContext)
get in interface com.covisint.core.http.service.client.ResourceClient<ServicePackageGrant>get in class com.covisint.core.http.service.client.BaseResourceClient<ServicePackageGrant>public com.google.common.util.concurrent.CheckedFuture<ServicePackageGrant,com.covisint.core.http.service.core.ServiceException> get(String id, org.apache.http.protocol.HttpContext httpContext)
get in interface com.covisint.core.http.service.client.ResourceClient<ServicePackageGrant>get in class com.covisint.core.http.service.client.BaseResourceClient<ServicePackageGrant>public com.google.common.util.concurrent.CheckedFuture<ServicePackageGrant,com.covisint.core.http.service.core.ServiceException> persist(ServicePackageGrant resource, org.apache.http.protocol.HttpContext httpContext)
persist in interface com.covisint.core.http.service.client.ResourceClient<ServicePackageGrant>persist in class com.covisint.core.http.service.client.BaseResourceClient<ServicePackageGrant>public com.google.common.util.concurrent.CheckedFuture<List<ServicePackageGrant>,com.covisint.core.http.service.core.ServiceException> search(com.google.common.collect.Multimap<String,String> searchCriteria, com.covisint.core.http.service.core.SortCriteria sortCriteria, com.covisint.core.http.service.core.Page page, org.apache.http.protocol.HttpContext httpContext)
search in interface com.covisint.core.http.service.client.ResourceClient<ServicePackageGrant>search in class com.covisint.core.http.service.client.BaseResourceClient<ServicePackageGrant>public com.google.common.util.concurrent.CheckedFuture<List<ServicePackageGrant>,com.covisint.core.http.service.core.ServiceException> search(com.google.common.collect.Multimap<String,String> searchCriteria, com.covisint.core.http.service.core.SortCriteria sortCriteria, com.covisint.core.http.service.core.Page page, org.apache.http.protocol.HttpContext httpContext, com.google.common.net.MediaType mediaType, String searchResourcesEndPoint)
search in interface com.covisint.core.http.service.client.ResourceClient<ServicePackageGrant>search in class com.covisint.core.http.service.client.BaseResourceClient<ServicePackageGrant>Copyright © 2015 Covisint. All rights reserved.