/// <summary>
        /// This operation is used to determine the storage location for the submission based on the rules in the repository and a suggested save location chosen by a user.
        /// </summary>
        /// <param name="properties">The properties of the file.</param>
        /// <param name="contentTypeName">The file type.</param>
        /// <param name="originalSaveLocation">The suggested save location chosen by a user.</param>
        /// <returns>An implementation specific URL to the storage location and some results for the submission or SoapException thrown.</returns>
        public DocumentRoutingResult GetFinalRoutingDestinationFolderUrl(RecordsRepositoryProperty[] properties, string contentTypeName, string originalSaveLocation)
        {
            DocumentRoutingResult documentRoutingResult = this.officialfileService.GetFinalRoutingDestinationFolderUrl(properties, contentTypeName, originalSaveLocation);

            // As response is returned successfully, the transport related requirements can be captured.
            this.VerifyTransportRelatedRequirments();

            this.VerifyGetFinalRoutingDestinationFolderUrl();

            return documentRoutingResult;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// This method is used to construct  all the common properties _dlc_hold_url, _dlc_hold_comments, _dlc_hold_id, _dlc_hold_searchqquery and _dlc_hold_searchcontexturl.
        /// </summary>
        /// <returns>Return the record repository properties that contains common ones</returns>
        protected RecordsRepositoryProperty[] ConstructAllCommonProperties()
        {
            List <RecordsRepositoryProperty> allProperties = new List <RecordsRepositoryProperty>();

            var property = new RecordsRepositoryProperty();

            property.Name        = "_dlc_hold_url";
            property.DisplayName = "url";
            property.Other       = string.Empty;
            property.Type        = "OfficialFileCustomType";
            property.Value       = Common.Common.GetConfigurationPropertyValue("HoldUrl", this.Site);
            allProperties.Add(property);

            property             = new RecordsRepositoryProperty();
            property.Name        = "_dlc_hold_id";
            property.DisplayName = "id";
            property.Other       = string.Empty;
            property.Type        = "OfficialFileCustomType";
            property.Value       = Common.Common.GetConfigurationPropertyValue("HoldId", this.Site);
            allProperties.Add(property);

            // The comments does not affect the testing result, so just hard code.
            property             = new RecordsRepositoryProperty();
            property.Name        = "_dlc_hold_comments";
            property.DisplayName = "comments";
            property.Other       = string.Empty;
            property.Type        = "OfficialFileCustomType";
            property.Value       = "Hold testing";
            allProperties.Add(property);

            property             = new RecordsRepositoryProperty();
            property.Name        = "_dlc_hold_searchqquery";
            property.DisplayName = "searchqquery";
            property.Other       = string.Empty;
            property.Type        = "OfficialFileCustomType";
            property.Value       = Common.Common.GetConfigurationPropertyValue("HoldSearchQuery", this.Site);
            allProperties.Add(property);

            property             = new RecordsRepositoryProperty();
            property.Name        = "_dlc_hold_searchcontexturl";
            property.DisplayName = "searchcontexturl";
            property.Other       = string.Empty;
            property.Type        = "OfficialFileCustomType";
            property.Value       = Common.Common.GetConfigurationPropertyValue("HoldSearchContextUrl", this.Site);
            allProperties.Add(property);

            return(allProperties.ToArray());
        }
 /// <remarks/>
 public void SubmitFileAsync(byte[] fileToSubmit, RecordsRepositoryProperty[] properties, string recordRouting, string sourceUrl, string userName, object userState) {
     if ((this.SubmitFileOperationCompleted == null)) {
         this.SubmitFileOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSubmitFileOperationCompleted);
     }
     this.InvokeAsync("SubmitFile", new object[] {
                 fileToSubmit,
                 properties,
                 recordRouting,
                 sourceUrl,
                 userName}, this.SubmitFileOperationCompleted, userState);
 }
