}
private void _saveVirtualLink(ActionRequest req, ActionResponse res,PortletConfig config,ActionForm form, User user)
throws Exception {
HostAPI hostAPI = APILocator.getHostAPI();
VirtualLinkForm mlForm = (VirtualLinkForm) form;
String completeUrl = null;
String url = mlForm.getUrl();
if( !url.startsWith("/") ) {
url = "/" + url;
}
if (InodeUtils.isSet(mlForm.getHostId())) {
Host host = hostAPI.find(mlForm.getHostId(), user, false);
completeUrl = host.getHostname() + ":" + url;
} else {
completeUrl = url;
}