> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mastermindcms.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PageProcessorServiceImpl

> Calling public service methods through the REST API: pageProcessorServiceImpl

<ResponseField name="beanId" type="string">
  The Spring bean identifier containing the service being called.

  pageProcessorServiceImpl
</ResponseField>

<ResponseField name="scope" type="string" default="PROTOTYPE">
  Bean scope. Use PROTOTYPE for service calls.
</ResponseField>

<ResponseField name="functionName" type="string">
  The public service method name shown in the signature below.
</ResponseField>

<ResponseField name="args" type="object[]">
  The method argument array. Each argument is passed as an object with index 0, 1, and so on; the value must match the Java parameter type.
</ResponseField>

## Headers

```http theme={null}
POST /api/v1/bean/request
Content-Type: application/json
Lang-Context: en
Site-Context: my-site
Authorization: Bearer <token>
```

Send `Lang-Context` and `Site-Context` with every request. For protected methods, send the JWT in the `Authorization` header as `Bearer <token>`.

**Access:** GUEST. **Bearer Token:** not required.

* GUEST — unauthenticated users; only whitelist services are available.
* USER — authentication is required; methods with USER checks are available.
* ADMIN — full access to public methods of all services.
* If a method checks a role internally, GUEST may receive null.

## Methods

<ResponseField name="processPage" type="Map<String,Object>">
  | Argument   | Type     | Description                 |
  | ---------- | -------- | --------------------------- |
  | `pageRoot` | `String` | Passed through `args[0].0`. |
  | `html`     | `String` | Passed through `args[1].1`. |

  ### processPage

  ```json theme={null}
  {
    "beanId": "pageProcessorServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "processPage",
    "args": [
      {
        "0": null,
        "1": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="processPageTitle" type="Map<String, Object>">
  | Argument         | Type     | Description                 |
  | ---------------- | -------- | --------------------------- |
  | `entityId`       | `String` | Passed through `args[0].0`. |
  | `repositoryName` | `String` | Passed through `args[1].1`. |

  ### processPageTitle

  ```json theme={null}
  {
    "beanId": "pageProcessorServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "processPageTitle",
    "args": [
      {
        "0": null,
        "1": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="processTranslation" type="Map<String, Object>">
  | Argument     | Type     | Description                 |
  | ------------ | -------- | --------------------------- |
  | `pageRoot`   | `String` | Passed through `args[0].0`. |
  | `articleId`  | `String` | Passed through `args[1].1`. |
  | `repository` | `String` | Passed through `args[2].2`. |

  ### processTranslation

  ```json theme={null}
  {
    "beanId": "pageProcessorServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "processTranslation",
    "args": [
      {
        "0": null,
        "1": null,
        "2": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="processMetaData" type="Map<String, Object>">
  | Argument         | Type     | Description                 |
  | ---------------- | -------- | --------------------------- |
  | `pageUrl`        | `String` | Passed through `args[0].0`. |
  | `containerId`    | `String` | Passed through `args[1].1`. |
  | `repositoryName` | `String` | Passed through `args[2].2`. |

  ### processMetaData

  ```json theme={null}
  {
    "beanId": "pageProcessorServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "processMetaData",
    "args": [
      {
        "0": null,
        "1": null,
        "2": null
      }
    ]
  }
  ```
</ResponseField>

<ResponseField name="processThemeCss" type="String">
  | Argument  | Type     | Description                 |
  | --------- | -------- | --------------------------- |
  | `pageUrl` | `String` | Passed through `args[0].0`. |

  ### processThemeCss

  ```json theme={null}
  {
    "beanId": "pageProcessorServiceImpl",
    "scope": "PROTOTYPE",
    "functionName": "processThemeCss",
    "args": [
      {
        "0": null
      }
    ]
  }
  ```
</ResponseField>
