Package com.dotmarketing.exception

Examples of com.dotmarketing.exception.DotRuntimeException


                PermissionAPI.PERMISSION_READ, user, false);
          }
      }
    } catch (DotDataException e) {
      Logger.error(TemplateFolderResourceImpl.class, e.getMessage(), e);
      throw new DotRuntimeException(e.getMessage(), e);
    }
    return false;
  }
View Full Code Here


   * java.io.InputStream, java.lang.Long, java.lang.String)
   */
  public Resource createNew(String newName, InputStream in, Long length,
      String contentType) throws IOException, DotRuntimeException {

    throw new DotRuntimeException("Cannot create new template folder");

  }
View Full Code Here

   *
   * @see com.dotcms.repackage.com.bradmcevoy.http.CopyableResource#copyTo(com.dotcms.repackage.com.bradmcevoy.http.
   * CollectionResource, java.lang.String)
   */
  public void copyTo(CollectionResource collRes, String name) {
    throw new DotRuntimeException("Cannot copy template folder");
  }
View Full Code Here

   * (non-Javadoc)
   *
   * @see com.dotcms.repackage.com.bradmcevoy.http.DeletableResource#delete()
   */
  public void delete() throws DotRuntimeException {
    throw new DotRuntimeException("Cannot delete template folder");
  }
View Full Code Here

   * @see com.dotcms.repackage.com.bradmcevoy.http.MoveableResource#moveTo(com.dotcms.repackage.com.bradmcevoy.http.
   * CollectionResource, java.lang.String)
   */
  public void moveTo(CollectionResource collRes, String name)
      throws DotRuntimeException {
    throw new DotRuntimeException("Cannot move template folder");
  }
View Full Code Here

      }

    } catch (Exception e) {

      Logger.error(FileFactoryImpl.class, "findFiles failed:" + e, e);
      throw new DotRuntimeException(e.toString());
    }

    return assets;
  }
View Full Code Here

            if ( host == null ) {
                host = hostAPI.findParentHost( parent, systemUser, false );
            }
        } catch ( DotDataException e ) {
            Logger.error( FileFactory.class, e.getMessage(), e );
            throw new DotRuntimeException( e.getMessage(), e );

        } catch ( DotSecurityException e ) {
            Logger.error( FileFactory.class, e.getMessage(), e );
            throw new DotRuntimeException( e.getMessage(), e );
        }
        identifier.setHostId( host.getIdentifier() );
        identifier.setURI( parent != null ? workingWebAsset.getURI( parent ) : workingWebAsset.getURI() );
        //HibernateUtil.saveOrUpdate(identifier);
        APILocator.getIdentifierAPI().save( identifier );
View Full Code Here

    try {
      Host host = APILocator.getHostAPI().findParentHost(template, APILocator.getUserAPI().getSystemUser(), false);
      return host;
    } catch (DotSecurityException e1) {
      Logger.error(TemplateAPIImpl.class, e1.getMessage(), e1);
      throw new DotRuntimeException(e1.getMessage(), e1);
    }

  }
View Full Code Here

        return host;
   
      return APILocator.getHostAPI().findSystemHost(APILocator.getUserAPI().getSystemUser(), false);
    } catch (DotSecurityException e) {
      Logger.error(File.class, e.getMessage(), e);
      throw new DotRuntimeException(e.getMessage(), e);
    }

  }
View Full Code Here

    if(instance == null){
      init();
      if(instance == null){
        Logger.fatal(CacheLocator.class, "CACHE IS NOT INITIALIZED : THIS SHOULD NEVER HAPPEN");
        throw new DotRuntimeException("CACHE IS NOT INITIALIZED : THIS SHOULD NEVER HAPPEN");
      }
    }

    Object serviceRef = instance.getServiceInstance(index);
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.