Skip to content

Commit

Permalink
- adding setTaskNames
Browse files Browse the repository at this point in the history
  • Loading branch information
salaboy committed Nov 20, 2012
1 parent bc0ced8 commit 28e2eb3
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 0 deletions.
Expand Up @@ -83,6 +83,8 @@ public interface TaskInstanceService {

void setPriority(long taskId, int priority);

void setTaskNames(long taskId, List<I18NText> taskNames);

void setExpirationDate(long taskId, Date date);

public void setDescriptions(long taskId, List<I18NText> descriptions);
Expand Down
Expand Up @@ -175,6 +175,8 @@ public interface TaskServiceEntryPoint {
void setOutput(long taskId, String userId, Object outputContentData);

void setPriority(long taskId, int priority);

void setTaskNames(long taskId, List<I18NText> taskNames);

void skip(long taskId, String userId);

Expand Down
Expand Up @@ -260,4 +260,8 @@ public boolean isSkipable(long taskId) {
public SubTasksStrategy getSubTaskStrategy(long taskId) {
return instanceService.getSubTaskStrategy(taskId);
}

public void setTaskNames(long taskId, List<I18NText> taskNames) {
instanceService.setTaskNames(taskId, taskNames);
}
}
Expand Up @@ -220,6 +220,11 @@ public void setPriority(long taskId, int priority) {
task.setPriority(priority);
}

public void setTaskNames(long taskId, List<I18NText> taskNames) {
Task task = em.find(Task.class, taskId);
task.setNames(taskNames);
}

public void skip(long taskId, String userId) {
lifeCycleManager.taskOperation(Operation.Skip, taskId, userId, null, null, null);
}
Expand Down Expand Up @@ -663,4 +668,6 @@ public SubTasksStrategy getSubTaskStrategy(long taskId) {
Task task = em.find(Task.class, taskId);
return task.getSubTaskStrategy();
}


}
Expand Up @@ -537,6 +537,10 @@ public List<Comment> getAllCommentsByTaskId(long taskId) {
public Comment getCommentById(long commentId) {
return taskCommentService.getCommentById(commentId);
}

public void setTaskNames(long taskId, List<I18NText> taskName) {
taskInstanceService.setTaskNames(taskId, taskName);
}



Expand Down
Expand Up @@ -209,5 +209,9 @@ public boolean isSkipable(long taskId) {
public SubTasksStrategy getSubTaskStrategy(long taskId) {
throw new UnsupportedOperationException("Not supported yet.");
}

public void setTaskNames(long taskId, List<I18NText> taskNames) {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}

}
Expand Up @@ -229,5 +229,9 @@ public boolean isSkipable(long taskId) {
public SubTasksStrategy getSubTaskStrategy(long taskId) {
return instanceService.getSubTaskStrategy(taskId);
}

public void setTaskNames(long taskId, List<I18NText> taskNames) {
instanceService.setTaskNames(taskId, taskNames);
}

}

0 comments on commit 28e2eb3

Please sign in to comment.