• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java NotInServiceMenu类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.apache.isis.applib.annotation.NotInServiceMenu的典型用法代码示例。如果您正苦于以下问题:Java NotInServiceMenu类的具体用法?Java NotInServiceMenu怎么用?Java NotInServiceMenu使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



NotInServiceMenu类属于org.apache.isis.applib.annotation包,在下文中一共展示了NotInServiceMenu类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: imprimirFactura

import org.apache.isis.applib.annotation.NotInServiceMenu; //导入依赖的package包/类
@NotContributed(NotContributed.As.ASSOCIATION)
@NotInServiceMenu
@ActionSemantics(Of.SAFE)
@MemberOrder(sequence = "10")
public Blob imprimirFactura(final Factura _factura) throws Exception {

	try (PDDocument pdfDocument = cargarPlantilla(_factura)) {

		final ByteArrayOutputStream target = new ByteArrayOutputStream();
		pdfDocument.save(target);

		final String name = "Factura-" + _factura.getNumero() + ".pdf";
		final String mimeType = "application/pdf";
		final byte[] bytes = target.toByteArray();

		return new Blob(name, mimeType, bytes);
	}
}
 
开发者ID:resto-tesis,项目名称:resto-tesis,代码行数:19,代码来源:FacturaServicio.java


示例2: send

import org.apache.isis.applib.annotation.NotInServiceMenu; //导入依赖的package包/类
@NotInServiceMenu
@Named("Enviar Correo")
public String send(final Cliente unCliente, final Oferta unaOferta) {

	try {
		Email email = new SimpleEmail();
		email.setHostName("smtp.gmail.com");
		email.setSmtpPort(465);
		email.setAuthentication("[email protected]", "modica1234");
		email.setSSLOnConnect(true);
		email.setFrom("[email protected]", "Resto Tesis");
		email.setSubject("Ofertas para esta Semana!");
		email.setMsg(printing.ofertaToText(unaOferta));			
		email.addTo(unCliente.getCorreo());
		return email.send();
	} catch (EmailException e) {
		throw new servicio.correo.CorreoException(e.getMessage(), e);
	}
}
 
开发者ID:resto-tesis,项目名称:resto-tesis,代码行数:20,代码来源:CorreoServicio.java


示例3: downloadCustomerConfirmation

import org.apache.isis.applib.annotation.NotInServiceMenu; //导入依赖的package包/类
@NotContributed(NotContributed.As.ASSOCIATION) // ie contributed as action
@NotInServiceMenu
@ActionSemantics(Of.SAFE)
@MemberOrder(sequence = "10")
public Blob downloadCustomerConfirmation(
        final Order order) throws Exception {

    try (PDDocument pdfDocument = loadAndPopulateTemplate(order)) {

        final ByteArrayOutputStream target = new ByteArrayOutputStream();
        pdfDocument.save(target);

        final String name = "customerConfirmation-" + order.getNumber() + ".pdf";
        final String mimeType = "application/pdf";
        final byte[] bytes = target.toByteArray();

        return new Blob(name, mimeType, bytes);
    }
}
 
开发者ID:martin-g,项目名称:isis-module-pdf,代码行数:20,代码来源:CustomerConfirmation.java


示例4: recentChanges

import org.apache.isis.applib.annotation.NotInServiceMenu; //导入依赖的package包/类
/**
 * Depending on which services are available, returns either a list of {@link CommandJdo command}s that have 
 * caused a change in the domain object or a list of {@link AuditEntryJdo audit entries} capturing the 'effect' 
 * of that change.
 * 
 * <p>
 * If {@link CommandJdo command}s are returned, then the corresponding {@link AuditEntryJdo audit entries} are
 * available from each command.
 */
@NotInServiceMenu
@ActionSemantics(Of.SAFE)
@MemberOrder(sequence="30")
public List<? extends DomainChangeJdoAbstract> recentChanges (
        final Object targetDomainObject,
        final @Optional @Named("From") LocalDate from,
        final @Optional @Named("To") LocalDate to) {
    final Bookmark targetBookmark = bookmarkService.bookmarkFor(targetDomainObject);
    final List<DomainChangeJdoAbstract> changes = Lists.newArrayList();
    if(commandServiceRepository != null) {
        changes.addAll(commandServiceRepository.findByTargetAndFromAndTo(targetBookmark, from, to));
    } 
    if(publishingServiceRepository != null) {
        changes.addAll(publishingServiceRepository.findByTargetAndFromAndTo(targetBookmark, from, to));
    }
    changes.addAll(auditingServiceRepository.findByTargetAndFromAndTo(targetBookmark, from, to));
    Collections.sort(changes, DomainChangeJdoAbstract.compareByTimestampDescThenType());
    return changes;
}
 
