congrats Icon
New! Announcing our next generation AI code completions
Read here
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

  • Making http post requests using okhttp
  • compareTo (BigDecimal)
  • getContentResolver (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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