protected void logVariableOperation(AbstractVariableScope scope) { TaskEntity task = (TaskEntity) scope; commandContext.getOperationLogManager().logVariableOperation(getLogEntryOperation(), null, task.getId(), PropertyChange.EMPTY_CHANGE); }
protected void logVariableOperation(AbstractVariableScope scope) { TaskEntity task = (TaskEntity) scope; commandContext.getOperationLogManager().logVariableOperation(getLogEntryOperation(), null, task.getId(), PropertyChange.EMPTY_CHANGE); }
public void checkReadTask(TaskEntity task) { if (task != null && !getTenantManager().isAuthenticatedTenant(task.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("read the task '"+ task.getId() + "'"); } }
@Override public void checkUpdateTask(TaskEntity task) { if (task != null && !getTenantManager().isAuthenticatedTenant(task.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("update the task '"+ task.getId() + "'"); } }
public void checkReadTask(TaskEntity task) { if (task != null && !getTenantManager().isAuthenticatedTenant(task.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("read the task '"+ task.getId() + "'"); } }
public void checkTaskWork(TaskEntity task) { if (task != null && !getTenantManager().isAuthenticatedTenant(task.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("work on task '"+ task.getId() +"'"); } }
@Override public void checkUpdateTask(TaskEntity task) { if (task != null && !getTenantManager().isAuthenticatedTenant(task.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("update the task '"+ task.getId() + "'"); } }
@Override public void checkDeleteTask(TaskEntity task) { if (task != null && !getTenantManager().isAuthenticatedTenant(task.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("delete the task '"+ task.getId() + "'"); } }
public void checkTaskAssign(TaskEntity task) { if (task != null && !getTenantManager().isAuthenticatedTenant(task.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("assign the task '"+ task.getId() + "'"); } }
@Override public void checkDeleteTask(TaskEntity task) { if (task != null && !getTenantManager().isAuthenticatedTenant(task.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("delete the task '"+ task.getId() + "'"); } }
public void checkTaskAssign(TaskEntity task) { if (task != null && !getTenantManager().isAuthenticatedTenant(task.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("assign the task '"+ task.getId() + "'"); } }
public void checkCreateTask(TaskEntity task) { if (task != null && !getTenantManager().isAuthenticatedTenant(task.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("create the task '"+ task.getId() + "'"); } }
public void checkCreateTask(TaskEntity task) { if (task != null && !getTenantManager().isAuthenticatedTenant(task.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("create the task '"+ task.getId() + "'"); } }
public void checkTaskWork(TaskEntity task) { if (task != null && !getTenantManager().isAuthenticatedTenant(task.getTenantId())) { throw LOG.exceptionCommandWithUnauthorizedTenant("work on task '"+ task.getId() +"'"); } }
public void testDecoratePriorityFromVariable() { // given int aPriority = 10; taskService.setVariable(task.getId(), "priority", aPriority); Expression priorityExpression = expressionManager.createExpression("${priority}"); taskDefinition.setPriorityExpression(priorityExpression); // when decorate(task, taskDecorator); // then assertEquals(aPriority, task.getPriority()); }
public void testDecorateAssigneeFromVariable() { // given String aAssignee = "john"; taskService.setVariable(task.getId(), "assignee", aAssignee); Expression assigneeExpression = expressionManager.createExpression("${assignee}"); taskDefinition.setAssigneeExpression(assigneeExpression); // when decorate(task, taskDecorator); // then assertEquals(aAssignee, task.getAssignee()); }
public void testDecorateNameFromVariable() { // given String aTaskName = "A Task Name"; taskService.setVariable(task.getId(), "taskName", aTaskName); Expression nameExpression = expressionManager.createExpression("${taskName}"); taskDefinition.setNameExpression(nameExpression); // when decorate(task, taskDecorator); // then assertEquals(aTaskName, task.getName()); }
public void testDecorateDescriptionFromVariable() { // given String aDescription = "This is a Task"; taskService.setVariable(task.getId(), "description", aDescription); Expression descriptionExpression = expressionManager.createExpression("${description}"); taskDefinition.setDescriptionExpression(descriptionExpression); // when decorate(task, taskDecorator); // then assertEquals(aDescription, task.getDescription()); }
public void testDecorateFollowUpDateFromVariable() { // given String aFollowUpDateDate = "2014-06-01"; Date followUpDate = DateTimeUtil.parseDate(aFollowUpDateDate); taskService.setVariable(task.getId(), "followUpDate", followUpDate); Expression followUpDateExpression = expressionManager.createExpression("${followUpDate}"); taskDefinition.setFollowUpDateExpression(followUpDateExpression); // when decorate(task, taskDecorator); // then assertEquals(followUpDate, task.getFollowUpDate()); }
public void testDecorateDueDateFromVariable() { // given String aDueDate = "2014-06-01"; Date dueDate = DateTimeUtil.parseDate(aDueDate); taskService.setVariable(task.getId(), "dueDate", dueDate); Expression dueDateExpression = expressionManager.createExpression("${dueDate}"); taskDefinition.setDueDateExpression(dueDateExpression); // when decorate(task, taskDecorator); // then assertEquals(dueDate, task.getDueDate()); }