Tabnine Logo
Project$Builder
Code IndexAdd Tabnine to your IDE (free)

How to use
Project$Builder
in
it.tidalwave.accounting.model

Best Java code snippets using it.tidalwave.accounting.model.Project$Builder (Showing top 5 results out of 315)

origin: it.tidalwave.accounting/it-tidalwave-accounting-marshalling-xml

 public void fill (final @Nonnull Accounting accounting) 
  {
   final CustomerRegistry customerRegistry = accounting.getCustomerRegistry();
   final ProjectRegistry projectRegistry = accounting.getProjectRegistry();
   final InvoiceRegistry invoiceRegistry = accounting.getInvoiceRegistry();
   customersXml.forEach(customer -> customerRegistry.addCustomer().with(customer.toBuilder()).create());
   projectsXml.forEach(project -> projectRegistry.addProject().with(project.toBuilder(accounting)).create());
   invoicesxml.forEach(invoice -> invoiceRegistry.addInvoice().with(invoice.toBuilder(accounting)).create());
  }
}
origin: it.tidalwave.accounting/it-tidalwave-accounting-marshalling-xml

 @Nonnull
 public Project.Builder toBuilder (final @Nonnull Accounting accounting)
  {
   try 
    {
     final Customer customer = accounting.getCustomerRegistry().findCustomers().withId(customerXml.getId()).result();
     return new Project.Builder().withId(id)
                   .withCustomer(customer) 
                   .withName(name)
                   .withNumber(number)
                   .withDescription(description)
                   .withNotes(notes)
                   .withStatus(status)
                   .withHourlyRate(hourlyRate)
                   .withBudget(budget)
                   .withStartDate(startDate)
                   .withEndDate(endDate)
                   .withEvents(JobEventXml.toJobEvents(jobEventsXml));
    } 
   catch (NotFoundException e) 
    {
     throw new RuntimeException(e);
    }
  }
}
origin: it.tidalwave.accounting/it-tidalwave-accounting-model

      .withId(new Id("" + nextId++))
      .withCustomer(acmeConsulting)
      .withDescription("Acme Consulting Project 1")
      .withName("Acme Consulting Project 1")
      .withStartDate(project1StartDate)
      .withEndDate(project1EndDate)
      .withNumber("PRJ ACME-1")
      .withEvents(je1)
      .withHourlyRate(rate1)
      .withBudget(new Money(123456, "EUR"))
      .create();
final Project acmeConsultingProject2 =
    projectRegistry.addProject()
      .withId(new Id("" + nextId++))
      .withCustomer(acmeConsulting)
      .withDescription("Acme Consulting Project 2")
      .withName("Acme Consulting Project 2")
      .withStartDate(project2StartDate)
      .withEndDate(project2EndDate)
      .withNumber("PRJ ACME-2")
      .withEvents(je2)
      .withHourlyRate(rate2)
      .withBudget(new Money(234567, "EUR"))
      .create();
final Project acmeFinancingProject1 =
    projectRegistry.addProject()
      .withId(new Id("" + nextId++))
      .withCustomer(acmeFinancing)
      .withDescription("Acme Financing Project 1")
origin: it.tidalwave.accounting/it-tidalwave-accounting-importer-ibiz

projectRegistry.addProject().withId(projectConfig.getId("uniqueIdentifier"))
              .withBudget(projectConfig.getMoney("projectEstimate"))
              .withCustomer(customer)
              .withName(projectConfig.getString("projectName"))
              .withStartDate(projectConfig.getDate("projectStartDate"))
              .withEndDate(projectConfig.getDate("projectDueDate"))
              .withNotes(projectConfig.getString("projectNotes"))
              .withNumber(projectConfig.getString("projectNumber"))
              .withStatus(status.getMappedStatus())
              .withHourlyRate(getHourlyRate(projectConfig, jobEvents))
              .withEvents(jobEvents)
              .create();
origin: it.tidalwave.accounting/it-tidalwave-accounting-model-impl-inmemory

                   .withBillingAddress(a1)
                   .create();
final Project p = Project.builder().withId(new Id("2"))
                  .withBudget(new Money(10500, "EUR"))
                  .withCustomer(c1)
                  .withName("Project 1")
                  .withDescription("description of project 1")
                  .withStartDate(parseDate("2014-01-03"))
                  .withEndDate(parseDate("2014-02-12"))
                  .withNotes("Notes for project 1")
                  .withNumber("1")
                  .withHourlyRate(new Money(43, "EUR"))
                  .create();
assertThat(p.toString(), is("InMemoryProject(id=2, customer=InMemoryCustomer(id=1, name=Acme Corp., billingAddress="
             + "Address(street=Foo Bar rd 20, city=San Francisco, state=CA, country=USA, zip=12345), "
it.tidalwave.accounting.modelProject$Builder

Most used methods

  • create
  • withBudget
  • withCustomer
  • withEndDate
  • withHourlyRate
  • withId
  • withName
  • withNumber
  • withStartDate
  • withDescription
  • withEvents
  • withNotes
  • withEvents,
  • withNotes,
  • <init>,
  • withStatus,
  • getBudget,
  • getCustomer,
  • getDescription,
  • getEndDate,
  • getHourlyRate,
  • getId

Popular in Java

  • Finding current android device location
  • setRequestProperty (URLConnection)
  • getSystemService (Context)
  • requestLocationUpdates (LocationManager)
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Permission (java.security)
    Legacy security code; do not use.
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JList (javax.swing)
  • Top Vim 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