Package com.dotmarketing.exception

Examples of com.dotmarketing.exception.DotRuntimeException


    UserProxy up;
    try {
      up = com.dotmarketing.business.APILocator.getUserProxyAPI().getUserProxy(user,APILocator.getUserAPI().getSystemUser(), false);
    } catch (Exception e) {
      Logger.error(this, e.getMessage(), e);
      throw new DotRuntimeException(e.getMessage(), e);
   

    return UserCommentsFactory.getUserCommentsByProxyInode(up.getInode());

  }
View Full Code Here


  public UserProxy getUserProxy(User user) {
    try {
      return com.dotmarketing.business.APILocator.getUserProxyAPI().getUserProxy(user,APILocator.getUserAPI().getSystemUser(), false);
    } catch (Exception e) {
      Logger.error(this, e.getMessage(), e);
      throw new DotRuntimeException(e.getMessage(), e);
   
  }
View Full Code Here

    try {
      Host host = hostWebAPI.getCurrentHost(request);
      return createMenu(path, pagePath, host.getIdentifier(),divName,"",true,"","",numberOfLevels);
    } catch (PortalException e) {
      Logger.error(StaticMenuBuilder.class, e.getMessage(), e);
      throw new DotRuntimeException(e.getMessage(), e);
    } catch (SystemException e) {
      Logger.error(StaticMenuBuilder.class, e.getMessage(), e);
      throw new DotRuntimeException(e.getMessage(), e);
    } catch (DotDataException e) {
      Logger.error(StaticMenuBuilder.class, e.getMessage(), e);
      throw new DotRuntimeException(e.getMessage(), e);
    } catch (DotSecurityException e) {
      Logger.error(StaticMenuBuilder.class, e.getMessage(), e);
      throw new DotRuntimeException(e.getMessage(), e);
    }
  }
View Full Code Here

    try {
      Host host = hostWebAPI.getCurrentHost(request);
      return createMenu(path, pagePath, host.getIdentifier(),divName,"",linkFolders,"","",numberOfLevels);
    } catch (DotDataException e) {
      Logger.error(StaticMenuBuilder.class, e.getMessage(), e);
      throw new DotRuntimeException(e.getMessage(), e);
    } catch (DotSecurityException e) {
      Logger.error(StaticMenuBuilder.class, e.getMessage(), e);
      throw new DotRuntimeException(e.getMessage(), e);
    } catch (PortalException e) {
      Logger.error(StaticMenuBuilder.class, e.getMessage(), e);
      throw new DotRuntimeException(e.getMessage(), e);
    } catch (SystemException e) {
      Logger.error(StaticMenuBuilder.class, e.getMessage(), e);
      throw new DotRuntimeException(e.getMessage(), e);
    }
  }
