Beispiel #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Dialog examples!");

            string serverName    = @"";
            string serverAddress = @"https://" + serverName + @"/DocuWare/Platform/";
            string userName      = "";
            string userPassword  = "";


            using (Helpers.Authenticator authenticator = new Helpers.Authenticator(serverAddress, userName, userPassword))
            {
                Organization organization = authenticator.Organization;

                if (organization == null)
                {
                    Console.WriteLine("No organization found");
                }
                else
                {
                    ListAllDialogs(organization);
                    ListAllStoreDialogs(organization);
                    ListAllSearchDialogs(organization);
                    ListAllListDialogs(organization);
                    ListAllTaskDialogs(organization);
                    Query(organization);
                    UploadDocument(organization);
                }
            }
            Console.Read();
        }
        static async Task Main(string[] args)
        {
            Console.WriteLine("Document Examples!");

            string serverName    = @"";
            string serverAddress = @"https://" + serverName + @"/DocuWare/Platform/";
            string userName      = "";
            string userPassword  = "";

            using (Helpers.Authenticator authenticator = new Helpers.Authenticator(serverAddress, userName, userPassword))
            {
                Organization organization = authenticator.Organization;

                if (organization == null)
                {
                    Console.WriteLine("No organization found");
                }
                else
                {
                    ListAllDocuments(organization);
                    MergeDocuments(organization);
                    DivideDocuments(organization);
                    UpdateIndexFields(organization);
                    UpdateAllIndexFields(organization);
                    UpdateIndexFieldsWithTableField(organization);
                    Download(organization);
                    DownloadSection(organization);
                    UploadSection(organization);
                    EditSection(organization);
                    await CheckOutCheckIn(authenticator.ServiceConnection);

                    TransferFromDocumentTrayToFileCabinet(organization);
                    TransferFromFileCabinetToFileCabinetWithFields(organization);
                    await LockDocument(organization);

                    //Import and export dwx archive
                    ExportArchivedDocument(organization);
                    ExportArchivedDocuments(organization);
                    ImportArchivedDocument(organization);
                    //ApplicationProperties
                    CreateDocumentApplicationProperties(organization);
                    CreateDocumentApplicationPropertiesWithNewDocument(organization);
                    CreateSectionApplicationProperties(organization);
                    UpdateDocumentApplicationProperties(organization);
                    UpdateSectionApplicationProperties(organization);
                    DeleteDocumentApplicationProperties(organization);
                    DeleteSectionApplicationProperties(organization);
                    //Stamps and annotations
                    SetStampOnPageWithSpecificPosition(organization);
                    SetStampOnPageWithBestPosition(organization);
                    SetStampOnDocumentWithSpecificPosition(organization);
                    SetAnnotationOnPage(organization);
                    SetAnnotationOnDocument(organization);
                    //Replace
                    ReplaceAllSectionsInDocument(organization);
                    ReplaceSpecificSectionInDocument(organization);
                }
            }
            Console.Read();
        }
        static void Main(string[] args)
        {
            Console.WriteLine("FileCabinet Examples!");

            string serverName    = @"";
            string serverAddress = @"https://" + serverName + @"/DocuWare/Platform/";
            string userName      = "";
            string userPassword  = "";

            using (Helpers.Authenticator authenticator = new Helpers.Authenticator(serverAddress, userName, userPassword))
            {
                Organization organization = authenticator.Organization;

                if (organization == null)
                {
                    Console.WriteLine("No organization found");
                }
                else
                {
                    ListAll(organization);
                    ListAllDocumentTrays(organization);
                    ListAllFileCabinets(organization);
                    ListDefaultDocumentTray(organization);
                    ListByID(organization, "00000000-0000-0000-0000-000000000000");
                    ListByName(organization, "Invoices");
                    UploadDocument(organization);
                    UploadDocumentWithTableField(organization);
                }
            }
            Console.Read();
        }
Beispiel #4
0
        static void Main(string[] args)
        {
            Console.WriteLine("Login examples!");

            string serverName    = @"";
            string serverAddress = @"https://" + serverName + @"/DocuWare/Platform/";
            string userName      = "";
            string userPassword  = "";

            using (Helpers.Authenticator authenticator = new Helpers.Authenticator(serverAddress, userName, userPassword))
            {
                Organization organization = authenticator.Organization;

                if (organization == null)
                {
                    Console.WriteLine("No organization found");
                }
                else
                {
                    Console.WriteLine($"Organization {organization.Name} found");
                }
            }

            Console.Read();
        }
Beispiel #5
0
        static void Main(string[] args)
        {
            Console.WriteLine("Workflow Examples!");

            string serverName    = @"";
            string serverAddress = @"https://" + serverName + @"/DocuWare/Platform/";
            string userName      = "";
            string userPassword  = "";

            using (Helpers.Authenticator authenticator = new Helpers.Authenticator(serverAddress, userName, userPassword))
            {
                Organization organization = authenticator.Organization;

                if (organization == null)
                {
                    Console.WriteLine("No organization found");
                }
                else
                {
                    ListAllWorkflows(organization);
                    ListAllTasksByWorkflowId(organization, "00000000-0000-0000-0000-000000000000");
                    ConfirmWorkflowTaskWithPrefilledValue(organization);
                    ConfirmWorkflowTaskValue(organization);
                }
            }
            Console.Read();
        }
Beispiel #6
0
        static void Main(string[] args)
        {
            Console.WriteLine("Users Examples!");

            string serverName    = @"";
            string serverAddress = @"https://" + serverName + @"/DocuWare/Platform/";
            string userName      = "";
            string userPassword  = "";

            using (Helpers.Authenticator authenticator = new Helpers.Authenticator(serverAddress, userName, userPassword))
            {
                Organization organization = authenticator.Organization;

                if (organization == null)
                {
                    Console.WriteLine("No organization found");
                }
                else
                {
                    CreateUser(organization);
                    AddRoleToUser(organization);
                    RemoveRoleFromUser(organization);
                    AddGroupToUser(organization);
                    RemoveGroupFromUser(organization);
                }
            }

            Console.Read();
        }
Beispiel #7
0
        static void Main(string[] args)
        {
            Console.WriteLine("Token examples!");

            using (Helpers.Authenticator authenticator = new Helpers.Authenticator(serverAddress, userName, userPassword))
            {
                Organization organization = authenticator.Organization;
                if (organization == null)
                {
                    Console.WriteLine("No organization found");
                }
                else
                {
                    string token = CreateSingleToken(organization);

                    LoginWithTokenAndListAllFileCabinets(token);
                }
            }
            Console.Read();
        }