Ejemplo n.º 4
0
        /// <summary>
        /// This method is used to construct  all the common properties _dlc_hold_url, _dlc_hold_comments, _dlc_hold_id, _dlc_hold_searchqquery and _dlc_hold_searchcontexturl.
        /// </summary>
        /// <returns>Return the record repository properties that contains common ones</returns>
        protected RecordsRepositoryProperty[] ConstructAllCommonProperties()
        {
            List<RecordsRepositoryProperty> allProperties = new List<RecordsRepositoryProperty>();

            var property = new RecordsRepositoryProperty();
            property.Name = "_dlc_hold_url";
            property.DisplayName = "url";
            property.Other = string.Empty;
            property.Type = "OfficialFileCustomType";
            property.Value = Common.Common.GetConfigurationPropertyValue("HoldUrl", this.Site);
            allProperties.Add(property);

            property = new RecordsRepositoryProperty();
            property.Name = "_dlc_hold_id";
            property.DisplayName = "id";
            property.Other = string.Empty;
            property.Type = "OfficialFileCustomType";
            property.Value = Common.Common.GetConfigurationPropertyValue("HoldId", this.Site);
            allProperties.Add(property);

            // The comments does not affect the testing result, so just hard code.
            property = new RecordsRepositoryProperty();
            property.Name = "_dlc_hold_comments";
            property.DisplayName = "comments";
            property.Other = string.Empty;
            property.Type = "OfficialFileCustomType";
            property.Value = "Hold testing";
            allProperties.Add(property);

            property = new RecordsRepositoryProperty();
            property.Name = "_dlc_hold_searchqquery";
            property.DisplayName = "searchqquery";
            property.Other = string.Empty;
            property.Type = "OfficialFileCustomType";
            property.Value = Common.Common.GetConfigurationPropertyValue("HoldSearchQuery", this.Site);
            allProperties.Add(property);

            property = new RecordsRepositoryProperty();
            property.Name = "_dlc_hold_searchcontexturl";
            property.DisplayName = "searchcontexturl";
            property.Other = string.Empty;
            property.Type = "OfficialFileCustomType";
            property.Value = Common.Common.GetConfigurationPropertyValue("HoldSearchContextUrl", this.Site);
            allProperties.Add(property);

            return allProperties.ToArray();
        }
 /// <remarks/>
 public System.IAsyncResult BeginSubmitFile(byte[] fileToSubmit, RecordsRepositoryProperty[] properties, string recordRouting, string sourceUrl, string userName, System.AsyncCallback callback, object asyncState) {
     return this.BeginInvoke("SubmitFile", new object[] {
                 fileToSubmit,
                 properties,
                 recordRouting,
                 sourceUrl,
                 userName}, callback, asyncState);
 }
 /// <remarks/>
 public void SubmitFileAsync(byte[] fileToSubmit, RecordsRepositoryProperty[] properties, string recordRouting, string sourceUrl, string userName) {
     this.SubmitFileAsync(fileToSubmit, properties, recordRouting, sourceUrl, userName, null);
 }
 public string SubmitFile([System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary")] byte[] fileToSubmit, RecordsRepositoryProperty[] properties, string recordRouting, string sourceUrl, string userName) {
     object[] results = this.Invoke("SubmitFile", new object[] {
                 fileToSubmit,
                 properties,
                 recordRouting,
                 sourceUrl,
                 userName});
     return ((string)(results[0]));
 }
 /// <remarks/>
 public void GetFinalRoutingDestinationFolderUrlAsync(RecordsRepositoryProperty[] properties, string contentTypeName, string originalSaveLocation, object userState) {
     if ((this.GetFinalRoutingDestinationFolderUrlOperationCompleted == null)) {
         this.GetFinalRoutingDestinationFolderUrlOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetFinalRoutingDestinationFolderUrlOperationCompleted);
     }
     this.InvokeAsync("GetFinalRoutingDestinationFolderUrl", new object[] {
                 properties,
                 contentTypeName,
                 originalSaveLocation}, this.GetFinalRoutingDestinationFolderUrlOperationCompleted, userState);
 }
 /// <remarks/>
 public void GetFinalRoutingDestinationFolderUrlAsync(RecordsRepositoryProperty[] properties, string contentTypeName, string originalSaveLocation) {
     this.GetFinalRoutingDestinationFolderUrlAsync(properties, contentTypeName, originalSaveLocation, null);
 }
 /// <remarks/>
 public System.IAsyncResult BeginGetFinalRoutingDestinationFolderUrl(RecordsRepositoryProperty[] properties, string contentTypeName, string originalSaveLocation, System.AsyncCallback callback, object asyncState) {
     return this.BeginInvoke("GetFinalRoutingDestinationFolderUrl", new object[] {
                 properties,
                 contentTypeName,
                 originalSaveLocation}, callback, asyncState);
 }
 public DocumentRoutingResult GetFinalRoutingDestinationFolderUrl(RecordsRepositoryProperty[] properties, string contentTypeName, string originalSaveLocation) {
     object[] results = this.Invoke("GetFinalRoutingDestinationFolderUrl", new object[] {
                 properties,
                 contentTypeName,
                 originalSaveLocation});
     return ((DocumentRoutingResult)(results[0]));
 }