use of org.apache.isis.applib.annotation.MemberOrder in project estatio by estatio.
the class EstatioFixtureScripts method createRetroInvoicesForLease.
@Action(restrictTo = RestrictTo.PROTOTYPING)
@ActionLayout(cssClassFa = "fa-bolt")
@MemberOrder(sequence = "3")
public List<FixtureResult> createRetroInvoicesForLease(final Lease lease, @ParameterLayout(named = "Start due date") final LocalDate startDueDate, @ParameterLayout(named = "Nextdue date") final LocalDate nextDueDate) {
final CreateRetroInvoices creator = container.newTransientInstance(CreateRetroInvoices.class);
final FixtureScript.ExecutionContext executionContext = fixtureScripts.newExecutionContext(null);
creator.createLease(lease, startDueDate, nextDueDate, executionContext);
return executionContext.getResults();
}
use of org.apache.isis.applib.annotation.MemberOrder in project estatio by estatio.
the class BreakOption method changeDates.
@MemberOrder(name = "breakDate", sequence = "1")
public BreakOption changeDates(final LocalDate breakDate, final LocalDate excerciseDate) {
setBreakDate(breakDate);
setExerciseDate(excerciseDate);
LocalDateInterval ldi = new LocalDateInterval(excerciseDate, breakDate, AbstractInterval.IntervalEnding.EXCLUDING_END_DATE);
final String s = JodaPeriodUtils.asSimpleString(new Period(ldi.asInterval(), PeriodType.yearMonthDay()));
setNotificationPeriod(s);
// re-create events
removeExistingEvents();
createEvents();
return this;
}
use of org.apache.isis.applib.annotation.MemberOrder in project estatio by estatio.
the class BreakOption method changeNotificationPeriod.
@MemberOrder(name = "notificationPeriod", sequence = "1")
public BreakOption changeNotificationPeriod(final String notificationPeriod) {
final Period p = JodaPeriodUtils.asPeriod(notificationPeriod);
setExerciseDate(getBreakDate().minus(p));
setNotificationPeriod(notificationPeriod);
// re-create events
removeExistingEvents();
createEvents();
return this;
}
use of org.apache.isis.applib.annotation.MemberOrder in project estatio by estatio.
the class T_createAndAttachDocumentAndRender method $$.
@Action(domainEvent = ActionDomainEvent.class, semantics = SemanticsOf.NON_IDEMPOTENT)
@ActionLayout(contributed = Contributed.AS_ACTION)
@MemberOrder(name = "documents", sequence = "3.1")
public Object $$(final DocumentTemplate template) throws IOException {
final Document document = documentCreatorService.createDocumentAndAttachPaperclips(domainObject, template);
render(template, document);
return document;
}
Aggregations