Package org.nextime.ion.backoffice.exception

Examples of org.nextime.ion.backoffice.exception.BackofficeSecurityException


      Mapping.begin();
      if (!new SecurityManagerImpl().canAdminSecurity(User.getInstance(request.getSession().getAttribute("userLogin")+"")) ) {
        throw new Exception();
      }
    } catch (Exception e) {
      throw new BackofficeSecurityException();
    } finally {
      Mapping.rollback();
    }

    // get the form
View Full Code Here


      Mapping.begin();
      if (!new SecurityManagerImpl().canAdminSecurity(User.getInstance(request.getSession().getAttribute("userLogin")+"")) ) {
        throw new Exception();
      }
    } catch (Exception e) {
      throw new BackofficeSecurityException();
    } finally {
      Mapping.rollback();
    }

View Full Code Here

      Mapping.begin();
      if (!new SecurityManagerImpl().canAdminSecurity(User.getInstance(request.getSession().getAttribute("userLogin")+"")) ) {
        throw new Exception();
      }
    } catch (Exception e) {
      throw new BackofficeSecurityException();
    } finally {
      Mapping.rollback();
    }

View Full Code Here

      Mapping.begin();
      if (!new SecurityManagerImpl().canDeleteSection(Section.getInstance(request.getParameter("id").toString()), User.getInstance(request.getSession().getAttribute("userLogin")+""))) {
        throw new Exception();
      }
    } catch (Exception e) {
      throw new BackofficeSecurityException();
    } finally {
      Mapping.rollback();
    }

    // retrieve selected section
View Full Code Here

      Mapping.begin();
      if (!new SecurityManagerImpl().canDeletePublication(Publication.getInstance(selectedId), User.getInstance(request.getSession().getAttribute("userLogin")+""))) {
        throw new Exception();
      }
    } catch (Exception e) {
      throw new BackofficeSecurityException();
    } finally {
      Mapping.rollback();
    }

    try {
View Full Code Here

      Mapping.begin();
      if (!new SecurityManagerImpl().canEditPublication(Publication.getInstance(id), User.getInstance(request.getSession().getAttribute("userLogin")+""))) {
        throw new Exception();
      }
    } catch (Exception e) {
      throw new BackofficeSecurityException();
    } finally {
      Mapping.rollback();
    }

    // user need cancel
View Full Code Here

    Mapping.begin();
    if (!new SecurityManagerImpl().canCreateSection(Section.getInstance(request.getParameter("id").toString()), User.getInstance(request.getSession().getAttribute("userLogin")+""))) {
      throw new Exception();
    }
  } catch (Exception e) {
    throw new BackofficeSecurityException();
  } finally {
    Mapping.rollback();
  }
       
        // retrieve selected section
View Full Code Here

      Mapping.begin();
      if (!new SecurityManagerImpl().canCreateSection(Section.getInstance(request.getParameter("id").toString()), User.getInstance(request.getSession().getAttribute("userLogin")+""))) {
        throw new Exception();
      }
    } catch (Exception e) {
      throw new BackofficeSecurityException();
    } finally {
      Mapping.rollback();
    }

    // get section
View Full Code Here

      Mapping.begin();
      if (!new SecurityManagerImpl().canCreatePublication(Section.getInstance(request.getParameter("id").toString()), User.getInstance(request.getSession().getAttribute("userLogin")+""))) {
        throw new Exception();
      }
    } catch (Exception e) {
      throw new BackofficeSecurityException();
    } finally {
      Mapping.rollback();
    }

View Full Code Here

      Mapping.begin();
      if (!new SecurityManagerImpl().canEditSection(Section.getInstance(id), User.getInstance(request.getSession().getAttribute("userLogin")+""))) {
        throw new Exception();
      }
    } catch (Exception e) {
      throw new BackofficeSecurityException();
    } finally {
      Mapping.rollback();
    }

    // get the form
View Full Code Here

TOP

Related Classes of org.nextime.ion.backoffice.exception.BackofficeSecurityException

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.