congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
NameDescription.getDescription
Code IndexAdd Tabnine to your IDE (free)

How to use
getDescription
method
in
net.nemerosa.ontrack.model.structure.NameDescription

Best Java code snippets using net.nemerosa.ontrack.model.structure.NameDescription.getDescription (Showing top 16 results out of 315)

origin: net.nemerosa.ontrack/ontrack-model

  public Build update(NameDescription nameDescription) {
    return new Build(
        id,
        nameDescription.getName(),
        nameDescription.getDescription(),
        signature,
        branch
    );
  }
}
origin: net.nemerosa.ontrack/ontrack-model

  public PredefinedValidationStamp update(NameDescription nameDescription) {
    return new PredefinedValidationStamp(
        id,
        nameDescription.getName(),
        nameDescription.getDescription(),
        image,
        dataType
    );
  }
}
origin: net.nemerosa.ontrack/ontrack-model

  public PromotionLevel update(NameDescription nameDescription) {
    return new PromotionLevel(
        id,
        nameDescription.getName(),
        nameDescription.getDescription(),
        branch,
        image,
        signature
    );
  }
}
origin: net.nemerosa.ontrack/ontrack-model

  public PredefinedPromotionLevel update(NameDescription nameDescription) {
    return new PredefinedPromotionLevel(
        id,
        nameDescription.getName(),
        nameDescription.getDescription(),
        image
    );
  }
}
origin: net.nemerosa.ontrack/ontrack-model

  public ValidationStamp update(NameDescription nameDescription) {
    return new ValidationStamp(
        id,
        nameDescription.getName(),
        nameDescription.getDescription(),
        branch,
        owner,
        image,
        signature,
        dataType
    );
  }
}
origin: net.nemerosa.ontrack/ontrack-model

public static Build of(Branch branch, NameDescription nameDescription, Signature signature) {
  return new Build(
      ID.NONE,
      nameDescription.getName(),
      nameDescription.getDescription(),
      signature,
      branch
  );
}
origin: net.nemerosa.ontrack/ontrack-model

public static PredefinedValidationStamp of(NameDescription nameDescription) {
  return new PredefinedValidationStamp(ID.NONE, nameDescription.getName(), nameDescription.getDescription(), false, null);
}
origin: net.nemerosa.ontrack/ontrack-model

public static PredefinedPromotionLevel of(NameDescription nameDescription) {
  return new PredefinedPromotionLevel(ID.NONE, nameDescription.getName(), nameDescription.getDescription(), false);
}
origin: net.nemerosa.ontrack/ontrack-model

public AccountGroup update(NameDescription input) {
  checkLock();
  return new AccountGroup(
      id,
      input.getName(),
      input.getDescription(),
      authorisations,
      locked
  );
}
origin: net.nemerosa.ontrack/ontrack-model

public static Project of(NameDescription nameDescription) {
  return new Project(ID.NONE, nameDescription.getName(), nameDescription.getDescription(), false,
      Signature.none());
}
origin: net.nemerosa.ontrack/ontrack-service

  @Override
  public List<ApplicationInfo> getApplicationInfoList() {
    if (securityService.isGlobalFunctionGranted(ApplicationManagement.class)) {
      return logService.getLogEntries(
          new ApplicationLogEntryFilter().withLevel(ApplicationLogEntryLevel.FATAL),
          new Page(0, configProperties.getApplicationLogInfoMax())
      )
          .stream()
          .map(lge -> ApplicationInfo.error(
              lge.getType().getDescription()
          ))
          .collect(Collectors.toList());
    } else {
      return Collections.emptyList();
    }
  }
}
origin: net.nemerosa.ontrack/ontrack-service

@Override
public AccountGroup createGroup(NameDescription nameDescription) {
  securityService.checkGlobalFunction(AccountGroupManagement.class);
  // Creates the account group
  AccountGroup group = AccountGroup.of(nameDescription.getName(), nameDescription.getDescription());
  // Saves it
  return accountGroupRepository.newAccountGroup(group);
}
origin: net.nemerosa.ontrack/ontrack-service

private synchronized void doLog(ApplicationLogEntry entry) {
  // Logging
  logger.error(
      String.format(
          "[%s] name=%s,authentication=%s,timestamp=%s,%s%nStacktrace: %s",
          entry.getLevel(),
          entry.getType().getName(),
          entry.getAuthentication(),
          Time.forStorage(entry.getTimestamp()),
          entry.getDetailList().stream()
              .map(nd -> String.format("%s=%s", nd.getName(), nd.getDescription()))
              .collect(Collectors.joining(",")),
          entry.getStacktrace()
      )
  );
  // Storing in database
  entriesRepository.log(entry);
  // Metrics
  meterRegistry.counter(
      "ontrack_error",
      "type", entry.getType().getName()
  ).increment();
}
origin: net.nemerosa.ontrack/ontrack-model

public static PromotionLevel of(Branch branch, NameDescription nameDescription) {
  Entity.isEntityDefined(branch, "Branch must be defined");
  Entity.isEntityDefined(branch.getProject(), "Project must be defined");
  return new PromotionLevel(ID.NONE, nameDescription.getName(), nameDescription.getDescription(), branch, false,
      Signature.none()
  );
}
origin: net.nemerosa.ontrack/ontrack-model

public static ValidationStamp of(Branch branch, NameDescription nameDescription) {
  Entity.isEntityDefined(branch, "Branch must be defined");
  Entity.isEntityDefined(branch.getProject(), "Project must be defined");
  return new ValidationStamp(
      ID.NONE,
      nameDescription.getName(),
      nameDescription.getDescription(),
      branch,
      null,
      false,
      Signature.none(),
      null
  );
}
origin: net.nemerosa.ontrack/ontrack-repository-impl

@Override
public void log(ApplicationLogEntry entry) {
  getNamedParameterJdbcTemplate().update(
      "INSERT INTO APPLICATION_LOG_ENTRIES(LEVEL, TIMESTAMP, AUTHENTICATION," +
          "NAME, DESCRIPTION, INFORMATION, EXCEPTION, DETAILS) VALUES (" +
          ":level, :timestamp, :authentication, " +
          ":name, :description, :information, :exception, :details" +
          ")",
      params("level", entry.getLevel().name())
          .addValue("timestamp", dateTimeForDB(entry.getTimestamp()))
          .addValue("authentication", entry.getAuthentication())
          .addValue("name", entry.getType().getName())
          .addValue("description", entry.getType().getDescription())
          .addValue("information", entry.getInformation())
          .addValue("exception", entry.getStacktrace())
          .addValue("details", getDetailsAsJson(entry.getDetails()))
  );
}
net.nemerosa.ontrack.model.structureNameDescriptiongetDescription

Popular methods of NameDescription

  • nd
    Simple builder
  • <init>
  • getName
  • asState
  • escapeName
    Makes sure the given name is escaped properly before being used as a valid name.

Popular in Java

  • Reading from database using SQL prepared statement
  • getSharedPreferences (Context)
  • setScale (BigDecimal)
  • addToBackStack (FragmentTransaction)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top plugins for Android Studio
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