Codota Logo
TagType
Code IndexAdd Codota to your IDE (free)

How to use
TagType
in
cn.lmjia.market.core.entity.support

Best Java code snippets using cn.lmjia.market.core.entity.support.TagType (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: JoleneOL/market-manage

@Override
public TagType[] allTagType() {
  return TagType.values();
}
origin: JoleneOL/market-manage

@Override
public List<Tag> allTagByType(int tagType) {
  return tagRepository.findByTypeAndDisabledFalseOrderByWeightDesc(TagType.values()[tagType]);
}
origin: JoleneOL/market-manage

@PostMapping("/manage/tagList")
@Transactional
public String add(@RequestParam String name, Integer type
    , @RequestParam(required = false, defaultValue = "0") Integer weight, String icon) throws IOException {
  Tag tag = tagRepository.findOne(name);
  if (tag == null) {
    tag = new Tag();
    tag.setName(name);
    tag.setType(TagType.values()[type]);
  }
  tag.setWeight(weight);
  tag = tagRepository.saveAndFlush(tag);
  //转存资源
  if (!StringUtils.isEmpty(icon) && !icon.equalsIgnoreCase(tag.getIcon())) {
    String tagImgResource = "tag/" + tag.getName().hashCode() + "." + FileUtils.fileExtensionName(icon);
    resourceService.moveResource(tagImgResource, icon);
    tag.setIcon(tagImgResource);
  }
  return "redirect:/manageTag";
}
cn.lmjia.market.core.entity.supportTagType

Javadoc

标签类型 Created by helloztt on 2017-09-16.

Most used methods

  • values

Popular in Java

  • Creating JSON documents from java classes using gson
  • setScale (BigDecimal)
  • findViewById (Activity)
  • requestLocationUpdates (LocationManager)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • FileWriter (java.io)
    Convenience class for writing character files. The constructors of this class assume that the defaul
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now