Class AnonymizeUserTaskContext
java.lang.Object
com.atlassian.jira.user.anonymize.AnonymizeUserTaskContext
- All Implemented Interfaces:
TaskContext
,Serializable
Context for user anonymization operations. Only one such operation is allowed to run at any given time.
- Since:
- v8.4
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AnonymizeUserTaskContext
Used to retrieve a running anonymization task - never to schedule a new one. -
Constructor Summary
ConstructorsConstructorDescriptionAnonymizeUserTaskContext
(String userKey, boolean rerun) AnonymizeUserTaskContext
(String userKey, String userName, boolean rerun) AnonymizeUserTaskContext
(String userKey, String userName, String fullName, boolean rerun) -
Method Summary
Modifier and TypeMethodDescriptionbuildProgressURL
(Long taskId) This factory method is called to build a progress URL so the TaskDescriptor can allow some one to navigate to the task's "web page".boolean
int
hashCode()
boolean
isRerun()
toString()
-
Field Details
-
EMPTY
Used to retrieve a running anonymization task - never to schedule a new one.
-
-
Constructor Details
-
AnonymizeUserTaskContext
-
AnonymizeUserTaskContext
-
AnonymizeUserTaskContext
-
-
Method Details
-
getUserKey
-
getUserName
-
getFullName
-
isRerun
public boolean isRerun() -
buildProgressURL
Description copied from interface:TaskContext
This factory method is called to build a progress URL so the TaskDescriptor can allow some one to navigate to the task's "web page". The URL should start with "/" and be ready for the servlet context path to be prepended.- Specified by:
buildProgressURL
in interfaceTaskContext
- Parameters:
taskId
- - the id of the task. Since this is not known until task submission, this call back is informed of it once created.- Returns:
- returns a context specific progress URL that a user can go to to view the progress of a task.
-
hashCode
public int hashCode() -
equals
-
toString
-