Tabnine Logo
Branch.projectId
Code IndexAdd Tabnine to your IDE (free)

How to use
projectId
method
in
net.nemerosa.ontrack.model.structure.Branch

Best Java code snippets using net.nemerosa.ontrack.model.structure.Branch.projectId (Showing top 4 results out of 315)

origin: net.nemerosa.ontrack/ontrack-service

@Override
public Collection<LoadedBranchTemplateDefinition> getTemplateDefinitions(Project project) {
  return branchTemplateRepository.getTemplateDefinitions().stream()
      .map(btd -> new LoadedBranchTemplateDefinition(
          structureService.getBranch(btd.getBranchId()),
          btd.getTemplateDefinition()
      ))
      .filter(lbtd -> (lbtd.getBranch().projectId() == project.id()))
      .collect(Collectors.toList());
}
origin: net.nemerosa.ontrack/ontrack-it-utils

protected Build doCreateBuild(Branch branch, NameDescription nameDescription, Signature signature) throws Exception {
  return asUser().with(branch.projectId(), BuildCreate.class).call(() -> structureService.newBuild(
      Build.of(
          branch,
          nameDescription,
          signature
      )
  ));
}
origin: net.nemerosa.ontrack/ontrack-it-utils

protected PromotionLevel doCreatePromotionLevel(Branch branch, NameDescription nameDescription) throws Exception {
  return asUser().with(branch.projectId(), PromotionLevelCreate.class).call(() -> structureService.newPromotionLevel(
      PromotionLevel.of(
          branch,
          nameDescription
      )
  ));
}
origin: net.nemerosa.ontrack/ontrack-extension-svn

Branch branch = structureService.getBranch(branchId);
securityService.checkProjectFunction(branch.projectId(), BuildCreate.class);
net.nemerosa.ontrack.model.structureBranchprojectId

Popular methods of Branch

  • getProject
  • getName
  • getId
  • getType
  • id
  • of
  • isDisabled
  • withDisabled
  • getDescription
  • getSignature
  • withId
  • <init>
  • withId,
  • <init>,
  • form,
  • withDescription,
  • withSignature,
  • withType

Popular in Java

  • Making http post requests using okhttp
  • setContentView (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • requestLocationUpdates (LocationManager)
  • String (java.lang)
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • JComboBox (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Top Sublime Text 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