Class UserPortalViewContext
- java.lang.Object
-
- de.xima.fc.user_portal.bean.common.UserPortalViewContext
-
- All Implemented Interfaces:
Serializable
@ViewScoped @Named public class UserPortalViewContext extends Object implements Serializable
Manages the request context for a portal page. Evaluates the request parameters and extracts, for example, the requested portal.- Since:
- 8.2.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UserPortalViewContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.enterprise.event.Event<DidOpenPortalContextEvent>getDidOpenPortalContextEventEvent()DetailedUserPortalResourcegetPortal()StringgetPortalAlias()Get the alias of the requested portal.StringgetPortalTitle()UUIDgetPortalUuid()Get the UUID of the current portal.UserPortalRoutergetRouter()IUserPortalInvocationContextgetUpc()booleanisTabLayoutActivated()IRoutingContext.IPortalRoutingContextroutingContext()Get the portal routing context for pages of a certain portal.voidsetPortalTitle(String portalTitle)voidupdateTitle()
-
-
-
Method Detail
-
routingContext
public IRoutingContext.IPortalRoutingContext routingContext()
Get the portal routing context for pages of a certain portal.- Returns:
- The routing context for the portal.
-
getPortalAlias
public String getPortalAlias()
Get the alias of the requested portal.- Returns:
- The alias of the requested portal.
-
updateTitle
public void updateTitle()
-
getPortalUuid
public UUID getPortalUuid()
Get the UUID of the current portal.- Returns:
- The UUID of the current portal or
nullif there's no portal set in this context.
-
isTabLayoutActivated
public boolean isTabLayoutActivated()
-
getUpc
public IUserPortalInvocationContext getUpc()
-
getRouter
public UserPortalRouter getRouter()
-
getDidOpenPortalContextEventEvent
public javax.enterprise.event.Event<DidOpenPortalContextEvent> getDidOpenPortalContextEventEvent()
-
getPortal
public DetailedUserPortalResource getPortal()
-
getPortalTitle
public String getPortalTitle()
-
setPortalTitle
public void setPortalTitle(String portalTitle)
-
-