BackendRedirectionService
class BackendRedirectionService (View source)
Properties
protected SessionInterface | $session | ||
protected NodeDataRepository | $nodeDataRepository | ||
protected WorkspaceRepository | $workspaceRepository | ||
protected ContextFactoryInterface | $contextFactory | ||
protected DomainRepository | $domainRepository | ||
protected SiteRepository | $siteRepository | ||
protected UserService | $userService | ||
protected PersistenceManagerInterface | $persistenceManager | ||
protected PropertyMapper | $propertyMapper | ||
protected bool | $routingValuesAfterLogin |
Methods
Returns a specific URI string to redirect to after the login; or NULL if there is none.
Returns a specific URI string to redirect to after the logout; or NULL if there is none.
No description
Create a ContentContext to be used for the backend redirects.
If the specified workspace or its root node does not exist yet, the workspace and root node will be created.
Details
string
getAfterLoginRedirectionUri(ActionRequest $actionRequest)
Returns a specific URI string to redirect to after the login; or NULL if there is none.
string
getAfterLogoutRedirectionUri(ActionRequest $actionRequest)
Returns a specific URI string to redirect to after the logout; or NULL if there is none.
In case of NULL, it's the responsibility of the AuthenticationController where to redirect, most likely to the LoginController's index action.
protected NodeInterface
getLastVisitedNode(string $workspaceName)
No description
protected ContentContext
createContext(string $workspaceName)
Create a ContentContext to be used for the backend redirects.
protected void
createWorkspaceAndRootNodeIfNecessary(string $workspaceName)
If the specified workspace or its root node does not exist yet, the workspace and root node will be created.
This method is basically a safeguard for legacy and potentially broken websites where users might not have their own workspace yet. In a normal setup, the Domain User Service is responsible for creating and deleting user workspaces.