@Component(value="cuba_UserSwitchLinkHandlerProcessor") public class UserSwitchLinkHandlerProcessor extends java.lang.Object implements LinkHandlerProcessor, org.springframework.core.Ordered
Modifier and Type | Field and Description |
---|---|
protected DataService |
dataService |
protected Messages |
messages |
static java.lang.String |
NAME |
protected LinkHandlerProcessor |
screenHandler |
protected TimeSource |
timeSource |
HIGHEST_PLATFORM_PRECEDENCE, LOWEST_PLATFORM_PRECEDENCE
Constructor and Description |
---|
UserSwitchLinkHandlerProcessor() |
Modifier and Type | Method and Description |
---|---|
boolean |
canHandle(ExternalLinkContext linkContext) |
protected java.lang.String |
getDialogMessage(User user) |
int |
getOrder() |
protected java.util.UUID |
getUUID(java.lang.String id) |
protected java.lang.String |
getWarningMessage(User user) |
void |
handle(ExternalLinkContext linkContext)
Called to handle action.
|
protected User |
loadUser(java.util.UUID userId) |
protected User |
loadUser(java.util.UUID userId,
User user) |
protected void |
substituteUserAndOpenWindow(ExternalLinkContext linkContext,
java.util.UUID userId) |
public static final java.lang.String NAME
protected LinkHandlerProcessor screenHandler
@Inject protected TimeSource timeSource
@Inject protected DataService dataService
@Inject protected Messages messages
public boolean canHandle(ExternalLinkContext linkContext)
canHandle
in interface LinkHandlerProcessor
public void handle(ExternalLinkContext linkContext)
LinkHandlerProcessor
handle
in interface LinkHandlerProcessor
protected void substituteUserAndOpenWindow(ExternalLinkContext linkContext, java.util.UUID userId)
protected java.util.UUID getUUID(java.lang.String id)
protected User loadUser(java.util.UUID userId)
protected java.lang.String getDialogMessage(User user)
protected java.lang.String getWarningMessage(User user)
public int getOrder()
getOrder
in interface org.springframework.core.Ordered