Return-Path: X-Original-To: apmail-chemistry-commits-archive@www.apache.org Delivered-To: apmail-chemistry-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C4FA9194B0 for ; Tue, 26 Apr 2016 13:31:48 +0000 (UTC) Received: (qmail 10149 invoked by uid 500); 26 Apr 2016 13:31:48 -0000 Delivered-To: apmail-chemistry-commits-archive@chemistry.apache.org Received: (qmail 10103 invoked by uid 500); 26 Apr 2016 13:31:48 -0000 Mailing-List: contact commits-help@chemistry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@chemistry.apache.org Delivered-To: mailing list commits@chemistry.apache.org Received: (qmail 10092 invoked by uid 99); 26 Apr 2016 13:31:48 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Apr 2016 13:31:48 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id EEEC9C2001 for ; Tue, 26 Apr 2016 13:31:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.804 X-Spam-Level: X-Spam-Status: No, score=0.804 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-0.996] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 6suhoaAX5pBh for ; Tue, 26 Apr 2016 13:31:45 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 7588A5F19A for ; Tue, 26 Apr 2016 13:31:45 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 9A847E0454 for ; Tue, 26 Apr 2016 13:31:44 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 7F2FB3A0734 for ; Tue, 26 Apr 2016 13:31:44 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1741020 [2/2] - in /chemistry/portcmis/trunk: PortCMIS/binding/ PortCMIS/binding/browser/ PortCMIS/binding/browser/json/ PortCMIS/client/ PortCMIS/const/ PortCMIS/data/ PortCMIS/enum/ PortCMIS/exceptions/ PortCMISWin/binding/ Date: Tue, 26 Apr 2016 13:31:44 -0000 To: commits@chemistry.apache.org From: fmui@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20160426133144.7F2FB3A0734@svn01-us-west.apache.org> Modified: chemistry/portcmis/trunk/PortCMIS/enum/Enums.cs URL: http://svn.apache.org/viewvc/chemistry/portcmis/trunk/PortCMIS/enum/Enums.cs?rev=1741020&r1=1741019&r2=1741020&view=diff ============================================================================== --- chemistry/portcmis/trunk/PortCMIS/enum/Enums.cs (original) +++ chemistry/portcmis/trunk/PortCMIS/enum/Enums.cs Tue Apr 26 13:31:44 2016 @@ -65,10 +65,19 @@ namespace PortCMIS.Enums /// public enum CapabilityContentStreamUpdates { + /// + /// Content can be updated at any time. + /// [CmisValue("anytime")] Anyime, + /// + /// Only the content on PWCs can be updated. + /// [CmisValue("pwconly")] PWCOnly, + /// + /// Content cannot be updated. + /// [CmisValue("none")] None } @@ -78,12 +87,24 @@ namespace PortCMIS.Enums /// public enum CapabilityChanges { + /// + /// Change log is not supported. + /// [CmisValue("none")] None, + /// + /// The change log only contains object IDs. + /// [CmisValue("objectidsonly")] ObjectIdsOnly, + /// + /// The change log only contains properties. + /// [CmisValue("properties")] Properties, + /// + /// The change log only contains everything. + /// [CmisValue("all")] All } @@ -93,8 +114,14 @@ namespace PortCMIS.Enums /// public enum CapabilityRenditions { + /// + /// Renditions are not supported. + /// [CmisValue("none")] None, + /// + /// Renditions can be read. + /// [CmisValue("read")] Read } @@ -104,14 +131,29 @@ namespace PortCMIS.Enums /// public enum CapabilityQuery { + /// + /// Query is not supported. + /// [CmisValue("none")] None, + /// + /// Only metadata queries are supported. + /// [CmisValue("metadataonly")] MetadataOnly, + /// + /// Only fulltext queries are supported. + /// [CmisValue("fulltextonly")] FulltextOnly, + /// + /// Metadata and fulltext queries are supported but only separately. + /// [CmisValue("bothseparate")] BothSeparate, + /// + /// Metadata and fulltext queries are supported. + /// [CmisValue("bothcombined")] BothCombined } @@ -121,10 +163,19 @@ namespace PortCMIS.Enums /// public enum CapabilityJoin { + /// + /// Joins are not supported. + /// [CmisValue("none")] None, + /// + /// Only inner joins are supported. + /// [CmisValue("inneronly")] InnerOnly, + /// + /// Inner and outer joins are supported. + /// [CmisValue("innerandouter")] InnerAndOuter } @@ -134,10 +185,19 @@ namespace PortCMIS.Enums /// public enum CapabilityAcl { + /// + /// ACLs are not supported. + /// [CmisValue("none")] None, + /// + /// ACLs can be discovered. + /// [CmisValue("discover")] Discover, + /// + /// ACLs can be managed. + /// [CmisValue("manage")] Manage } @@ -147,10 +207,19 @@ namespace PortCMIS.Enums /// public enum CapabilityOrderBy { + /// + /// Order by is not supported. + /// [CmisValue("none")] None, + /// + /// Order by is supported for common properties. + /// [CmisValue("common")] Common, + /// + /// Order by is supported for common and custom properties. + /// [CmisValue("custom")] Custom } @@ -182,10 +251,19 @@ namespace PortCMIS.Enums /// public enum AclPropagation { + /// + /// Repository determines the objects to change. + /// [CmisValue("repositorydetermined")] RepositoryDetermined, + /// + /// ACL is only changed for this object. + /// [CmisValue("objectonly")] ObjectOnly, + /// + /// ACL is changed for this object and propagated to related objects. + /// [CmisValue("propagate")] Propagate } @@ -195,10 +273,19 @@ namespace PortCMIS.Enums /// public enum ContentStreamAllowed { + /// + /// Documents cannot have content. + /// [CmisValue("notallowed")] NotAllowed, + /// + /// Documents can have content. + /// [CmisValue("allowed")] Allowed, + /// + /// Documents must have content. + /// [CmisValue("required")] Required } @@ -208,20 +295,44 @@ namespace PortCMIS.Enums /// public enum PropertyType { + /// + /// Boolean. + /// [CmisValue("boolean")] Boolean, + /// + /// ID. + /// [CmisValue("id")] Id, + /// + /// Integer. + /// [CmisValue("integer")] Integer, + /// + /// DateTime. + /// [CmisValue("datetime")] DateTime, + /// + /// Decimal. + /// [CmisValue("decimal")] Decimal, + /// + /// HTML. + /// [CmisValue("html")] Html, + /// + /// String. + /// [CmisValue("string")] String, + /// + /// URI. + /// [CmisValue("uri")] Uri } @@ -275,10 +386,19 @@ namespace PortCMIS.Enums /// public enum DateTimeResolution { + /// + /// Years only. + /// [CmisValue("year")] Year, + /// + /// Date. + /// [CmisValue("date")] Date, + /// + /// Date and time. + /// [CmisValue("time")] Time } @@ -288,8 +408,14 @@ namespace PortCMIS.Enums /// public enum DecimalPrecision { + /// + /// 32 bit precision. + /// [CmisValue("32")] Bits32, + /// + /// 64 bit precision. + /// [CmisValue("64")] Bits64 } @@ -299,12 +425,24 @@ namespace PortCMIS.Enums /// public enum IncludeRelationships { + /// + /// Include no relationships. + /// [CmisValue("none")] None, + /// + /// Only relationships in which the objects returned are the source must be returned. + /// [CmisValue("source")] Source, + /// + /// Only relationships in which the objects returned are the target must be returned. + /// [CmisValue("target")] Target, + /// + /// Include all relationships. + /// [CmisValue("both")] Both } @@ -314,12 +452,24 @@ namespace PortCMIS.Enums /// public enum VersioningState { + /// + /// No version. + /// [CmisValue("none")] None, + /// + /// Major version. + /// [CmisValue("major")] Major, + /// + /// Minor version. + /// [CmisValue("minor")] Minor, + /// + /// Checked out (PWC). + /// [CmisValue("checkedout")] CheckedOut } @@ -329,10 +479,19 @@ namespace PortCMIS.Enums /// public enum UnfileObject { + /// + /// Unfile all objects. + /// [CmisValue("unfile")] Unfile, + /// + /// Delete single filed object, unfile all others. + /// [CmisValue("deletesinglefiled")] DeleteSinglefiled, + /// + /// Delete all objects. + /// [CmisValue("delete")] Delete } @@ -342,10 +501,19 @@ namespace PortCMIS.Enums /// public enum RelationshipDirection { + /// + /// Only relationship objects where the specified object is the source object. + /// [CmisValue("source")] Source, + /// + /// Only relationship objects where the specified object is the target object + /// [CmisValue("target")] Target, + /// + /// All relationships. + /// [CmisValue("either")] Either } @@ -503,7 +671,7 @@ namespace PortCMIS.Enums // --- attribute class --- [AttributeUsage(AttributeTargets.Field)] - public class CmisValueAttribute : System.Attribute + internal class CmisValueAttribute : System.Attribute { public CmisValueAttribute(string value) { @@ -519,8 +687,13 @@ namespace PortCMIS.Enums /// /// Handles translations from Enums into CMIS values and vice versa. /// - public static class CmisValue + internal static class CmisValue { + /// + /// Gets the CMIS value from an enum. + /// + /// the enum + /// the CMIS value or null if no value can be determined public static string GetCmisValue(this Enum value) { FieldInfo fieldInfo = value.GetType().GetRuntimeField(value.ToString()); @@ -528,6 +701,12 @@ namespace PortCMIS.Enums return cmisValueAttr.Length > 0 ? cmisValueAttr[0].Value : null; } + /// + /// Gets an enum from a CMIS value. + /// + /// the enum type + /// the CMIS value + /// the enum value public static T GetCmisEnum(this string value) { Type type = typeof(T); Modified: chemistry/portcmis/trunk/PortCMIS/exceptions/Exceptions.cs URL: http://svn.apache.org/viewvc/chemistry/portcmis/trunk/PortCMIS/exceptions/Exceptions.cs?rev=1741020&r1=1741019&r2=1741020&view=diff ============================================================================== --- chemistry/portcmis/trunk/PortCMIS/exceptions/Exceptions.cs (original) +++ chemistry/portcmis/trunk/PortCMIS/exceptions/Exceptions.cs Tue Apr 26 13:31:44 2016 @@ -91,10 +91,9 @@ namespace PortCMIS.Exceptions /// The unparsed error message. public string ErrorContent { get; protected set; } - /// - /// The CMIS exception name. - /// - /// The CMIS exception name. + /// + /// The CMIS exception name + /// public abstract string Name { get; } } @@ -104,15 +103,40 @@ namespace PortCMIS.Exceptions /// public class CmisConnectionException : CmisBaseException { + /// + /// Constructor. + /// public CmisConnectionException() : base() { } + + /// + /// Constructor. + /// public CmisConnectionException(string message) : base(message) { } + + /// + /// Constructor. + /// public CmisConnectionException(string message, Exception inner) : base(message, inner) { } + + /// + /// Constructor. + /// public CmisConnectionException(string message, long? code) : base(message) { } + + /// + /// Constructor. + /// public CmisConnectionException(string message, string errorContent) : base(message) { } + + /// + /// Constructor. + /// public CmisConnectionException(string message, string errorContent, Exception inner) : base(message, errorContent, inner) { } + /// The CMIS exception name public const string ExceptionName = "connection"; + /// public override string Name { get { return ExceptionName; } } } @@ -121,15 +145,40 @@ namespace PortCMIS.Exceptions /// public class CmisConstraintException : CmisBaseException { + /// + /// Constructor. + /// public CmisConstraintException() : base() { } + + /// + /// Constructor. + /// public CmisConstraintException(string message) : base(message) { } + + /// + /// Constructor. + /// public CmisConstraintException(string message, Exception inner) : base(message, inner) { } + + /// + /// Constructor. + /// public CmisConstraintException(string message, long? code) : base(message) { } + + /// + /// Constructor. + /// public CmisConstraintException(string message, string errorContent) : base(message) { } + + /// + /// Constructor. + /// public CmisConstraintException(string message, string errorContent, Exception inner) : base(message, errorContent, inner) { } + /// The CMIS exception name public const string ExceptionName = "constraint"; + /// public override string Name { get { return ExceptionName; } } } @@ -138,15 +187,40 @@ namespace PortCMIS.Exceptions /// public class CmisContentAlreadyExistsException : CmisBaseException { + /// + /// Constructor. + /// public CmisContentAlreadyExistsException() : base() { } + + /// + /// Constructor. + /// public CmisContentAlreadyExistsException(string message) : base(message) { } + + /// + /// Constructor. + /// public CmisContentAlreadyExistsException(string message, Exception inner) : base(message, inner) { } + + /// + /// Constructor. + /// public CmisContentAlreadyExistsException(string message, long? code) : base(message) { } + + /// + /// Constructor. + /// public CmisContentAlreadyExistsException(string message, string errorContent) : base(message) { } + + /// + /// Constructor. + /// public CmisContentAlreadyExistsException(string message, string errorContent, Exception inner) : base(message, errorContent, inner) { } + /// The CMIS exception name public const string ExceptionName = "contentAlreadyExists"; + /// public override string Name { get { return ExceptionName; } } } @@ -155,15 +229,40 @@ namespace PortCMIS.Exceptions /// public class CmisFilterNotValidException : CmisBaseException { + /// + /// Constructor. + /// public CmisFilterNotValidException() : base() { } + + /// + /// Constructor. + /// public CmisFilterNotValidException(string message) : base(message) { } + + /// + /// Constructor. + /// public CmisFilterNotValidException(string message, Exception inner) : base(message, inner) { } + + /// + /// Constructor. + /// public CmisFilterNotValidException(string message, long? code) : base(message) { } + + /// + /// Constructor. + /// public CmisFilterNotValidException(string message, string errorContent) : base(message) { } + + /// + /// Constructor. + /// public CmisFilterNotValidException(string message, string errorContent, Exception inner) : base(message, errorContent, inner) { } + /// The CMIS exception name public const string ExceptionName = "filterNotValid"; + /// public override string Name { get { return ExceptionName; } } } @@ -172,15 +271,40 @@ namespace PortCMIS.Exceptions /// public class CmisInvalidArgumentException : CmisBaseException { + /// + /// Constructor. + /// public CmisInvalidArgumentException() : base() { } + + /// + /// Constructor. + /// public CmisInvalidArgumentException(string message) : base(message) { } + + /// + /// Constructor. + /// public CmisInvalidArgumentException(string message, Exception inner) : base(message, inner) { } + + /// + /// Constructor. + /// public CmisInvalidArgumentException(string message, long? code) : base(message) { } + + /// + /// Constructor. + /// public CmisInvalidArgumentException(string message, string errorContent) : base(message) { } + + /// + /// Constructor. + /// public CmisInvalidArgumentException(string message, string errorContent, Exception inner) : base(message, errorContent, inner) { } + /// The CMIS exception name public const string ExceptionName = "invalidArgument"; + /// public override string Name { get { return ExceptionName; } } } @@ -189,15 +313,40 @@ namespace PortCMIS.Exceptions /// public class CmisNameConstraintViolationException : CmisBaseException { + /// + /// Constructor. + /// public CmisNameConstraintViolationException() : base() { } + + /// + /// Constructor. + /// public CmisNameConstraintViolationException(string message) : base(message) { } + + /// + /// Constructor. + /// public CmisNameConstraintViolationException(string message, Exception inner) : base(message, inner) { } + + /// + /// Constructor. + /// public CmisNameConstraintViolationException(string message, long? code) : base(message) { } + + /// + /// Constructor. + /// public CmisNameConstraintViolationException(string message, string errorContent) : base(message) { } + + /// + /// Constructor. + /// public CmisNameConstraintViolationException(string message, string errorContent, Exception inner) : base(message, errorContent, inner) { } + /// The CMIS exception name public const string ExceptionName = "nameConstraintViolation"; + /// public override string Name { get { return ExceptionName; } } } @@ -206,15 +355,40 @@ namespace PortCMIS.Exceptions /// public class CmisNotSupportedException : CmisBaseException { + /// + /// Constructor. + /// public CmisNotSupportedException() : base() { } + + /// + /// Constructor. + /// public CmisNotSupportedException(string message) : base(message) { } + + /// + /// Constructor. + /// public CmisNotSupportedException(string message, Exception inner) : base(message, inner) { } + + /// + /// Constructor. + /// public CmisNotSupportedException(string message, long? code) : base(message) { } + + /// + /// Constructor. + /// public CmisNotSupportedException(string message, string errorContent) : base(message) { } + + /// + /// Constructor. + /// public CmisNotSupportedException(string message, string errorContent, Exception inner) : base(message, errorContent, inner) { } + /// The CMIS exception name public const string ExceptionName = "notSupported"; + /// public override string Name { get { return ExceptionName; } } } @@ -223,15 +397,40 @@ namespace PortCMIS.Exceptions /// public class CmisObjectNotFoundException : CmisBaseException { + /// + /// Constructor. + /// public CmisObjectNotFoundException() : base() { } + + /// + /// Constructor. + /// public CmisObjectNotFoundException(string message) : base(message) { } + + /// + /// Constructor. + /// public CmisObjectNotFoundException(string message, Exception inner) : base(message, inner) { } + + /// + /// Constructor. + /// public CmisObjectNotFoundException(string message, long? code) : base(message) { } + + /// + /// Constructor. + /// public CmisObjectNotFoundException(string message, string errorContent) : base(message) { } + + /// + /// Constructor. + /// public CmisObjectNotFoundException(string message, string errorContent, Exception inner) : base(message, errorContent, inner) { } + /// The CMIS exception name public const string ExceptionName = "objectNotFound"; + /// public override string Name { get { return ExceptionName; } } } @@ -240,15 +439,40 @@ namespace PortCMIS.Exceptions /// public class CmisPermissionDeniedException : CmisBaseException { + /// + /// Constructor. + /// public CmisPermissionDeniedException() : base() { } + + /// + /// Constructor. + /// public CmisPermissionDeniedException(string message) : base(message) { } + + /// + /// Constructor. + /// public CmisPermissionDeniedException(string message, Exception inner) : base(message, inner) { } + + /// + /// Constructor. + /// public CmisPermissionDeniedException(string message, long? code) : base(message) { } + + /// + /// Constructor. + /// public CmisPermissionDeniedException(string message, string errorContent) : base(message) { } + + /// + /// Constructor. + /// public CmisPermissionDeniedException(string message, string errorContent, Exception inner) : base(message, errorContent, inner) { } + /// The CMIS exception name public const string ExceptionName = "permissionDenied"; + /// public override string Name { get { return ExceptionName; } } } @@ -257,15 +481,40 @@ namespace PortCMIS.Exceptions /// public class CmisRuntimeException : CmisBaseException { + /// + /// Constructor. + /// public CmisRuntimeException() : base() { } + + /// + /// Constructor. + /// public CmisRuntimeException(string message) : base(message) { } + + /// + /// Constructor. + /// public CmisRuntimeException(string message, Exception inner) : base(message, inner) { } + + /// + /// Constructor. + /// public CmisRuntimeException(string message, long? code) : base(message) { } + + /// + /// Constructor. + /// public CmisRuntimeException(string message, string errorContent) : base(message) { } + + /// + /// Constructor. + /// public CmisRuntimeException(string message, string errorContent, Exception inner) : base(message, errorContent, inner) { } + /// The CMIS exception name public const string ExceptionName = "runtime"; + /// public override string Name { get { return ExceptionName; } } } @@ -274,15 +523,40 @@ namespace PortCMIS.Exceptions /// public class CmisStorageException : CmisBaseException { + /// + /// Constructor. + /// public CmisStorageException() : base() { } + + /// + /// Constructor. + /// public CmisStorageException(string message) : base(message) { } + + /// + /// Constructor. + /// public CmisStorageException(string message, Exception inner) : base(message, inner) { } + + /// + /// Constructor. + /// public CmisStorageException(string message, long? code) : base(message) { } + + /// + /// Constructor. + /// public CmisStorageException(string message, string errorContent) : base(message) { } + + /// + /// Constructor. + /// public CmisStorageException(string message, string errorContent, Exception inner) : base(message, errorContent, inner) { } + /// The CMIS exception name public const string ExceptionName = "storage"; + /// public override string Name { get { return ExceptionName; } } } @@ -291,15 +565,40 @@ namespace PortCMIS.Exceptions /// public class CmisStreamNotSupportedException : CmisBaseException { + /// + /// Constructor. + /// public CmisStreamNotSupportedException() : base() { } + + /// + /// Constructor. + /// public CmisStreamNotSupportedException(string message) : base(message) { } + + /// + /// Constructor. + /// public CmisStreamNotSupportedException(string message, Exception inner) : base(message, inner) { } + + /// + /// Constructor. + /// public CmisStreamNotSupportedException(string message, long? code) : base(message) { } + + /// + /// Constructor. + /// public CmisStreamNotSupportedException(string message, string errorContent) : base(message) { } + + /// + /// Constructor. + /// public CmisStreamNotSupportedException(string message, string errorContent, Exception inner) : base(message, errorContent, inner) { } + /// The CMIS exception name public const string ExceptionName = "streamNotSupported"; + /// public override string Name { get { return ExceptionName; } } } @@ -308,15 +607,40 @@ namespace PortCMIS.Exceptions /// public class CmisUpdateConflictException : CmisBaseException { + /// + /// Constructor. + /// public CmisUpdateConflictException() : base() { } + + /// + /// Constructor. + /// public CmisUpdateConflictException(string message) : base(message) { } + + /// + /// Constructor. + /// public CmisUpdateConflictException(string message, Exception inner) : base(message, inner) { } + + /// + /// Constructor. + /// public CmisUpdateConflictException(string message, long? code) : base(message) { } + + /// + /// Constructor. + /// public CmisUpdateConflictException(string message, string errorContent) : base(message) { } + + /// + /// Constructor. + /// public CmisUpdateConflictException(string message, string errorContent, Exception inner) : base(message, errorContent, inner) { } + /// The CMIS exception name public const string ExceptionName = "updateConflict"; + /// public override string Name { get { return ExceptionName; } } } @@ -325,15 +649,40 @@ namespace PortCMIS.Exceptions /// public class CmisVersioningException : CmisBaseException { + /// + /// Constructor. + /// public CmisVersioningException() : base() { } + + /// + /// Constructor. + /// public CmisVersioningException(string message) : base(message) { } + + /// + /// Constructor. + /// public CmisVersioningException(string message, Exception inner) : base(message, inner) { } + + /// + /// Constructor. + /// public CmisVersioningException(string message, long? code) : base(message) { } + + /// + /// Constructor. + /// public CmisVersioningException(string message, string errorContent) : base(message) { } + + /// + /// Constructor. + /// public CmisVersioningException(string message, string errorContent, Exception inner) : base(message, errorContent, inner) { } + /// The CMIS exception name public const string ExceptionName = "versioning"; + /// public override string Name { get { return ExceptionName; } } } @@ -342,11 +691,34 @@ namespace PortCMIS.Exceptions /// public class CmisUnauthorizedException : CmisRuntimeException { + /// + /// Constructor. + /// public CmisUnauthorizedException() : base() { } + + /// + /// Constructor. + /// public CmisUnauthorizedException(string message) : base(message) { } + + /// + /// Constructor. + /// public CmisUnauthorizedException(string message, Exception inner) : base(message, inner) { } + + /// + /// Constructor. + /// public CmisUnauthorizedException(string message, long? code) : base(message) { } + + /// + /// Constructor. + /// public CmisUnauthorizedException(string message, string errorContent) : base(message) { } + + /// + /// Constructor. + /// public CmisUnauthorizedException(string message, string errorContent, Exception inner) : base(message, errorContent, inner) { } } @@ -355,11 +727,34 @@ namespace PortCMIS.Exceptions /// public class CmisProxyAuthenticationException : CmisRuntimeException { + /// + /// Constructor. + /// public CmisProxyAuthenticationException() : base() { } + + /// + /// Constructor. + /// public CmisProxyAuthenticationException(string message) : base(message) { } + + /// + /// Constructor. + /// public CmisProxyAuthenticationException(string message, Exception inner) : base(message, inner) { } + + /// + /// Constructor. + /// public CmisProxyAuthenticationException(string message, long? code) : base(message) { } + + /// + /// Constructor. + /// public CmisProxyAuthenticationException(string message, string errorContent) : base(message) { } + + /// + /// Constructor. + /// public CmisProxyAuthenticationException(string message, string errorContent, Exception inner) : base(message, errorContent, inner) { } } @@ -368,11 +763,34 @@ namespace PortCMIS.Exceptions /// public class CmisServiceUnavailableException : CmisRuntimeException { + /// + /// Constructor. + /// public CmisServiceUnavailableException() : base() { } + + /// + /// Constructor. + /// public CmisServiceUnavailableException(string message) : base(message) { } + + /// + /// Constructor. + /// public CmisServiceUnavailableException(string message, Exception inner) : base(message, inner) { } + + /// + /// Constructor. + /// public CmisServiceUnavailableException(string message, long? code) : base(message) { } + + /// + /// Constructor. + /// public CmisServiceUnavailableException(string message, string errorContent) : base(message) { } + + /// + /// Constructor. + /// public CmisServiceUnavailableException(string message, string errorContent, Exception inner) : base(message, errorContent, inner) { } } @@ -381,8 +799,19 @@ namespace PortCMIS.Exceptions /// public class CmisInvalidServerData : InvalidOperationException { + /// + /// Constructor. + /// public CmisInvalidServerData() : base() { } + + /// + /// Constructor. + /// public CmisInvalidServerData(string message) : base(message) { } + + /// + /// Constructor. + /// public CmisInvalidServerData(string message, Exception inner) : base(message, inner) { } } } Modified: chemistry/portcmis/trunk/PortCMISWin/binding/WindowsHttp.cs URL: http://svn.apache.org/viewvc/chemistry/portcmis/trunk/PortCMISWin/binding/WindowsHttp.cs?rev=1741020&r1=1741019&r2=1741020&view=diff ============================================================================== --- chemistry/portcmis/trunk/PortCMISWin/binding/WindowsHttp.cs (original) +++ chemistry/portcmis/trunk/PortCMISWin/binding/WindowsHttp.cs Tue Apr 26 13:31:44 2016 @@ -41,26 +41,31 @@ namespace PortCMIS.Binding.Http private const string InvokerHttpClient = "org.apache.chemistry.portcmis.invoker.httpclient"; private object invokerLock = new object(); + /// public IResponse InvokeGET(UrlBuilder url, IBindingSession session) { return Invoke(url, HttpMethod.Get, null, session, null, null, null); } + /// public IResponse InvokeGET(UrlBuilder url, IBindingSession session, long? offset, long? length) { return Invoke(url, HttpMethod.Get, null, session, offset, length, null); } + /// public IResponse InvokePOST(UrlBuilder url, System.Net.Http.HttpContent content, IBindingSession session) { return Invoke(url, HttpMethod.Post, content, session, null, null, null); } + /// public IResponse InvokePUT(UrlBuilder url, IDictionary headers, System.Net.Http.HttpContent content, IBindingSession session) { return Invoke(url, HttpMethod.Put, content, session, null, null, headers); } + /// public IResponse InvokeDELETE(UrlBuilder url, IBindingSession session) { return Invoke(url, HttpMethod.Delete, null, session, null, null, null);