microsoft.dynamics.crm.entity.collection.request.RelationshipCollectionRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of odata-client-microsoft-dynamics Show documentation
Show all versions of odata-client-microsoft-dynamics Show documentation
Java client as template for Microsoft Dynamics organisation endpoints
package microsoft.dynamics.crm.entity.collection.request;
import com.github.davidmoten.odata.client.CollectionPageEntityRequest;
import com.github.davidmoten.odata.client.ContextPath;
import com.github.davidmoten.odata.client.NameValue;
import microsoft.dynamics.crm.entity.Relationship;
import microsoft.dynamics.crm.entity.request.RelationshipRequest;
import microsoft.dynamics.crm.entity.request.RelationshipattributeRequest;
import microsoft.dynamics.crm.schema.SchemaInfo;
public class RelationshipCollectionRequest extends CollectionPageEntityRequest{
protected ContextPath contextPath;
public RelationshipCollectionRequest(ContextPath contextPath) {
super(contextPath, Relationship.class, cp -> new RelationshipRequest(cp), SchemaInfo.INSTANCE);
this.contextPath = contextPath;
}
public RelationshipattributeCollectionRequest relationship_relationshipattribute() {
return new RelationshipattributeCollectionRequest(contextPath.addSegment("relationship_relationshipattribute"));
}
public RelationshipattributeRequest relationship_relationshipattribute(String relationshipattributeid) {
return new RelationshipattributeRequest(contextPath.addSegment("relationship_relationshipattribute").addKeys(new NameValue(relationshipattributeid.toString())));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy