CmisSync.Lib.Cmis.CmisProfile.ConfigureOperationContext C# (CSharp) Méthode

ConfigureOperationContext() public méthode

Prepare the given OperationContext for use with this CMIS profile.
public ConfigureOperationContext ( IOperationContext operationContext ) : void
operationContext IOperationContext
Résultat void
        public void ConfigureOperationContext(IOperationContext operationContext)
        {
            /*
            Disabled because repository may generate error if the type is not Orderable for cmis:contentStreamFileName
            Documentum generates such an error: https://github.com/aegif/CmisSync/issues/724
            Alfresco also is not Orderable even though it does not generate an error:
            http://stackoverflow.com/questions/39290294/check-whether-cmiscontentstreamfilename-is-orderable
            
            if (IgnoreIfSameLowercaseNames)
            {
                // Depending on the CMIS profile, order by stream name or document name.
                if (UseCmisStreamName && contentStreamFileNameOrderable)
                {
                    operationContext.OrderBy = "cmis:contentStreamFileName";
                }
                else
                {
                    operationContext.OrderBy = "cmis:name";
                }
            }
            else
            {
                // Do not specify an order criteria, as we don't need it,
                // and it might have a performance impact on the CMIS server.
            }
            */
        }