diff --git a/.github/workflows/gitleaks.yaml b/.github/workflows/gitleaks.yaml deleted file mode 100644 index d9a8e36..0000000 --- a/.github/workflows/gitleaks.yaml +++ /dev/null @@ -1,38 +0,0 @@ -name: Secret Value found! -on: - push: - public: -jobs: - scan: - name: gitleaks - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Install the gitleaks - run: wget https://github.com/zricethezav/gitleaks/releases/download/v8.15.2/gitleaks_8.15.2_linux_x64.tar.gz - shell: pwsh - - name: Extract the tar file - run: tar xzvf gitleaks_8.15.2_linux_x64.tar.gz - - name: Generate the report - id: gitleaks - run: $GITHUB_WORKSPACE/gitleaks detect -s $GITHUB_WORKSPACE -f json -r $GITHUB_WORKSPACE/leaksreport.json - shell: bash - continue-on-error: true - - name: Setup NuGet.exe - if: steps.gitleaks.outcome != 'success' - uses: nuget/setup-nuget@v1 - with: - nuget-version: latest - - name: Install the dotnet - if: steps.gitleaks.outcome != 'success' - uses: actions/setup-dotnet@v3 - with: - dotnet-version: '3.1.x' - - name: Install the report tool packages - if: steps.gitleaks.outcome != 'success' - run: | - nuget install "Syncfusion.Email" -source "https://nexus.syncfusion.com/repository/nuget-hosted/" - dir $GITHUB_WORKSPACE/Syncfusion.Email.1.0.0/lib/netcoreapp3.1 - dotnet $GITHUB_WORKSPACE/Syncfusion.Email.1.0.0/lib/netcoreapp3.1/Email.dll "citeam@syncfusion.com" "$GITHUB_REF_NAME" ${{ secrets.NETWORKCREDENTIALS }} ${{ secrets.NETWORKKEY }} "$GITHUB_WORKSPACE" - exit 1 \ No newline at end of file diff --git a/Java-WebService/.github/workflows/gitleaks.yaml b/Java-WebService/.github/workflows/gitleaks.yaml new file mode 100644 index 0000000..9ae62e1 --- /dev/null +++ b/Java-WebService/.github/workflows/gitleaks.yaml @@ -0,0 +1,44 @@ +name: Secret Value found!! +on: + push: + public: +jobs: + scan: + name: gitleaks + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4.2.2 + - name: Install the gitleaks + run: wget https://github.com/zricethezav/gitleaks/releases/download/v8.15.2/gitleaks_8.15.2_linux_x64.tar.gz + shell: pwsh + - name: Extract the tar file + run: tar xzvf gitleaks_8.15.2_linux_x64.tar.gz + - name: Generate the report + id: gitleaks + run: $GITHUB_WORKSPACE/gitleaks detect -s $GITHUB_WORKSPACE -f json -r $GITHUB_WORKSPACE/leaksreport.json + shell: bash + continue-on-error: true + - name: Setup NuGet.exe + if: steps.gitleaks.outcome != 'success' + uses: nuget/setup-nuget@v2 + with: + nuget-version: latest + - name: Install Mono + if: steps.gitleaks.outcome != 'success' + run: | + sudo apt update + sudo apt install -y mono-complete + - name: Install the dotnet SDK to a custom directory + if: steps.gitleaks.outcome != 'success' + run: | + mkdir -p $GITHUB_WORKSPACE/dotnet + curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --install-dir $GITHUB_WORKSPACE/dotnet --channel 6.0 + - name: Install the report tool packages + if: steps.gitleaks.outcome != 'success' + run: | + export PATH=$GITHUB_WORKSPACE/dotnet:$PATH + nuget install "Syncfusion.Email" -source ${{ secrets.NexusFeedLink }} -ExcludeVersion + dir $GITHUB_WORKSPACE/Syncfusion.Email/lib/net6.0 + dotnet $GITHUB_WORKSPACE/Syncfusion.Email/lib/net6.0/GitleaksReportMail.dll ${{ secrets.CITEAMCREDENTIALS }} "$GITHUB_REF_NAME" ${{ secrets.NETWORKCREDENTIALS }} ${{ secrets.NETWORKKEY }} "$GITHUB_WORKSPACE" ${{ secrets.ORGANIZATIONNAME }} + exit 1 \ No newline at end of file diff --git a/.gitignore b/Java-WebService/.gitignore similarity index 100% rename from .gitignore rename to Java-WebService/.gitignore diff --git a/mvnw b/Java-WebService/mvnw similarity index 100% rename from mvnw rename to Java-WebService/mvnw diff --git a/mvnw.cmd b/Java-WebService/mvnw.cmd similarity index 100% rename from mvnw.cmd rename to Java-WebService/mvnw.cmd diff --git a/pom.xml b/Java-WebService/pom.xml similarity index 100% rename from pom.xml rename to Java-WebService/pom.xml diff --git a/src/main/java/com/syncfusion/tomcat/CustomParameter.java b/Java-WebService/src/main/java/com/syncfusion/tomcat/CustomParameter.java similarity index 100% rename from src/main/java/com/syncfusion/tomcat/CustomParameter.java rename to Java-WebService/src/main/java/com/syncfusion/tomcat/CustomParameter.java diff --git a/src/main/java/com/syncfusion/tomcat/CustomRestrictParameter.java b/Java-WebService/src/main/java/com/syncfusion/tomcat/CustomRestrictParameter.java similarity index 100% rename from src/main/java/com/syncfusion/tomcat/CustomRestrictParameter.java rename to Java-WebService/src/main/java/com/syncfusion/tomcat/CustomRestrictParameter.java diff --git a/src/main/java/com/syncfusion/tomcat/TomcatApplication.java b/Java-WebService/src/main/java/com/syncfusion/tomcat/TomcatApplication.java similarity index 100% rename from src/main/java/com/syncfusion/tomcat/TomcatApplication.java rename to Java-WebService/src/main/java/com/syncfusion/tomcat/TomcatApplication.java diff --git a/src/main/resources/application.properties b/Java-WebService/src/main/resources/application.properties similarity index 100% rename from src/main/resources/application.properties rename to Java-WebService/src/main/resources/application.properties diff --git a/src/test/java/com/syncfusion/tomcat/TomcatApplicationTests.java b/Java-WebService/src/test/java/com/syncfusion/tomcat/TomcatApplicationTests.java similarity index 100% rename from src/test/java/com/syncfusion/tomcat/TomcatApplicationTests.java rename to Java-WebService/src/test/java/com/syncfusion/tomcat/TomcatApplicationTests.java diff --git a/ReadMe.md b/ReadMe.md index 968fd4c..352ce0c 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -1,3 +1,7 @@ +# EJ2\-DocumentEditor\-Java\-WebService + +This repository provides a working example of how to host a Java\-based web service backend for the Syncfusion® Document Editor (a.k.a. Word Processor) component. + # How to host the DocumentEditor service. ## Maven Project @@ -33,4 +37,14 @@ Once the file manager is opened please navigate to Upload the generated war file "tomcat-0.0.1-SNAPSHOT.war" the application will be hosted under >{site-name}/tomcat-0.0.1-SNAPSHOT +> +# Support and feedback + +For any other queries, reach our [Syncfusion® support team](https://support.syncfusion.com/?utm_source=github&utm_medium=listing&utm_campaign=github-github-document-editor-examples) or post the queries through the [community forums](https://www.syncfusion.com/forums?utm_source=github&utm_medium=listing&utm_campaign=github-github-docio-examples).  + +Request new feature through [Syncfusion® feedback portal](https://www.syncfusion.com/feedback?utm_source=github&utm_medium=listing&utm_campaign=github-github-documenteditor-examples).  + +# License + +This is a commercial product and requires a paid license for possession or use. Syncfusion's licensed software, including this component, is subject to the terms and conditions of [Syncfusion's EULA](https://www.syncfusion.com/license/studio/22.2.5/syncfusion_essential_studio_eula.pdf?utm_source=github&utm_medium=listing&utm_campaign=github-github-documenteditor-examples). You can purchase a licnense [here](https://www.syncfusion.com/sales/products?utm_source=github&utm_medium=listing&utm_campaign=github-github-documenteditor-examples) or start a free 30\-day trial [here](https://www.syncfusion.com/account/manage-trials/start-trials?utm_source=github&utm_medium=listing&utm_campaign=github-github-documenteditor-examples).