> ## 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.

# ProfileManagementServiceImpl

> Aufruf öffentlicher Servicemethoden über die REST API: profileManagementServiceImpl

<ResponseField name="beanId" type="string">
  Die Spring-Bean-ID des aufzurufenden Services.

  profileManagementServiceImpl
</ResponseField>

<ResponseField name="scope" type="string" default="PROTOTYPE">
  Bean-Scope. Für Serviceaufrufe wird PROTOTYPE verwendet.
</ResponseField>

<ResponseField name="functionName" type="string">
  Der öffentliche Methodenname des Services, der in der Signatur angegeben ist.
</ResponseField>

<ResponseField name="args" type="object[]">
  Das Argument-Array der Methode. Jedes Argument wird mit dem Index 0, 1 usw. übergeben; der Wert muss dem Java-Parametertyp entsprechen.
</ResponseField>

## Headers

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

Senden Sie `Lang-Context` und `Site-Context` mit jeder Anfrage. Für geschützte Methoden senden Sie das JWT im Header `Authorization` im Format `Bearer <token>`.

**Zugriff:** ADMIN. **Bearer Token:** erforderlich.

* GUEST — nicht angemeldete Benutzer; nur Whitelist-Services sind verfügbar.
* USER — Authentifizierung erforderlich; Methoden mit USER-Prüfung sind verfügbar.
* ADMIN — vollständiger Zugriff auf öffentliche Methoden aller Services.
* Wenn eine Methode intern eine Rolle prüft, kann GUEST null erhalten.

## Methoden

<ResponseField name="getRepository" type="ProfileRepository">
  | Argument | Typ | Beschreibung                              |
  | -------- | --- | ----------------------------------------- |
  | —        | —   | Diese Methode akzeptiert keine Argumente. |

  ### getRepository

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

<ResponseField name="getPaginationFilter" type="Deque<Map<String, Object>>">
  | Argument      | Typ      | Beschreibung                |
  | ------------- | -------- | --------------------------- |
  | `requestJson` | `String` | Übergeben über `args[0].0`. |

  ### getPaginationFilter

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

<ResponseField name="searchProfiles" type="LinkedHashSet<Profile>">
  | Argument      | Typ      | Beschreibung                |
  | ------------- | -------- | --------------------------- |
  | `requestJson` | `String` | Übergeben über `args[0].0`. |

  ### searchProfiles

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

<ResponseField name="searchProfilesPaged" type="Page<Profile>">
  | Argument      | Typ      | Beschreibung                |
  | ------------- | -------- | --------------------------- |
  | `requestJson` | `String` | Übergeben über `args[0].0`. |

  ### searchProfilesPaged

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

<ResponseField name="searchProfiles" type="List<Profile>">
  | Argument | Typ      | Beschreibung                |
  | -------- | -------- | --------------------------- |
  | `query`  | `String` | Übergeben über `args[0].0`. |
  | `from`   | `int`    | Übergeben über `args[1].1`. |
  | `to`     | `int`    | Übergeben über `args[2].2`. |

  ### searchProfiles

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

<ResponseField name="createProfile" type="Optional<Profile>">
  | Argument       | Typ                             | Beschreibung                |
  | -------------- | ------------------------------- | --------------------------- |
  | `profileAsMap` | `LinkedHashMap<String, Object>` | Übergeben über `args[0].0`. |

  ### createProfile

  Beispiel für das JSON-Anfrageobjekt:

  ```json theme={null}
  {
      "id":  null,
      "user":  null,
      "firstName":  null,
      "lastName":  null,
      "website":  null,
      "phone":  null,
      "mobilePhone":  null,
      "birthday":  null,
      "emailAddress":  null,
      "gender":  null,
      "salutation":  null,
      "embeddedParent":  null,
      "emailNotifications":  false,
      "imageURLs":  null
  }
  ```

  Request:

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

<ResponseField name="saveProfile" type="Optional<Profile>">
  | Argument       | Typ                             | Beschreibung                |
  | -------------- | ------------------------------- | --------------------------- |
  | `profileAsMap` | `LinkedHashMap<String, Object>` | Übergeben über `args[0].0`. |

  ### saveProfile

  Beispiel für das JSON-Anfrageobjekt:

  ```json theme={null}
  {
      "id":  null,
      "user":  null,
      "firstName":  null,
      "lastName":  null,
      "website":  null,
      "phone":  null,
      "mobilePhone":  null,
      "birthday":  null,
      "emailAddress":  null,
      "gender":  null,
      "salutation":  null,
      "embeddedParent":  null,
      "emailNotifications":  false,
      "imageURLs":  null
  }
  ```

  Request:

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

<ResponseField name="removeProfileAndClean" type="void">
  | Argument    | Typ      | Beschreibung                |
  | ----------- | -------- | --------------------------- |
  | `profileId` | `String` | Übergeben über `args[0].0`. |

  ### removeProfileAndClean

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

<ResponseField name="removeProfilesByIds" type="void">
  | Argument      | Typ                 | Beschreibung                |
  | ------------- | ------------------- | --------------------------- |
  | `profilesIds` | `ArrayList<String>` | Übergeben über `args[0].0`. |

  ### removeProfilesByIds

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

<ResponseField name="getGenders" type="List<Map<String, Object>>">
  | Argument | Typ | Beschreibung                              |
  | -------- | --- | ----------------------------------------- |
  | —        | —   | Diese Methode akzeptiert keine Argumente. |

  ### getGenders

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

<ResponseField name="deactivateProfile" type="void">
  | Argument    | Typ      | Beschreibung                |
  | ----------- | -------- | --------------------------- |
  | `profileId` | `String` | Übergeben über `args[0].0`. |

  ### deactivateProfile

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

<ResponseField name="isProfileBelongsToLoggedUser" type="boolean">
  | Argument    | Typ      | Beschreibung                |
  | ----------- | -------- | --------------------------- |
  | `profileId` | `String` | Übergeben über `args[0].0`. |

  ### isProfileBelongsToLoggedUser

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