All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.springframework.social.partnercenter.api.agreement.AgreementMetaDataTemplate Maven / Gradle / Ivy

Go to download

A provider extension for Spring Social to enable connectivity with Microsoft and an API binding for Microsoft's Partner Center API.

There is a newer version: 10.11.0
Show newest version
package org.springframework.social.partnercenter.api.agreement;

import org.springframework.core.ParameterizedTypeReference;
import org.springframework.http.ResponseEntity;
import org.springframework.social.partnercenter.api.PagingResourceTemplate;
import org.springframework.social.partnercenter.api.PartnerCenterResponse;
import org.springframework.social.partnercenter.http.client.RestResource;

public class AgreementMetaDataTemplate extends PagingResourceTemplate implements AgreementMetaDataOperations {

	private RestResource restResource;

	public AgreementMetaDataTemplate(RestResource restResource, boolean isAuthorized) {
		super(restResource, isAuthorized, new ParameterizedTypeReference>() {});
		this.restResource = restResource;
	}

	@Override
	public ResponseEntity> getAgreementMetadatas() {
		return restResource.request()
				.pathSegment("agreements")
				.get(new ParameterizedTypeReference>() {});
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy