Interface AssistedServiceAgentAuthoritiesManager
- All Known Implementing Classes:
DefaultAssistedServiceAgentAuthoritiesManager
public interface AssistedServiceAgentAuthoritiesManager
Handles asagent roles, to enable changing authorities dynamically.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddCustomerAuthoritiesToAgent(String customerId) Add authorities (roles) from a customer to the current agent.voidRestore agent initial authorities.
-
Method Details
-
addCustomerAuthoritiesToAgent
Add authorities (roles) from a customer to the current agent. It also adds the initial agent authorities to the session, so it can be restored later.- Parameters:
customerId- The id of the user the roles will be merged to the agent.
-
restoreInitialAuthorities
void restoreInitialAuthorities()Restore agent initial authorities.
-