Package com.dotmarketing.portlets.contentlet.business

Examples of com.dotmarketing.portlets.contentlet.business.DotReindexStateException


    Host h;
    try {
      h = APILocator.getHostAPI().findByName(filePath.substring(0,filePath.indexOf("DOTHOST")), APILocator.getUserAPI().getSystemUser(), true);
    } catch (DotDataException e) {
      Logger.error(PHPEngine.class,e.getMessage(),e);
      throw new DotReindexStateException(e.getMessage(), e);
    } catch (DotSecurityException e) {
      Logger.error(PHPEngine.class,e.getMessage(),e);
      throw new DotReindexStateException(e.getMessage(), e);
    }
    DotCMSPHPCauchoVFS path = new DotCMSPHPCauchoVFS(h);
    return path;
  }
View Full Code Here


    php = getQuercus();
    try {
      php.setPwd(new DotCMSPHPCauchoVFS(APILocator.getHostAPI().findDefaultHost(APILocator.getUserAPI().getSystemUser(), true)));
    } catch (DotDataException e) {
      Logger.error(PHPServlet.class,e.getMessage(),e);
      throw new DotReindexStateException(e.getMessage(), e);
    } catch (DotSecurityException e) {
      Logger.error(PHPServlet.class,e.getMessage(),e);
      throw new DotReindexStateException(e.getMessage(), e);
    }
    php.setDatabase(DbConnectionFactory.getDataSource());
    Enumeration paramNames = config.getInitParameterNames();
    while (paramNames.hasMoreElements()) {
      String paramName = String.valueOf(paramNames.nextElement());
View Full Code Here

    public void reindex(Structure structure)throws DotReindexStateException {
        try {
            distAPI.addStructureReindexEntries(structure.getInode());
        } catch (DotDataException e) {
            Logger.error(this, e.getMessage(), e);
            throw new DotReindexStateException("Unable to complete reindex",e);
        }
    }
View Full Code Here

        try {
            distAPI.addStructureReindexEntries(structure.getInode());
            CacheLocator.getContentletCache().clearCache();
        } catch (DotDataException e) {
            Logger.error(this, e.getMessage(), e);
            throw new DotReindexStateException("Unable to complete reindex",e);
        }

    }
View Full Code Here

            try {
                HibernateUtil.rollbackTransaction();
            } catch (DotHibernateException e1) {
                Logger.warn(this, e1.getMessage(),e1);
            }
            throw new DotReindexStateException("Unable to complete reindex",e);
        }

    }
View Full Code Here

    public void refreshContentUnderHost(Host host) throws DotReindexStateException {
        try {
            distAPI.refreshContentUnderHost(host);
        } catch (DotDataException e) {
            Logger.error(this, e.getMessage(), e);
            throw new DotReindexStateException("Unable to complete reindex",e);
        }

    }
View Full Code Here

    public void refreshContentUnderFolder(Folder folder) throws DotReindexStateException {
        try {
            distAPI.refreshContentUnderFolder(folder);
        } catch (DotDataException e) {
            Logger.error(this, e.getMessage(), e);
            throw new DotReindexStateException("Unable to complete reindex",e);
        }

    }
View Full Code Here

      UserProxy currentUser;
      try {
        currentUser = com.dotmarketing.business.APILocator.getUserProxyAPI().getUserProxy(inode,APILocator.getUserAPI().getSystemUser(), false);
      } catch (Exception e) {
        Logger.error(this, e.getMessage(), e);
        throw new DotReindexStateException(e.getMessage(), e);
      }
      MailingList ml = (MailingList) InodeFactory.getInode(mailingListInode, MailingList.class);
      MailingListFactory.deleteBounceFromMailingList(ml , currentUser);
    }
  } 
View Full Code Here

TOP

Related Classes of com.dotmarketing.portlets.contentlet.business.DotReindexStateException

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.