public class UserAnonymizationResource extends Object
Modifier and Type | Field and Description |
---|---|
static String |
EXPAND_AFFECTED_ENTITIES |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
getProgress(long taskId)
Returns information about a user anonymization operation progress.
|
javax.ws.rs.core.Response |
scheduleUserAnonymization(UserAnonymizationRequestBean userAnonymizationRequestBean)
Schedules a user anonymization process.
|
javax.ws.rs.core.Response |
scheduleUserAnonymizationRerun(UserAnonymizationRerunRequestBean userAnonymizationRequestBean)
Schedules a user anonymization process.
|
javax.ws.rs.core.Response |
unlockAnonymization()
Removes stale user anonymization task, for scenarios when the node that was executing it is no longer alive.
|
javax.ws.rs.core.Response |
validateUserAnonymization(String userKey,
String expand)
Validates user anonymization process.
|
javax.ws.rs.core.Response |
validateUserAnonymizationRerun(String userKey,
String oldUserKey,
String oldUserName,
String expand)
Validates user anonymization re-run process.
|
public static final String EXPAND_AFFECTED_ENTITIES
public javax.ws.rs.core.Response validateUserAnonymization(String userKey, String expand)
userKey
- the key of the user to validate anonymization for.expand
- Parameter used to include parts of the response. This can be used to include: affectedEntities. Affected entities will only be returned if expand=affectedEntities
.public javax.ws.rs.core.Response validateUserAnonymizationRerun(String userKey, String oldUserKey, String oldUserName, String expand)
userKey
- the key of the user to validate anonymization foroldUserKey
- user key before anonymization, only needed when current value is anonymized.
If there is no old key, e.g. because the user was already created
using the new key generation strategy, provide a value equal to the current key.oldUserName
- user name before anonymization, only needed when the current value is anonymized.
If there is no old name, provide a value equal to the current name.expand
- Parameter used to include parts of the response. This can be used to include: affectedEntities. Affected entities will only be returned if expand=affectedEntities
.public javax.ws.rs.core.Response scheduleUserAnonymization(UserAnonymizationRequestBean userAnonymizationRequestBean) throws URISyntaxException
userAnonymizationRequestBean
- JSON containing parameters to schedule the anonymization process withURISyntaxException
public javax.ws.rs.core.Response scheduleUserAnonymizationRerun(UserAnonymizationRerunRequestBean userAnonymizationRequestBean) throws URISyntaxException
userAnonymizationRequestBean
- JSON containing parameters to schedule the anonymization process withURISyntaxException
public javax.ws.rs.core.Response getProgress(long taskId) throws URISyntaxException
taskId
- the id of a user anonymization task you wish to obtain details on. If omitted, then defaults to
the active anonymization task, or the last task that was run if no anonymization is taking place.URISyntaxException
public javax.ws.rs.core.Response unlockAnonymization()
Use it only after making sure that the parent node of the task is actually down, and not just having connectivity issues.
Copyright © 2002-2024 Atlassian. All Rights Reserved.