Examples of HostAPI


Examples of com.dotmarketing.portlets.contentlet.business.HostAPI

  }

  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;
    }
   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.