How to get current PageAlias?

Is there a way in a CAF portlet to retrieve the current PageAlias or page name that the user navigated to?

You will use the PortalItemModel to get information about the current resource including it’s name, description and aliases. Here’s the javadocs for it:

The way you locate the current requested item is with the following:

IContext context = ContextFactory.acquireContext(true);
IURI uri = context.getCurrentResource();
PortalItemModel pim = new PortalItemModel();
String [] aliases = pim.getAliases();


Thanks mate, that was exactly what I was after.