Hierarchy

  • CommonHttpService
    • ClassificationLevelService

Constructors

  • Internal

    Create a new instance of the service.

    Parameters

    • getClientInstance: (() => CommonHttpClient)
        • (): CommonHttpClient
        • Returns CommonHttpClient

    Returns ClassificationLevelService

Methods

  • Returns the classification level for a specific blog post.

    Permissions required: 'Permission to access the Confluence site ('Can use' global permission) and permission to view the blog post. 'Permission to edit the blog post is required if trying to view classification level for a draft.

    Parameters

    • params: {
          id: number;
          status?: "current" | "draft" | "archived";
      }
      • id: number

        The ID of the blog post for which classification level should be returned.

      • Optionalstatus?: "current" | "draft" | "archived"

        Status of blog post from which classification level will fetched.

    Returns Promise<ClassificationLevel>

    Returned if the requested classification level for a blog post is returned.

    GET /blogposts/{id}/classification-level @scopes-current read:page:confluence, write:page:confluence

  • Updates the classification level for a specific blog post.

    Permissions required: 'Permission to access the Confluence site ('Can use' global permission) and permission to edit the blog post.

    Parameters

    • params: {
          id: number;
          requestBody: {
              id: string;
              status: "current" | "draft";
          } & {
              [key: string]: unknown;
          };
      }
      • id: number

        The ID of the blog post for which classification level should be updated.

      • requestBody: {
            id: string;
            status: "current" | "draft";
        } & {
            [key: string]: unknown;
        }

    Returns Promise<void>

    PUT /blogposts/{id}/classification-level @scopes-current write:page:confluence

  • Updates the classification level for a specific database.

    Permissions required: 'Permission to access the Confluence site ('Can use' global permission) and permission to edit the database.

    Parameters

    • params: {
          id: number;
          requestBody: {
              id: string;
              status: "current";
          } & {
              [key: string]: unknown;
          };
      }
      • id: number

        The ID of the database for which classification level should be updated.

      • requestBody: {
            id: string;
            status: "current";
        } & {
            [key: string]: unknown;
        }

    Returns Promise<void>

    PUT /databases/{id}/classification-level @scopes-current write:database:confluence

  • Updates the classification level for a specific page.

    Permissions required: 'Permission to access the Confluence site ('Can use' global permission) and permission to edit the page.

    Parameters

    • params: {
          id: number;
          requestBody: {
              id: string;
              status: "current" | "draft";
          } & {
              [key: string]: unknown;
          };
      }
      • id: number

        The ID of the page for which classification level should be updated.

      • requestBody: {
            id: string;
            status: "current" | "draft";
        } & {
            [key: string]: unknown;
        }

    Returns Promise<void>

  • Updates the classification level for a specific whiteboard.

    Permissions required: 'Permission to access the Confluence site ('Can use' global permission) and permission to edit the whiteboard.

    Parameters

    • params: {
          id: number;
          requestBody: {
              id: string;
              status: "current";
          } & {
              [key: string]: unknown;
          };
      }
      • id: number

        The ID of the whiteboard for which classification level should be updated.

      • requestBody: {
            id: string;
            status: "current";
        } & {
            [key: string]: unknown;
        }

    Returns Promise<void>

    PUT /whiteboards/{id}/classification-level @scopes-current write:whiteboard:confluence

  • Method to initialize the class. Normally used to set up validation rules.

    Returns void