public class DefaultIssueFilter {
- public final static String SEPARATOR = "|";
- public final static String KEY_VALUE_SEPARATOR = "=";
- public final static String LIST_SEPARATOR = ",";
+ public static final String SEPARATOR = "|";
+ public static final String KEY_VALUE_SEPARATOR = "=";
+ public static final String LIST_SEPARATOR = ",";
private Long id;
private String name;
}
public DefaultIssueFilter save(DefaultIssueFilter issueFilter, UserSession userSession) {
- issueFilter.setUser(userSession.login());
// TODO
// checkAuthorization(userSession, project, UserRole.ADMIN);
+ verifyLoggedIn(userSession);
+ issueFilter.setUser(userSession.login());
IssueFilterDto issueFilterDto = IssueFilterDto.toIssueFilter(issueFilter);
issueFilterDao.insert(issueFilterDto);
return issueFilterDto.toIssueFilter();
public DefaultIssueFilter update(DefaultIssueFilter issueFilter, UserSession userSession) {
// TODO
// checkAuthorization(userSession, project, UserRole.ADMIN);
+ verifyLoggedIn(userSession);
issueFilterDao.update(IssueFilterDto.toIssueFilter(issueFilter));
return issueFilter;
}
public void delete(Long issueFilterId, UserSession userSession) {
// TODO
//checkAuthorization(userSession, findActionPlanDto(actionPlanKey).getProjectKey(), UserRole.ADMIN);
+ verifyLoggedIn(userSession);
issueFilterDao.delete(issueFilterId);
}