Codota Logo
RESTCategory.getId
Code IndexAdd Codota to your IDE (free)

How to use
getId
method
in
it.geosolutions.geostore.services.rest.model.RESTCategory

Best Java code snippets using it.geosolutions.geostore.services.rest.model.RESTCategory.getId (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: it.geosolutions.geostore/geostore-rest-impl

RESTCategory newrc = resource.getCategory();
Category oldrc = old.getCategory();
if ((newrc.getId() != null && !newrc.getId().equals(oldrc.getId()))
    || (newrc.getName() != null && !newrc.getName().equals(oldrc.getName()))) {
  LOGGER.info("Trying to change category old(" + oldrc.getId() + ":"
      + oldrc.getName() + ") new(" + newrc.getId() + ":" + newrc.getName()
      + ")");
  throw new BadRequestWebEx("Can't change resource category");
origin: it.geosolutions.geostore/geostore-rest-impl

public static Resource convertResource(RESTResource resource) {
  Category category = new Category();
  if (resource.getCategory().getName() != null)
    category.setName(resource.getCategory().getName());
  if (resource.getCategory().getId() != null)
    category.setId(resource.getCategory().getId());
  Resource r = new Resource();
  r.setDescription(resource.getDescription());
  r.setMetadata(resource.getMetadata());
  r.setName(resource.getName());
  r.setCategory(category);
  // Parsing Attributes list
  if (CollectionUtils.isNotEmpty(resource.getAttribute())) {
    List<Attribute> attributes = Convert.convertAttributeList(resource.getAttribute());
    r.setAttribute(attributes);
  }
  RESTStoredData dataDto = resource.getStore();
  if (dataDto != null) {
    StoredData data = new StoredData();
    data.setData(dataDto.getData());
    r.setData(data);
  }
  return r;
}
it.geosolutions.geostore.services.rest.modelRESTCategorygetId

Popular methods of RESTCategory

  • <init>
  • getName
  • setName
  • toString

Popular in Java

  • Running tasks concurrently on multiple threads
  • setContentView (Activity)
  • getContentResolver (Context)
  • onRequestPermissionsResult (Fragment)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • ArrayList (java.util)
    Resizable-array implementation of the List interface. Implements all optional list operations, and p
  • BitSet (java.util)
    This class implements a vector of bits that grows as needed. Each component of the bit set has a boo
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
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