AdminController

class AdminController: Any

AdminController contains MVC controller functions that handle requests related with DP's administration (for example, the ability to abort a submission that is taking too long, etc.)

Fields

Name Description
val LOG: LoggerFactory.getLogger(this.javaClass.name)
val mavenInvoker: MavenInvoker
val submissionRepository: SubmissionRepository

Constructors

<init>

constructor(mavenInvoker: MavenInvoker, submissionRepository: SubmissionRepository)

AdminController contains MVC controller functions that handle requests related with DP's administration (for example, the ability to abort a submission that is taking too long, etc.)

Parameters

Name Description
mavenInvoker: MavenInvoker
submissionRepository: SubmissionRepository

Methods

showDashboard

fun showDashboard(model: ModelMap): String

Controller to handle HTTP GET requests related with the admin dashboard.

Parameters

Name Description
model: ModelMap

ReturnValue

Name Description
String

A String with the name of the relevant View

postDashboard

fun postDashboard(adminDashboardForm: AdminDashboardForm, bindingResult: BindingResult, redirectAttributes: RedirectAttributes): String

Controller to handle HTTP POST requests related with the admin dashboard.

Parameters

Name Description
adminDashboardForm: AdminDashboardForm
bindingResult: BindingResult
redirectAttributes: RedirectAttributes

ReturnValue

Name Description
String

A String with the name of the relevant View

showPendingSubmissions

fun showPendingSubmissions(model: ModelMap): String

Controller to handle requests related with the list of pending assignments.

Parameters

Name Description
model: ModelMap

ReturnValue

Name Description
String

A String with the name of the relevant View

abortSubmission

fun abortSubmission(submissionId: Long, redirectAttributes: RedirectAttributes): String

Controller to handle requests related with aborting a Submission.

Parameters

Name Description
submissionId: Long

is a Long identifying the relevant Submission

redirectAttributes: RedirectAttributes

is a RedirectAttributes

ReturnValue

Name Description
String

A String with the name of the relevant View