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

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

Best Java code snippets using it.geosolutions.geostore.services.rest.model.RESTCategory (Showing top 5 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.unredd/unredd-geostore-model

public RESTResource createRESTResource() {
  RESTCategory cat = new RESTCategory();
  cat.setName(getCategoryName());
  RESTResource resource = new RESTResource();
  resource.setCategory(cat);
  resource.setAttribute(createShortAttributeList());
  return resource;
}
origin: it.geosolutions.geostore/geostore-rest-api

@Override
public String toString() {
  StringBuilder builder = new StringBuilder();
  builder.append(getClass().getSimpleName()).append('[');
  builder.append("id=").append(id);
  if (name != null)
    builder.append(", name=").append(name);
  if (description != null)
    builder.append(", descr=").append(description);
  if (creation != null)
    builder.append(", created=").append(creation);
  if (lastUpdate != null)
    builder.append(", updated=").append(lastUpdate);
  if (metadata != null)
    builder.append(", meta=").append(metadata);
  if (attribute != null)
    builder.append(", attr=").append(attribute);
  if (store != null)
    builder.append(", store=").append(store.toString());
  if (category != null)
    builder.append(", cat=").append(category.toString());
  builder.append(']');
  return builder.toString();
}
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;
}
origin: it.geosolutions.geostore/geostore-rest-impl

private RESTResource createRESTResource(Resource resource) {
  RESTResource ret = new RESTResource();
  ret.setCategory(new RESTCategory(resource.getCategory().getName()));
  ret.setName(resource.getName());
  ret.setDescription(resource.getDescription());
  ret.setMetadata(resource.getMetadata());
  if (resource.getData() != null)
    ret.setData(resource.getData().getData());
  if (CollectionUtils.isNotEmpty(resource.getAttribute()))
    ret.setAttribute(Convert.convertToShortAttributeList(resource.getAttribute()));
  return ret;
}
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");
it.geosolutions.geostore.services.rest.modelRESTCategory

Most used methods

  • <init>
  • getId
  • getName
  • setName
  • toString

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • startActivity (Activity)
  • findViewById (Activity)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Notification (javax.management)
  • JFileChooser (javax.swing)
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
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