Package com.dotmarketing.portlets.folders.business

Examples of com.dotmarketing.portlets.folders.business.FolderAPI.find()


      User user = userWebAPI.getLoggedInUser(ctx.getHttpServletRequest());
      boolean respectFrontendRoles = userWebAPI.isLoggedToFrontend(ctx.getHttpServletRequest());
      FolderAPI folderAPI = APILocator.getFolderAPI();
      Folder folder = null;
      try{
        folder = folderAPI.find(folderId,user,respectFrontendRoles);
      }catch(Exception e){
        Logger.warn(this, "Unable to find folder with the given id, looking for host");
      }
      if(folder != null) {
        return folderMap(folder);
View Full Code Here


      }


      // if this contentlet is being saved in a folder, inherit from the folder
      if(InodeUtils.isSet(this.getFolder()) && ! "SYSTEM_FOLDER".equals(this.getFolder())) {
        return fAPI.find(this.getFolder(), APILocator.getUserAPI().getSystemUser(), false);
      }

      // if this contentlet is being saved in a host, inherit from the host
      if(InodeUtils.isSet(this.getHost()) && ! this.getHost().equals(systemHost.getIdentifier())) {
        return hostAPI.find(this.getHost(), systemUser, false);
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.