codescape / jira-scrum-poker

Scrum Poker for Jira

Home Page:http://jira-scrum-poker.codescape.de

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Extract license check into separate class

codescape opened this issue · comments

We should offer two methods boolean isLicensed() and String getLicenseError() to be used as shown here:

@Override
protected String doExecute() {
    if (!licenseService.isLicensed()) {
        errorMessage("Unable to start session because of license error: " + licenseService.getLicenseError());
        return ERROR;
    }
    ...
}

Tasks

  • implement service
  • test service
  • use in ScrumPokerAction
  • use in ScrumPokerHealthCheck ?
  • use in StartSessionWorkflowFunction