Skip to content

Instantly share code, notes, and snippets.

@gastonprieto
Created April 7, 2014 23:03
Show Gist options
  • Save gastonprieto/10071510 to your computer and use it in GitHub Desktop.
Save gastonprieto/10071510 to your computer and use it in GitHub Desktop.
type_test.java
/**
* chequea que el usuario tenga el permiso para modificar el tipo
* de movimiento indicado
*/
private void authModificacionPorTM(final Movimiento aj) {
if (COBRANZA_APERTURA.esTipoDe(aj)) {
authz(MODIFICACION_APERTURA_COBRANZA);
} else if (COBRANZA_IMPUTACION.esTipoDe(aj)) {
authz(MODIFICACION_CAMBIO_IMPUT_COBRANZA);
} else if (COBRANZA_DIRECTO.esTipoDe(aj)) {
authz(MODIFICACION_AJUSTE_DIRECTO_COBRANZA);
} else if (DEPOSITO_APERTURA.esTipoDe(aj)) {
authz(MODIFICACION_APERTURA_DEPOSITO);
} else if (DEPOSITO_IMPUTACION.esTipoDe(aj)) {
authz(MODIFICACION_CAMBIO_IMPUT_DEPOSITO);
} else if (DEPOSITO_DIRECTO.esTipoDe(aj)) {
authz(MODIFICACION_AJUSTE_DIRECTO_DEPOSITO);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment