Package com.centraview.common

Examples of com.centraview.common.AuthorizationFailedException


  public ExpenseVO createExpense(ExpenseVO expenseVO, int userID)
      throws AuthorizationFailedException
  {
    if (!CVUtility.isModuleVisible("Expense", userID, this.dataSource))
      throw new AuthorizationFailedException("Expense- createExpense");
    try {
      InitialContext ic = CVUtility.getInitialContext();
      ExpenseLocalHome home = (ExpenseLocalHome) ic.lookup("local/Expense");
      ExpenseLocal expense = home.create(expenseVO, userID, this.dataSource);
      expense.setDataSource(this.dataSource);
View Full Code Here


  public void deleteExpense(int expenseID, int userID) throws NamingException,
      AuthorizationFailedException
  {
    if (!CVUtility.isModuleVisible("Expense", userID, this.dataSource))
      throw new AuthorizationFailedException("Expense- deleteExpense");
    try {
      InitialContext ic = CVUtility.getInitialContext();
      ExpenseLocalHome home = (ExpenseLocalHome) ic.lookup("local/Expense");
      ExpenseLocal expense = home.findByPrimaryKey(new ExpensePK(expenseID, this.dataSource));
      expense.setDataSource(this.dataSource);
View Full Code Here

  }

  public ExpenseVO getExpenseVO(int expenseID, int userID) throws AuthorizationFailedException
  {
    if (!CVUtility.isModuleVisible("Expense", userID, this.dataSource))
      throw new AuthorizationFailedException("Expense- getExpense");
    ExpenseVO expenseVO = null;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      ExpenseLocalHome home = (ExpenseLocalHome) ic.lookup("local/Expense");
      ExpenseLocal expense = home.findByPrimaryKey(new ExpensePK(expenseID, this.dataSource));
View Full Code Here

  }

  public void updateExpense(ExpenseVO expenseVO, int userID) throws AuthorizationFailedException
  {
    if (!CVUtility.isModuleVisible("Expense", userID, this.dataSource))
      throw new AuthorizationFailedException("Expense- updateExpense");
    try {
      InitialContext ic = CVUtility.getInitialContext();
      ExpenseLocalHome home = (ExpenseLocalHome) ic.lookup("local/Expense");
      ExpenseLocal expense = home.findByPrimaryKey(new ExpensePK(expenseVO.getExpenseID(),
          this.dataSource));
View Full Code Here

  public PaymentVO createPayment(PaymentVO paymentVO, int userID)
      throws AuthorizationFailedException
  {
    if (!CVUtility.isModuleVisible("Payment", userID, this.dataSource))
      throw new AuthorizationFailedException("Payment- createPayment");
    try {
      InitialContext ic = CVUtility.getInitialContext();
      PaymentLocalHome home = (PaymentLocalHome) ic.lookup("local/Payment");
      PaymentLocal payment = home.create(paymentVO, userID, this.dataSource);
      payment.setDataSource(this.dataSource);
View Full Code Here

  public void deletePayment(int paymentID, int userID) throws NamingException,
      AuthorizationFailedException
  {
    if (!CVUtility.isModuleVisible("Payment", userID, this.dataSource))
      throw new AuthorizationFailedException("Payment- deletePayment");
    try {
      InitialContext ic = CVUtility.getInitialContext();
      PaymentLocalHome home = (PaymentLocalHome) ic.lookup("local/Payment");
      PaymentLocal payment = home.findByPrimaryKey(new PaymentPK(paymentID, this.dataSource));
      payment.setDataSource(this.dataSource);
View Full Code Here

  }

  public PaymentVO getPaymentVO(int paymentID, int userID) throws AuthorizationFailedException
  {
    if (!CVUtility.isModuleVisible("Payment", userID, this.dataSource))
      throw new AuthorizationFailedException("Payment- getPaymentVO");
    PaymentVO paymentVO = null;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      PaymentLocalHome home = (PaymentLocalHome) ic.lookup("local/Payment");
      PaymentLocal payment = home.findByPrimaryKey(new PaymentPK(paymentID, this.dataSource));
View Full Code Here

  }

  public void updatePayment(PaymentVO paymentVO, int userID) throws AuthorizationFailedException
  {
    if (!CVUtility.isModuleVisible("Payment", userID, this.dataSource))
      throw new AuthorizationFailedException("Payment- updatePayment");
    try {
      InitialContext ic = CVUtility.getInitialContext();
      PaymentLocalHome home = (PaymentLocalHome) ic.lookup("local/Payment");
      PaymentLocal payment = home.findByPrimaryKey(new PaymentPK(paymentVO.getPaymentID(),
          this.dataSource));
View Full Code Here

   * Thismethod returns EventList from local Bean
   */
  public EventList getEventList(int userId, HashMap preference) throws AuthorizationFailedException
  {
    if (!CVUtility.isModuleVisible("ListManager", userId, this.dataSource))
      throw new AuthorizationFailedException("ListManager - getEventList");

    Integer startATparam = (Integer)preference.get("startATparam");
    Integer EndAtparam = (Integer)preference.get("EndAtparam");
    String searchString = (String)preference.get("searchString");
    String sortmem = (String)preference.get("sortmem");
View Full Code Here

   */
  public PromotionList getPromotionList(int userId, HashMap preference)
      throws AuthorizationFailedException
  {
    if (!CVUtility.isModuleVisible("Promotion", userId, this.dataSource))
      throw new AuthorizationFailedException("Promotion - getPromotionList");

    Integer startATparam = (Integer)preference.get("startATparam");
    Integer EndAtparam = (Integer)preference.get("EndAtparam");
    String searchString = (String)preference.get("searchString");
    String sortmem = (String)preference.get("sortmem");
View Full Code Here

TOP

Related Classes of com.centraview.common.AuthorizationFailedException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.