Tabnine Logo
Data.getName
Code IndexAdd Tabnine to your IDE (free)

How to use
getName
method
in
io.cattle.platform.core.model.Data

Best Java code snippets using io.cattle.platform.core.model.Data.getName (Showing top 2 results out of 315)

origin: rancher/cattle

@Override
protected void populatedData(Account system, List<Object> toCreate) {
  List<Data> datas = objectManager.find(Data.class,
      DATA.NAME, new Condition(ConditionType.LIKE, "service.v2.%.cert"));
  for (Data data : datas) {
    String name = data.getName();
    String[] parts = name.split("[.]");
    if (parts.length != 4) {
      continue;
    }
    Long id = null;
    try {
      id = Long.parseLong(parts[2]);
    } catch (NumberFormatException nfe) {
      continue;
    }
    Service service = objectManager.loadResource(Service.class, id);
    if (service == null || service.getRemoved() != null || StringUtils.isBlank(service.getName())) {
      continue;
    }
    String newKey = "service.v3." + service.getAccountId() + "." + service.getName() + ".cert";
    dataDao.getOrCreate(newKey, false, new Callable<String>() {
      @Override
      public String call() throws Exception {
        return data.getValue();
      }
    });
  }
}
origin: rancher/cattle

/**
 * {@inheritDoc}
 */
@Override
public void from(io.cattle.platform.core.model.Data from) {
  setId(from.getId());
  setName(from.getName());
  setVisible(from.getVisible());
  setValue(from.getValue());
}
io.cattle.platform.core.modelDatagetName

Javadoc

Getter for cattle.data.name.

Popular methods of Data

  • getId
    Getter for cattle.data.id.
  • from
    Load data from another generated Record/POJO implementing the common interface Data
  • getValue
    Getter for cattle.data.value.
  • getVisible
    Getter for cattle.data.visible.
  • setVisible
    Setter for cattle.data.visible.

Popular in Java

  • Reactive rest calls using spring rest template
  • notifyDataSetChanged (ArrayAdapter)
  • getResourceAsStream (ClassLoader)
  • runOnUiThread (Activity)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • JCheckBox (javax.swing)
  • Runner (org.openjdk.jmh.runner)
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now