Package com.dotmarketing.portlets.contentlet.business

Examples of com.dotmarketing.portlets.contentlet.business.HostAPI.findByName()


      List<Host> hostList = new ArrayList<Host>();

      String hosts = loadPluginConfigProperty(pluginId, "hosts.name");
      if(UtilMethods.isSet(hosts)){
        for(String hostname : hosts.split(",")){ 
          Host host = hostAPI.findByName(hostname, systemUser, false);
          hostList.add(host);
        }
      }else{
        Host host = hostAPI.findDefaultHost(systemUser, false);
        hostList.add(host);
View Full Code Here


        Host host = hostAPI.find(hostFolderId, user, respectFrontendRoles);
        if(host != null) {
          return hostMap(host);
        }

        host = hostAPI.findByName(hostFolderId, user, respectFrontendRoles);
        if(host != null) {
          return hostMap(host);
        }

        FolderAPI folderAPI = APILocator.getFolderAPI();
View Full Code Here

      BeanUtils.copyProperties(form, req.getAttribute(WebKeys.VIRTUAL_LINK_EDIT));
      String linkUrl = vl.getUrl();
      if (linkUrl != null) {
          String[] splittedLink = linkUrl.split(":");
          if (splittedLink.length > 1) {
              Host host = hostAPI.findByName(splittedLink[0], user, false);
                    if ( host != null ) {
                        ((VirtualLinkForm) form).setUrl( splittedLink[1] );
                        ((VirtualLinkForm) form).setHostId( host.getIdentifier() );
                    } else {
                        Logger.error( this, "Host not found OR Unexpected URL format for Vanity URL: " + linkUrl );
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.