Package com.dotmarketing.business.web

Examples of com.dotmarketing.business.web.HostWebAPI.findByName()


        User systemUser = userWebAPI.getSystemUser();
        boolean respectFrontendRoles = !userWebAPI.isLoggedToBackend(req);
        String serverName = req.getServerName();
        Host host = null;
        if (UtilMethods.isSet(serverName)) {
        host = hostWebAPI.findByName(serverName, systemUser, respectFrontendRoles);
        if(host == null)
          host = hostWebAPI.findByAlias(serverName, systemUser, respectFrontendRoles);
        //If no host matches then we return the default host
        if(host == null)
          host = hostWebAPI.findDefaultHost(systemUser, respectFrontendRoles);
View Full Code Here


    User systemUser = userWebAPI.getSystemUser();
    boolean respectFrontendRoles = !userWebAPI.isLoggedToBackend(req);
    String serverName = req.getServerName();
    Host host = null;
    if (UtilMethods.isSet(serverName)) {
    host = hostWebAPI.findByName(serverName, systemUser, respectFrontendRoles);
    if(host == null)
      host = hostWebAPI.findByAlias(serverName, systemUser, respectFrontendRoles);
    //If no host matches then we return the default host
    if(host == null)
      host = hostWebAPI.findDefaultHost(systemUser, respectFrontendRoles);
View Full Code Here

                    int startIndex = 0;
                    int endIndex = auxPointer.indexOf("/");
                    if(startIndex < endIndex)
                    {
                      String localHostName = auxPointer.substring(startIndex,endIndex);
                      Host localHost = hostWebAPI.findByName(localHostName, systemUser, false);
                      if(localHost ==null || !InodeUtils.isSet(localHost.getInode())){
                        external=true;
                      }
                    }
                    else
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.