Codota Logo
Data.getName
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
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

  • Reading from database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • runOnUiThread (Activity)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
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