Package com.dotmarketing.beans

Examples of com.dotmarketing.beans.Host


      for(Map<String,Object> value : fileParameters){
        Field field = (Field)value.get("field");
        java.io.File uploadedFile = (java.io.File)value.get("file");
        String title = (String)value.get("title");
        Host host = (Host)value.get("host");
        contentlet = addFileToContentlet(contentlet, field,host, uploadedFile, user, title);
      }
      contentlet = conAPI.checkinWithoutVersioning(contentlet, relationships, cats, permissionList, user, true);
    }
View Full Code Here


      return Locale.getDefault();
    }
   
    if((methodName.equalsIgnoreCase("getServerName"))){         
      com.liferay.portal.model.User user = (User) map.get("user");
      Host host = (Host) map.get("host");
      return host.getHostname();
    }
   
    if((methodName.equalsIgnoreCase("getRequestURI"))){         
      return (String)map.get("uri");
    }
View Full Code Here

      return getCookies();   
   
    //HOST_ID , DEFAULT HOST
    if(key.equalsIgnoreCase("host_id")){
      com.liferay.portal.model.User user = (User) proxy.get("user");
      Host host = (Host) proxy.get("host");
      return host.getHost();
    }
   
    //USER test@dotcms.org
    if(key.equalsIgnoreCase(com.dotmarketing.util.WebKeys.CMS_USER)){       
      com.liferay.portal.model.User user = (User) proxy.get("user");
View Full Code Here

        HostWebAPI hostWebAPI  = WebAPILocator.getHostWebAPI();
        UserWebAPI userWebAPI = WebAPILocator.getUserWebAPI();
        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
View Full Code Here

    HostWebAPI hostWebAPI  = WebAPILocator.getHostWebAPI();
    UserWebAPI userWebAPI = WebAPILocator.getUserWebAPI();
    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
View Full Code Here

        return null;
      }
      String outputXML = null;
      Source xmlSource = null;
      XSLTranformationDoc doc = null;
      Host host = hostWebAPI.getCurrentHost(request);

      /*Validate if in cache exists a valid version*/
      doc = XSLTransformationCache.getXSLTranformationDocByXMLPath(XMLPath,XSLPath);

      if(doc == null){
View Full Code Here

        return null;
      }
      String outputXML = null;
      Source xmlSource = null;
      XSLTranformationDoc doc = null;
      Host host = hostWebAPI.getCurrentHost(request);
     
      /*Get the XSL source*/
      File xslFile = fileAPI.getFileByURI(XSLPath, host, true, userAPI.getSystemUser(), false);
     
      if (doc == null) {
View Full Code Here

 
  public static List getFavorites(String user_id) {
    List<Map> l = new ArrayList<Map>();

    try {
      Host host = APILocator.getHostAPI().findDefaultHost(APILocator.getUserAPI().getSystemUser(), false);

      DotConnect dotConnect = new DotConnect();

      String sql = "select * from user_favorites where user_id = ?";

View Full Code Here

  public IFileAsset loadFile(String url, User user) throws IOException, DotDataException, DotSecurityException{
    url = stripMapping(url);
    String hostName = getHostname(url);
    url = getPath(url);

    Host host;
    try {
      host = hostAPI.findByName(hostName, user, false);
    } catch (DotDataException e) {
      Logger.error(DotWebdavHelper.class, e.getMessage(), e);
      throw new IOException(e.getMessage());
View Full Code Here

  public Folder loadFolder(String url,User user) throws IOException{
    url = stripMapping(url);
    String hostName = getHostname(url);
    url = getPath(url);
    Host host;
    Folder folder;
    try {
      host = hostAPI.findByName(hostName, user, false);
      folder = folderAPI.findFolderByPath(url, host,user, false);
    } catch (DotDataException e) {
View Full Code Here

TOP

Related Classes of com.dotmarketing.beans.Host

Copyright © 2018 www.massapicom. 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.