public SSCActionBuilder( IRestServiceGrammar restGrammar, ISSCUrlParameters sscGrammar) { this.restGrammar = restGrammar; this.sscGrammar = sscGrammar; }
public void SetUp() { IRestServiceGrammar restGrammar = RestServiceGrammar.ItemWebApiV2Grammar(); IWebApiUrlParameters webApiGrammar = WebApiUrlParameters.ItemWebApiV2UrlParameters(); this.builderForId = new ItemByIdUrlBuilder(restGrammar, webApiGrammar); this.builderForPath = new ItemByPathUrlBuilder(restGrammar, webApiGrammar); this.builderForQuery = new ItemByQueryUrlBuilder(restGrammar, webApiGrammar); this.defaultSource = new ItemSourcePOD(null, null, null); SessionConfigPOD mutableSessionConfig = new SessionConfigPOD(); mutableSessionConfig.ItemWebApiVersion = "v1"; mutableSessionConfig.InstanceUrl = "tumba.yumba"; mutableSessionConfig.Site = null; this.sessionConfig = mutableSessionConfig; mutableSessionConfig = new SessionConfigPOD(); mutableSessionConfig.ItemWebApiVersion = "v234"; mutableSessionConfig.InstanceUrl = "trololo.net"; mutableSessionConfig.Site = "/sitecore/shell"; this.sitecoreShellConfig = mutableSessionConfig; }
public GetPublicKeyTasks(SessionConfigUrlBuilder sessionConfigBuilder, IRestServiceGrammar restGrammar, IWebApiUrlParameters webApiGrammar, HttpClient httpClient) { this.sessionConfigBuilder = sessionConfigBuilder; this.restGrammar = restGrammar; this.webApiGrammar = webApiGrammar; this.httpClient = httpClient; }
public SessionConfigUrlBuilder(IRestServiceGrammar restGrammar, ISSCUrlParameters sscGrammar) { this.restGrammar = restGrammar; this.sscGrammar = sscGrammar; this.Validate(); }
public WebApiActionBuilder( IRestServiceGrammar restGrammar, IWebApiUrlParameters webApiGrammar) { this.restGrammar = restGrammar; this.webApiGrammar = webApiGrammar; }
public SessionConfigUrlBuilder(IRestServiceGrammar restGrammar, IWebApiUrlParameters webApiGrammar) { this.restGrammar = restGrammar; this.webApiGrammar = webApiGrammar; this.Validate(); }
public AbstractGetItemUrlBuilder(IRestServiceGrammar restGrammar, ISSCUrlParameters sscGrammar) { this.restGrammar = restGrammar; this.sscGrammar = sscGrammar; this.Validate(); }
public void SetUp() { IRestServiceGrammar restGrammar = RestServiceGrammar.ItemWebApiV2Grammar(); IWebApiUrlParameters webApiGrammar = WebApiUrlParameters.ItemWebApiV2UrlParameters(); this.builder = new QueryParametersUrlBuilder(restGrammar, webApiGrammar); }
public AbstractGetItemUrlBuilder(IRestServiceGrammar restGrammar, IWebApiUrlParameters webApiGrammar) { this.restGrammar = restGrammar; this.webApiGrammar = webApiGrammar; this.Validate(); }
protected AbstractDeleteItemUrlBuilder(IRestServiceGrammar restGrammar, IWebApiUrlParameters webApiGrammar) { this.RestGrammar = restGrammar; this.WebApiGrammar = webApiGrammar; this.sessionConfigUrlBuilder = new SessionConfigUrlBuilder(restGrammar, webApiGrammar); this.scopeBuilder = new ScopeParametersUrlBuilder(restGrammar, webApiGrammar); }
public ItemSourceUrlBuilder(IRestServiceGrammar restGrammar, ISSCUrlParameters sscGrammar, IItemSource itemSource) { this.itemSource = itemSource; this.restGrammar = restGrammar; this.sscGrammar = sscGrammar; this.Validate(); }
public ItemSourceUrlBuilder(IRestServiceGrammar restGrammar, IWebApiUrlParameters webApiGrammar, IItemSource itemSource) { this.itemSource = itemSource; this.restGrammar = restGrammar; this.webApiGrammar = webApiGrammar; this.Validate(); }
public AuthenticateTasks(IRestServiceGrammar restGrammar, IWebApiUrlParameters webApiGrammar, SessionConfigUrlBuilder urlBuilder, HttpClient httpClient, ICredentialsHeadersCryptor cryptor) { this.restGrammar = restGrammar; this.webApiGrammar = webApiGrammar; this.urlBuilder = urlBuilder; this.httpClient = httpClient; this.credentialsCryptor = cryptor; }
public UploadMediaUrlBuilder( IRestServiceGrammar restGrammar, IWebApiUrlParameters webApiGrammar, ISessionConfig sessionConfig, IMediaLibrarySettings mediaSettings ) { this.mediaSettings = mediaSettings; this.restGrammar = restGrammar; this.mediaSettings = mediaSettings; this.webApiGrammar = webApiGrammar; }
public void SetUp() { IRestServiceGrammar restGrammar = RestServiceGrammar.ItemSSCV2Grammar(); ISSCUrlParameters webApiGrammar = SSCUrlParameters.ItemSSCV2UrlParameters(); this.getEntityBuilder = new GetEntitiesUrlBuilder <IBaseEntityRequest>(restGrammar, webApiGrammar); SessionConfigPOD mutableSession = new SessionConfigPOD(); mutableSession.InstanceUrl = "http://mobiledev1ua1.dk.sitecore.net"; this.sessionConfig = mutableSession; }
public void SetUp() { IRestServiceGrammar restGrammar = RestServiceGrammar.ItemSSCV2Grammar(); ISSCUrlParameters webApiGrammar = SSCUrlParameters.ItemSSCV2UrlParameters(); this.builder = new ItemByPathUrlBuilder(restGrammar, webApiGrammar); SessionConfigPOD mutableSession = new SessionConfigPOD(); mutableSession.InstanceUrl = "http://mobiledev1ua1.dk.sitecore.net"; this.sessionConfig = mutableSession; this.payload = new QueryParameters(null); }
public MediaItemUrlBuilder( IRestServiceGrammar restGrammar, ISSCUrlParameters sscGrammar, ISessionConfig sessionConfig, IMediaLibrarySettings mediaSettings, IItemSource itemSource) { this.itemSource = itemSource; this.restGrammar = restGrammar; this.sscGrammar = sscGrammar; this.mediaSettings = mediaSettings; this.sessionConfig = sessionConfig; this.Validate(); }
public MediaItemUrlBuilder( IRestServiceGrammar restGrammar, IWebApiUrlParameters webApiGrammar, ISessionConfig sessionConfig, IMediaLibrarySettings mediaSettings, IItemSource itemSource) { this.itemSource = itemSource; this.restGrammar = restGrammar; this.webApiGrammar = webApiGrammar; this.mediaSettings = mediaSettings; this.sessionConfig = sessionConfig; this.Validate(); }
public void SetUp() { IRestServiceGrammar restGrammar = RestServiceGrammar.ItemSSCV2Grammar(); ISSCUrlParameters webApiGrammar = SSCUrlParameters.ItemSSCV2UrlParameters(); this.builder = new UpdateItemByIdUrlBuilder(restGrammar, webApiGrammar); SessionConfigPOD mutableSessionConfig = new SessionConfigPOD(); mutableSessionConfig.InstanceUrl = "mobiledev1ua1.dk.sitecore.net:7119"; ItemSource source = LegacyConstants.DefaultSource(); this.requestMerger = new UserRequestMerger(mutableSessionConfig, source, null); }
public void SetUp() { IRestServiceGrammar restGrammar = RestServiceGrammar.ItemWebApiV2Grammar(); IWebApiUrlParameters webApiGrammar = WebApiUrlParameters.ItemWebApiV2UrlParameters(); this.builder = new ItemByQueryUrlBuilder(restGrammar, webApiGrammar); SessionConfigPOD mutableSession = new SessionConfigPOD(); mutableSession.InstanceUrl = "http://mobiledev1ua1.dk.sitecore.net:722"; mutableSession.ItemWebApiVersion = "v13"; mutableSession.Site = null; this.sessionConfig = mutableSession; this.payload = new QueryParameters(PayloadType.Full, null, null); }
public void SetUp() { IRestServiceGrammar restGrammar = RestServiceGrammar.ItemWebApiV2Grammar(); IWebApiUrlParameters webApiGrammar = WebApiUrlParameters.ItemWebApiV2UrlParameters(); this.builder = new UpdateItemByPathUrlBuilder(restGrammar, webApiGrammar); SessionConfigPOD mutableSessionConfig = new SessionConfigPOD(); mutableSessionConfig.ItemWebApiVersion = "v234"; mutableSessionConfig.InstanceUrl = "mobiledev1ua1.dk.sitecore.net:7119"; mutableSessionConfig.Site = "/sitecore/shell"; ItemSource source = LegacyConstants.DefaultSource(); this.requestMerger = new UserRequestMerger(mutableSessionConfig, source); }
private string GetFieldsStatementFromCollection(IEnumerable <string> fields) { string result = this.sscGrammar.FieldsListParameterName + this.restGrammar.KeyValuePairSeparator; IRestServiceGrammar restGrammar = this.restGrammar; Func <string, string> fieldTransformerFunc = (currentField) => { return(restGrammar.ItemFieldSeparator + currentField); }; var fieldsWithSeparators = fields.Select(fieldTransformerFunc); string strFieldsList = string.Concat(fieldsWithSeparators); string strFieldsListWithoutLeadingSeparator = strFieldsList.Remove(0, 1); result += UrlBuilderUtils.EscapeDataString(strFieldsListWithoutLeadingSeparator); return(result); }
public void SetUp() { IRestServiceGrammar restGrammar = RestServiceGrammar.ItemWebApiV2Grammar(); IWebApiUrlParameters webApiGrammar = WebApiUrlParameters.ItemWebApiV2UrlParameters(); this.builder = new ItemByIdUrlBuilder(restGrammar, webApiGrammar); SessionConfigPOD mutableSessionConfig = new SessionConfigPOD(); mutableSessionConfig.ItemWebApiVersion = "v1"; mutableSessionConfig.InstanceUrl = "sitecore.net"; mutableSessionConfig.Site = null; this.sessionConfig = mutableSessionConfig; mutableSessionConfig = new SessionConfigPOD(); mutableSessionConfig.ItemWebApiVersion = "v234"; mutableSessionConfig.InstanceUrl = "mobiledev1ua1.dk.sitecore.net:7119"; mutableSessionConfig.Site = "/sitecore/shell"; this.sitecoreShellConfig = mutableSessionConfig; this.payload = new QueryParameters(PayloadType.Min, null, null); }
public ItemByQueryUrlBuilder(IRestServiceGrammar restGrammar, IWebApiUrlParameters webApiGrammar) : base(restGrammar, webApiGrammar) { }
public UpdateItemByIdUrlBuilder(IRestServiceGrammar restGrammar, ISSCUrlParameters sscGrammar) : base(restGrammar, sscGrammar) { }
public EntityByIdUrlBuilder(IRestServiceGrammar restGrammar, ISSCUrlParameters sscGrammar) : base(restGrammar, sscGrammar) { }
public PagingUrlBuilder(IRestServiceGrammar restGrammar, IWebApiUrlParameters webApiGrammar) { this.restGrammar = restGrammar; this.webApiGrammar = webApiGrammar; }
public GetItemsUrlBuilder(IRestServiceGrammar restGrammar, ISSCUrlParameters sscGrammar) : base(restGrammar, sscGrammar) { }
public AbstractChangeItemUrlBuilder(IRestServiceGrammar restGrammar, IWebApiUrlParameters webApiGrammar) : base(restGrammar, webApiGrammar) { }
protected AbstractDeleteItemUrlBuilder(IRestServiceGrammar restGrammar, ISSCUrlParameters sscGrammar) { this.RestGrammar = restGrammar; this.SSCGrammar = sscGrammar; this.sessionConfigUrlBuilder = new SessionConfigUrlBuilder(restGrammar, sscGrammar); }
public CreateItemByPathUrlBuilder(IRestServiceGrammar restGrammar, IWebApiUrlParameters webApiGrammar) : base(restGrammar, webApiGrammar) { }
public QueryParametersUrlBuilder(IRestServiceGrammar restGrammar, IWebApiUrlParameters webApiGrammar) { this.restGrammar = restGrammar; this.webApiGrammar = webApiGrammar; }