Class CustomerServiceRequestCollectionOperations
java.lang.Object
com.microsoft.store.partnercenter.BasePartnerComponent<String>
com.microsoft.store.partnercenter.BasePartnerComponentString
com.microsoft.store.partnercenter.servicerequests.CustomerServiceRequestCollectionOperations
- All Implemented Interfaces:
IEntireEntityCollectionRetrievalOperations<ServiceRequest,ResourceCollection<ServiceRequest>>,IEntitySelector<String,IServiceRequest>,IPartnerComponent<String>,IPartnerComponentString,IServiceRequestCollection
public class CustomerServiceRequestCollectionOperations extends BasePartnerComponentString implements IServiceRequestCollection
The customer's service requests operations implementation.
-
Constructor Summary
Constructors Constructor Description CustomerServiceRequestCollectionOperations(IPartner rootPartnerOperations, String customerId)Initializes a new instance of the CustomerServiceRequestCollectionOperations class. -
Method Summary
Modifier and Type Method Description IServiceRequestbyId(String serviceRequestId)Retrieves a Service Request specified by IdResourceCollection<ServiceRequest>get()Retrieves Service Requests associated to the customer.SeekBasedResourceCollection<ServiceRequest>query(IQuery serviceRequestsQuery)Queries for service requests associated with a customerMethods inherited from class com.microsoft.store.partnercenter.BasePartnerComponent
getContext, getPartnerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.microsoft.store.partnercenter.IPartnerComponent
getContext, getPartner
-
Constructor Details
-
CustomerServiceRequestCollectionOperations
public CustomerServiceRequestCollectionOperations(IPartner rootPartnerOperations, String customerId)Initializes a new instance of the CustomerServiceRequestCollectionOperations class.- Parameters:
rootPartnerOperations- The root partner operations instance.customerId- The customer identifier.
-
-
Method Details
-
byId
Retrieves a Service Request specified by Id- Specified by:
byIdin interfaceIEntitySelector<String,IServiceRequest>- Specified by:
byIdin interfaceIServiceRequestCollection- Parameters:
serviceRequestId- Service Request Id- Returns:
- Service Request Operations
-
query
Queries for service requests associated with a customer- Specified by:
queryin interfaceIServiceRequestCollection- Parameters:
serviceRequestsQuery- The query with search parameters- Returns:
- A collection of service requests matching the criteria
-
get
Retrieves Service Requests associated to the customer.- Specified by:
getin interfaceIEntireEntityCollectionRetrievalOperations<ServiceRequest,ResourceCollection<ServiceRequest>>- Specified by:
getin interfaceIServiceRequestCollection- Returns:
- A collection of service requests
-