View Full Code Here

        Host host;
    try {
      host = hostWebAPI.getCurrentHost(request);
    } catch (PortalException e) {
      Logger.error(StaticMenuBuilder.class, e.getMessage(), e);
      throw new DotRuntimeException(e.getMessage(), e);
    } catch (SystemException e) {
      Logger.error(StaticMenuBuilder.class, e.getMessage(), e);
      throw new DotRuntimeException(e.getMessage(), e);
    } catch (DotDataException e) {
      Logger.error(StaticMenuBuilder.class, e.getMessage(), e);
      throw new DotRuntimeException(e.getMessage(), e);
    } catch (DotSecurityException e) {
      Logger.error(StaticMenuBuilder.class, e.getMessage(), e);
      throw new DotRuntimeException(e.getMessage(), e);
    }
        String folderPath = "";
    try {
      folderPath = APILocator.getIdentifierAPI().find(folderChildChild).getPath();
    } catch (Exception e2) {
View Full Code Here

      try {
        Host host = APILocator.getHostAPI().find(hostId, APILocator.getUserAPI().getSystemUser(), false);
        itemsList = APILocator.getFolderAPI().findSubFolders(host, true);
      } catch (Exception e) {
        Logger.error(this, e.getMessage(), e);
        throw new DotRuntimeException(e.getMessage(),e);
      }
      fileExists = false;
    }
    String filePath = "dynamic" + java.io.File.separator + "menus" + java.io.File.separator + fileName;
      
       if (fileExists) {
         return filePath;
       }
      
    //gets menu items for this folder
    java.util.Iterator itemListIterator = itemsList.iterator();
      
    ///FIRST LEVEL MENU ITEMS!!!!
    while (itemListIterator.hasNext()) {

      Inode itemChild = (Inode) itemListIterator.next();
      String itemChildPath = "";
      try {
        itemChildPath = APILocator.getIdentifierAPI().find((Folder)itemChild).getPath();
      } catch (Exception e) {
        Logger.error(this,e.getMessage(), e);
        throw new DotRuntimeException(e.getMessage(),e);
      }
     
      if (itemChild instanceof Folder) {
        stringbuf.append("#set ($VTLSERVLET_DECODED_URI=\"$UtilMethods.decodeURL($VTLSERVLET_URI)\")\n");
                stringbuf.append("#if ($UtilMethods.inString($VTLSERVLET_DECODED_URI,\""  + itemChildPath + "\"))\n");
View Full Code Here

    try {
      Host host = hostWebAPI.getCurrentHost(request);
      return createMenu(path, pagePath, host.getIdentifier(),divName,"",true,"","",numberOfLevels);
    } catch (DotDataException e) {
      Logger.error(HorizontalMenuBuilder.class, e.getMessage(), e);
      throw new DotRuntimeException(e.getMessage(), e);
    } catch (PortalException e) {
      Logger.error(HorizontalMenuBuilder.class, e.getMessage(), e);
      throw new DotRuntimeException(e.getMessage(), e);
    } catch (SystemException e) {
      Logger.error(HorizontalMenuBuilder.class, e.getMessage(), e);
      throw new DotRuntimeException(e.getMessage(), e);
    } catch (DotSecurityException e) {
      Logger.error(HorizontalMenuBuilder.class, e.getMessage(), e);
      throw new DotRuntimeException(e.getMessage(), e);
    }
  }
View Full Code Here

    try {
      Host host = hostWebAPI.getCurrentHost(request);
      return createMenu(path, pagePath, host.getIdentifier(),divName,"",linkFolders,"","",numberOfLevels);
    } catch (SystemException e) {
      Logger.error(HorizontalMenuBuilder.class, e.getMessage(), e);
      throw new DotRuntimeException(e.getMessage(), e);
    } catch (PortalException e) {
      Logger.error(HorizontalMenuBuilder.class, e.getMessage(), e);
      throw new DotRuntimeException(e.getMessage(), e);
    } catch (DotDataException e) {
      Logger.error(HorizontalMenuBuilder.class, e.getMessage(), e);
      throw new DotRuntimeException(e.getMessage(), e);
    } catch (DotSecurityException e) {
      Logger.error(HorizontalMenuBuilder.class, e.getMessage(), e);
      throw new DotRuntimeException(e.getMessage(), e);
   
  }
View Full Code Here

    Folder folder = new Folder();
    try {
      folder = APILocator.getFolderAPI().findFolderByPath(folderPath, hostId,userAPI.getSystemUser(),false);
    } catch (Exception e) {
      Logger.error(this,e.getMessage());
      throw new DotRuntimeException(e.getMessage(),e);
    }

        boolean ADMIN_MODE= (request.getSession().getAttribute(com.dotmarketing.util.WebKeys.ADMIN_MODE_SESSION) != null);
        boolean PREVIEW_MODE = ((request.getSession().getAttribute(com.dotmarketing.util.WebKeys.PREVIEW_MODE_SESSION) != null) && ADMIN_MODE);
        boolean EDIT_MODE = ((request.getSession().getAttribute(com.dotmarketing.util.WebKeys.EDIT_MODE_SESSION) != null) && ADMIN_MODE);
View Full Code Here

        Folder folder = new Folder();
    try {
      folder = APILocator.getFolderAPI().findFolderByPath(parentFolder, hostId,APILocator.getUserAPI().getSystemUser(),false);
    } catch (Exception e) {
      Logger.error(this,e.getMessage(), e);
      throw new DotRuntimeException(e.getMessage(),e);
    }
        return folder;
    }
View Full Code Here

TOP

Related Classes of com.dotmarketing.exception.DotRuntimeException

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.