开发者ID:IUSISProyecto,项目名称:IUSIS,代码行数:29,代码来源:AdminContributions.java


示例5: ofertaToText

import org.apache.isis.applib.annotation.NotInServiceMenu; //导入依赖的package包/类
@NotInServiceMenu
public String ofertaToText(Oferta unaOferta) {
	String encabezado = "##############Ofertas##############\n\nNombre: ";
	encabezado += unaOferta.getNombre() + "\n";
	encabezado += "Oferta valida desde: "
			+ unaOferta.getFechaInicio().toString() + " hasta: "
			+ unaOferta.getCaducidad().toString() + "\n"
			+ "Cantidad de Comensales: "
			+ String.valueOf(unaOferta.getCantidadPersonas()) + "\n"
			+ "Descuento: " + String.valueOf(unaOferta.getDescuento())
			+ "%\n" + "Precio Final: $"
			+ new DecimalFormat("#.00").format(unaOferta.getPrecioFinal())
			+ "\n" + "Menu: " + unaOferta.getMenu().getNombre() + "\n";
	String cuerpoMenu = "";
	if (unaOferta.getMenu().getPlatoEntrada() != null) {
		cuerpoMenu = "Plato de Entrada: "
				+ unaOferta.getMenu().getPlatoEntrada().getNombre() + "\n";
	}
	cuerpoMenu += "Plato Principal: "
			+ unaOferta.getMenu().getPlatoPrincipal().getNombre() + "\n";
	if (unaOferta.getMenu().getGuarnicion() != null) {
		cuerpoMenu += "Guarnicion: "
				+ unaOferta.getMenu().getGuarnicion().getNombre() + "\n";
	}

	if (unaOferta.getMenu().getPostre() != null) {
		cuerpoMenu += "Postre: "
				+ unaOferta.getMenu().getPostre().getNombre() + "\n";
	}
	return encabezado + cuerpoMenu;
}
 
开发者ID:resto-tesis,项目名称:resto-tesis,代码行数:32,代码来源:OfertaPrinting.java


示例6: maintainServiceCharges

import org.apache.isis.applib.annotation.NotInServiceMenu; //导入依赖的package包/类
@NotContributed(As.ASSOCIATION)
// ie *is* contributed as action
@NotInServiceMenu
public LeaseTermForServiceChargeBudgetAuditManager maintainServiceCharges(
        final Property property,
        final List<LeaseItemType> leaseItemTypes,
        @Named("Start date") final LocalDate startDate) {
    return new LeaseTermForServiceChargeBudgetAuditManager(property, leaseItemTypes, startDate);
}
 
开发者ID:estatio,项目名称:estatio,代码行数:10,代码来源:LeaseTermForServiceChargeBudgetAuditService.java


示例7: maintainTurnoverRent

import org.apache.isis.applib.annotation.NotInServiceMenu; //导入依赖的package包/类
@NotContributed(As.ASSOCIATION)
// ie *is* contributed as action
@NotInServiceMenu
public LeaseTermForTurnoverRentManager maintainTurnoverRent(
        final Property property,
        @Named("Start date") final LocalDate startDate) {
    return new LeaseTermForTurnoverRentManager(property, startDate);
}
 
开发者ID:estatio,项目名称:estatio,代码行数:9,代码来源:LeaseTermForTurnoverRentService.java


示例8: similarTo

import org.apache.isis.applib.annotation.NotInServiceMenu; //导入依赖的package包/类
@NotInServiceMenu
@ActionSemantics(Of.SAFE)
@MemberOrder(sequence = "5")
public List<ToDoItem> similarTo(final ToDoItem toDoItem) {
    return allMatches(ToDoItem.class, new Filter<ToDoItem>() {
        @Override
        public boolean accept(ToDoItem t) {
            return t != toDoItem && Objects.equal(toDoItem.getCategory(), t.getCategory()) && Objects.equal(toDoItem.getOwnedBy(), t.getOwnedBy());
        }
    });
}
 
开发者ID:bhargavgolla,项目名称:isisJavaScript,代码行数:12,代码来源:ToDoItems.java


示例9: findByTag

import org.apache.isis.applib.annotation.NotInServiceMenu; //导入依赖的package包/类
@NotInServiceMenu
public List<ConferenceSession> findByTag(Tag tag) {
    return allMatches(new QueryDefault<ConferenceSession>(
            ConferenceSession.class, "findByTag", "tag", tag));
}
 
开发者ID:danhaywood,项目名称:rrraddd-isis-131,代码行数:6,代码来源:ConferenceSessions.java



注:本文中的org.apache.isis.applib.annotation.NotInServiceMenu类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java LocatorTransformer类代码示例发布时间:2022-05-22
下一篇:
Java WrapperTemplateModel类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap