public class TaskNavigator extends Object implements Navigator
Modifier and Type | Field and Description |
---|---|
static String |
CATEGORY_ARCHIVED |
static String |
CATEGORY_INBOX |
static String |
CATEGORY_INVOLVED |
static String |
CATEGORY_QUEUED |
static String |
CATEGORY_TASKS |
protected HistoryService |
historyService |
protected IdentityService |
identityService |
static String |
PARAMETER_CATEGORY |
static String |
PARAMETER_GROUP |
static String |
TASK_URI_PART |
protected TaskService |
taskService |
Constructor and Description |
---|
TaskNavigator() |
Modifier and Type | Method and Description |
---|---|
protected void |
directToCategoryPage(String category,
UriFragment uriFragment) |
protected void |
directToSpecificTaskPage(String category,
String taskId,
UriFragment uriFragment) |
protected List<String> |
getGroupIds(String userId) |
String |
getTrigger()
Gets the string that triggers this handler to be used
when navigation should be performed.
|
void |
handleNavigation(UriFragment uriFragment)
Handle the incoming navigation request.
|
protected void |
showNavigationError(String taskId) |
public static final String TASK_URI_PART
public static final String CATEGORY_TASKS
public static final String CATEGORY_INBOX
public static final String CATEGORY_QUEUED
public static final String CATEGORY_INVOLVED
public static final String CATEGORY_ARCHIVED
public static final String PARAMETER_CATEGORY
public static final String PARAMETER_GROUP
protected transient TaskService taskService
protected transient HistoryService historyService
protected transient IdentityService identityService
public String getTrigger()
Navigator
getTrigger
in interface Navigator
public void handleNavigation(UriFragment uriFragment)
Navigator
Navigator.getTrigger()
), as well as the parameters contain
the values of the parameters passed in the query string (if any).
The handleNavigation is responsible for setting the current URI-fragment to
the correct value (the passed uriFragment or another on in case URL is invalid).handleNavigation
in interface Navigator
protected void directToCategoryPage(String category, UriFragment uriFragment)
protected void directToSpecificTaskPage(String category, String taskId, UriFragment uriFragment)
protected void showNavigationError(String taskId)
Copyright © 2016 Alfresco. All rights reserved.