Package com.jeecms.cms.entity.main

Examples of com.jeecms.cms.entity.main.MarkConfig


          && !ImageUtils.isImage(uplFile.getInputStream())) {
        return UploadResponse.getInvalidFileTypeError(request);
      }
      String fileUrl;
      CmsSite site = CmsUtils.getSite(request);
      MarkConfig conf = site.getConfig().getMarkConfig();
      if (mark == null) {
        mark = conf.getOn();
      }
      boolean isImg = type.equals(ResourceType.IMAGE);
      if (site.getConfig().getUploadToDb()) {
        if (mark && isImg) {
          File tempFile = mark(uplFile, conf);
View Full Code Here


    if (errors.hasErrors()) {
      model.addAttribute(ERROR, errors.getErrors().get(0));
      return FrontUtils.getTplPath(request, site.getSolutionPath(),
          TPLDIR_MEMBER, RESULT_PAGE);
    }
    MarkConfig conf = site.getConfig().getMarkConfig();
    if (mark == null) {
      mark = conf.getOn();
    }

    String origName = file.getOriginalFilename();
    String ext = FilenameUtils.getExtension(origName).toLowerCase(
        Locale.ENGLISH);
View Full Code Here

          && !ImageUtils.isImage(uplFile.getInputStream())) {
        return UploadResponse.getInvalidFileTypeError(request);
      }
      String fileUrl;
      CmsSite site = CmsUtils.getSite(request);
      MarkConfig conf = site.getConfig().getMarkConfig();
      if (mark == null) {
        mark = conf.getOn();
      }
      boolean isImg = type.equals(ResourceType.IMAGE);
      if (site.getConfig().getUploadToDb()) {
        if (mark && isImg) {
          File tempFile = mark(uplFile, conf);
View Full Code Here

    if (errors.hasErrors()) {
      model.addAttribute(ERROR, errors.getErrors().get(0));
      return RESULT_PAGE;
    }
    CmsSite site = CmsUtils.getSite(request);
    MarkConfig conf = site.getConfig().getMarkConfig();
    if (mark == null) {
      mark = conf.getOn();
    }

    String origName = file.getOriginalFilename();
    String ext = FilenameUtils.getExtension(origName).toLowerCase(
        Locale.ENGLISH);
View Full Code Here

TOP

Related Classes of com.jeecms.cms.entity.main.MarkConfig

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.