本文整理汇总了Java中org.apache.isis.applib.annotation.SemanticsOf类的典型用法代码示例。如果您正苦于以下问题:Java SemanticsOf类的具体用法?Java SemanticsOf怎么用?Java SemanticsOf使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
SemanticsOf类属于org.apache.isis.applib.annotation包,在下文中一共展示了SemanticsOf类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: buscarPorTipoDePagoCombo
import org.apache.isis.applib.annotation.SemanticsOf; //导入依赖的package包/类
@SuppressWarnings("rawtypes")
@Action(semantics = SemanticsOf.SAFE)
@ActionLayout(bookmarking = BookmarkPolicy.AS_ROOT, cssClassFa = "fa-search", hidden = Where.EVERYWHERE)
@MemberOrder(sequence = "6")
public List buscarPorTipoDePagoCombo(@ParameterLayout(named = "Tipo de Pago") final TipoPago polizaTipoDePago) {
if (polizaTipoDePago == TipoPago.Tarjeta_De_Credito) {
return tarjetaDeCreditoRepository.listarActivos();
} else {
if (polizaTipoDePago == TipoPago.Debito_Automatico) {
return debitoAutomaticoRepository.listarActivos();
}
}
return null;
}
示例2: switchTenancy
import org.apache.isis.applib.annotation.SemanticsOf; //导入依赖的package包/类
@Action(
semantics = SemanticsOf.IDEMPOTENT
)
@ActionLayout(
cssClassFa = "fa-exchange"
)
public HomePageViewModel switchTenancy(final ApplicationTenancy applicationTenancy) {
final ApplicationUser applicationUser = meService.me();
applicationUser.updateTenancy(applicationTenancy);
return homePageService.homePage();
}
示例3: removeSkill
import org.apache.isis.applib.annotation.SemanticsOf; //导入依赖的package包/类
@Action(
semantics = SemanticsOf.NON_IDEMPOTENT_ARE_YOU_SURE
)
public ShiftType removeSkill(Skill skill) {
getSkills().remove(skill);
return this;
}
示例4: findByName
import org.apache.isis.applib.annotation.SemanticsOf; //导入依赖的package包/类
@Action(semantics = SemanticsOf.SAFE)
@ActionLayout(bookmarking = BookmarkPolicy.AS_ROOT)
@MemberOrder(sequence = "2")
public List<Employee> findByName(
@ParameterLayout(named="Name")
final String name
) {
return employeeRepository.findByName(name);
}
示例5: actualizarPolizaNumero
import org.apache.isis.applib.annotation.SemanticsOf; //导入依赖的package包/类
@Action(semantics = SemanticsOf.NON_IDEMPOTENT_ARE_YOU_SURE)
// Actualizar PolizaNumero
public PolizaCombinadoFamiliar actualizarPolizaNumero(
@ParameterLayout(named = "Numero") final String polizaNumero) {
setPolizaNumero(polizaNumero);
return this;
}
示例6: homePage
import org.apache.isis.applib.annotation.SemanticsOf; //导入依赖的package包/类
@Action(
semantics = SemanticsOf.SAFE
)
@HomePage
public HomePageViewModel homePage() {
List<Poliza> listPolizas = polizaRepository.listar();
for (int i = 0; i < listPolizas.size(); i++) {
listPolizas.get(i).actualizarPoliza();
}
List<Mail> mail = mailRepository.listar();
clientesPorCumpleaños.enviarMailCumpleaños();
return serviceRegistry.injectServicesInto(new HomePageViewModel());
}
示例7: ordenar
import org.apache.isis.applib.annotation.SemanticsOf; //导入依赖的package包/类
@Action(semantics = SemanticsOf.SAFE, restrictTo = RestrictTo.PROTOTYPING)
@ActionLayout(cssClassFa = "fa-birthday-cake", named = "Cumpleaños Clientes")
public List<ClientesCumpleañosViewModel> cumpleaños() {
final List<Cliente> clientes = clienteRepository.listarActivos();
Iterator<Cliente> it = clientes.iterator();
while (it.hasNext()) {
Cliente item = it.next();
if (item.getClienteFechaNacimiento() == null)
it.remove();
}
List<ClientesCumpleañosViewModel> listaClientes = Lists.newArrayList(Iterables.transform(clientes, ordenar()));
Collections.sort(listaClientes);
return listaClientes;
}
示例8: actualizarPolizaNumero
import org.apache.isis.applib.annotation.SemanticsOf; //导入依赖的package包/类
@Action(semantics = SemanticsOf.NON_IDEMPOTENT_ARE_YOU_SURE)
// Actualizar PolizaNumero
public PolizaRCP actualizarPolizaNumero(@ParameterLayout(named = "Numero") final String polizaNumero) {
setPolizaNumero(polizaNumero);
return this;
}
示例9: listar
import org.apache.isis.applib.annotation.SemanticsOf; //导入依赖的package包/类
@Action(semantics = SemanticsOf.SAFE)
@ActionLayout(bookmarking = BookmarkPolicy.AS_ROOT, named = "Listar Polizas RCP")
@MemberOrder(sequence = "110")
public List<PolizaRCP> listar() {
List<PolizaRCP> listaPolizaRiesgosRCP = polizasRepository.listar();
for (int i = 0; i < listaPolizaRiesgosRCP.size(); i++) {
listaPolizaRiesgosRCP.get(i).actualizarPoliza();
}
return listaPolizaRiesgosRCP;
}
示例10: buscarPorNombre
import org.apache.isis.applib.annotation.SemanticsOf; //导入依赖的package包/类
@Action(semantics = SemanticsOf.SAFE)
@ActionLayout(bookmarking = BookmarkPolicy.AS_ROOT, named = "Buscar Marca")
@MemberOrder(sequence = "5")
public List<Marca> buscarPorNombre(@ParameterLayout(named = "Nombre") final String marcaNombre) {
return marcasRepository.buscarPorNombre(marcaNombre);
}
示例11: listar
import org.apache.isis.applib.annotation.SemanticsOf; //导入依赖的package包/类
@Action(semantics = SemanticsOf.SAFE)
@ActionLayout(bookmarking = BookmarkPolicy.AS_ROOT, named = "Listar Poliza Integral Comercio")
@MemberOrder(sequence = "30")
public List<PolizaIntegralComercio> listar() {
List<PolizaIntegralComercio> listaPolizasRiesgoIntegralComercio = polizasRepository.listar();
for (int i = 0; i < listaPolizasRiesgoIntegralComercio.size(); i++) {
listaPolizasRiesgoIntegralComercio.get(i).actualizarPoliza();
}
return listaPolizasRiesgoIntegralComercio;
}
示例12: listar
import org.apache.isis.applib.annotation.SemanticsOf; //导入依赖的package包/类
@Action(semantics = SemanticsOf.SAFE)
@ActionLayout(bookmarking = BookmarkPolicy.AS_ROOT, named="Listar Polizas LCT")
@MemberOrder(sequence = "90")
public List<PolizaLCT> listar() {
List<PolizaLCT> listaPolizaRiesgoLCT = polizasRepository.listar();
for(int i=0; i< listaPolizaRiesgoLCT.size(); i++) {
listaPolizaRiesgoLCT.get(i).actualizarPoliza();
}
return listaPolizaRiesgoLCT;
}
示例13: borrarTipoTarjeta
import org.apache.isis.applib.annotation.SemanticsOf; //导入依赖的package包/类
@Action(
semantics = SemanticsOf.NON_IDEMPOTENT_ARE_YOU_SURE
)
public void borrarTipoTarjeta() {
final String title = titleService.titleOf(this);
messageService.informUser(String.format("'%s' deleted", title));
setTipoTarjetaActivo(false);
}
示例14: listar
import org.apache.isis.applib.annotation.SemanticsOf; //导入依赖的package包/类
@Action(semantics = SemanticsOf.SAFE)
@ActionLayout(bookmarking = BookmarkPolicy.AS_ROOT, named = "Listar Polizas Auto")
@MemberOrder(sequence = "10.1")
public List<PolizaAutomotor> listar() {
List<PolizaAutomotor> listaPolizasRiesgoAutomotores = riesgoAutomotorRepository.listar();
for (int i = 0; i < listaPolizasRiesgoAutomotores.size(); i++) {
listaPolizasRiesgoAutomotores.get(i).actualizarPoliza();
}
return listaPolizasRiesgoAutomotores;
}
示例15: listar
import org.apache.isis.applib.annotation.SemanticsOf; //导入依赖的package包/类
@Action(semantics = SemanticsOf.SAFE)
@ActionLayout(bookmarking = BookmarkPolicy.AS_ROOT, named = "Listar Polizas TRO")
@MemberOrder(sequence = "120")
public List<PolizaTRO> listar() {
List<PolizaTRO> listaPolizaRiesgosTRO = polizasRepository.listar();
for (int i = 0; i < listaPolizaRiesgosTRO.size(); i++) {
listaPolizaRiesgosTRO.get(i).actualizarPoliza();
}
return listaPolizaRiesgosTRO;
}