/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * Kind, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ namespace PortCMIS.Client { /// /// Session parameter constants. /// public static class SessionParameter { // ---- general parameter ---- /// Repository ID public const string RepositoryId = "org.apache.chemistry.portcmis.session.repository.id"; /// User public const string User = "org.apache.chemistry.portcmis.user"; /// Password public const string Password = "org.apache.chemistry.portcmis.password"; /// Preemptive authentication ("true" or "false") (basic auth only) public const string PreemptivAuthentication = "org.apache.chemistry.portcmis.binding.auth.http.preemptive"; // ---- provider parameter ---- /// Binding Type ("atompub" or "browser") /// public const string BindingType = "org.apache.chemistry.portcmis.binding.spi.type"; /// Force CMIS version ("1.0" or "1.1") public const string ForceCmisVersion = "org.apache.chemistry.portcmis.cmisversion"; /// Class name of the binding class public const string BindingSpiClass = "org.apache.chemistry.portcmis.binding.spi.classname"; /// URL of the AtomPub service document public const string AtomPubUrl = "org.apache.chemistry.portcmis.binding.atompub.url"; /// URL of the Browser service public const string BrowserUrl = "org.apache.chemistry.portcmis.binding.browser.url"; /// Succinct flag (browser binding only) public const string BrowserSuccinct = "org.apache.chemistry.portcmis.binding.browser.succinct"; /// DateTime format ("simple" or "extended") (browser binding only) /// public const string BrowserDateTimeFormat = "org.apache.chemistry.portcmis.binding.browser.datetimeformat"; /// Class name of the authentication provider class public const string AuthenticationProviderClass = "org.apache.chemistry.portcmis.binding.auth.classname"; /// Class name of the HTTP invoker class public const string HttpInvokerClass = "org.apache.chemistry.portcmis.binding.httpinvoker.classname"; /// Compression flag ("true" or "false") public const string Compression = "org.apache.chemistry.portcmis.binding.compression"; /// Connect timeout in milliseconds public const string ConnectTimeout = "org.apache.chemistry.portcmis.binding.connecttimeout"; /// Read timeout in milliseconds public const string ReadTimeout = "org.apache.chemistry.portcmis.binding.readtimeout"; /// OAuth 2 bearer token public const string OAuthBearerToken = "org.apache.chemistry.portcmis.binding.auth.http.oauth.bearer"; /// Proxy user public const string ProxyUser = "org.apache.chemistry.portcmis.binding.proxyuser"; /// Proxy password public const string ProxyPassword = "org.apache.chemistry.portcmis.binding.proxypassword"; /// CSRF HTTP header public const string CsrfHeader = "org.apache.chemistry.portcmis.binding.csrfheader"; /// User agent public const string UserAgent = "org.apache.chemistry.portcmis.binding.useragent"; // ---- binding caches ---- /// Size of the repositories cache public const string CacheSizeRepositories = "org.apache.chemistry.portcmis.binding.cache.repositories.size"; /// Size of the types cache public const string CacheSizeTypes = "org.apache.chemistry.portcmis.binding.cache.types.size"; /// Size of the link cache public const string CacheSizeLinks = "org.apache.chemistry.portcmis.binding.cache.links.size"; // ---- session parameter ---- /// Class name of the object factory class public const string ObjectFactoryClass = "org.apache.chemistry.portcmis.objectfactory.classname"; /// Class name of the object cache class public const string CacheClass = "org.apache.chemistry.portcmis.cache.classname"; /// Size of the object cache public const string CacheSizeObjects = "org.apache.chemistry.portcmis.cache.objects.size"; /// Time-to-live of objects in the object cache public const string CacheTTLObjects = "org.apache.chemistry.portcmis.cache.objects.ttl"; /// Size of the path cache public const string CacheSizePathToId = "org.apache.chemistry.portcmis.cache.pathtoid.size"; /// Time-to-live of objects in the path cache public const string CacheTTLPathToId = "org.apache.chemistry.portcmis.cache.pathtoid.ttl"; /// Path cache ("true" or "false") public const string CachePathOmit = "org.apache.chemistry.portcmis.cache.path.omit"; // ---- workarounds ---- /// Defines if the object ID should be added to the move URL ("true" or "false") /// (Workaround for SharePoint 2010) public const string IncludeObjectIdUrlParamOnCheckout = "org.apache.chemistry.portcmis.workaround.includeObjectIdOnCheckout"; /// Defines if the change token should be omitted for updating calls ("true" or "false") /// (Workaround for SharePoint 2010 and SharePoint 2013) public const string IncludeObjectIdUrlParamOnMove = "org.apache.chemistry.portcmis.workaround.includeObjectIdOnMove"; /// Defines if the document name should be added to the properties on check in if no properties are updated ("true" or "false") /// (Workaround for SharePoint 2010 and SharePoint 2013) public const string OmitChangeTokens = "org.apache.chemistry.portcmis.workaround.omitChangeTokens"; /// Defines if the document name should be added to the properties on check in if no properties are updated /// (Workaround for SharePoint 2010 and SharePoint 2013) public const string AddNameOnCheckIn = "org.apache.chemistry.portcmis.workaround.addNameOnCheckIn"; } }