Package org.nextime.ion.backoffice.security

Examples of org.nextime.ion.backoffice.security.SecurityManagerImpl


        errors.add("password", error);
        request.setAttribute(ERROR_KEY, errors);
        return (new ActionForward(mapping.getInput()));
      }
      Mapping.begin();
      boolean result = new SecurityManagerImpl().canLogIntoBackoffice(user);
      Mapping.rollback();
      if ( !result ) {
        ActionError error = new ActionError("error.login.notAuthorized");
        ActionErrors errors = new ActionErrors();
        errors.add("login", error);
View Full Code Here


    checkUser(request);

    // check if this action is allowed
    try {
      Mapping.begin();
      if (!new SecurityManagerImpl().canAdminSecurity(User.getInstance(request.getSession().getAttribute("userLogin")+"")) ) {
        throw new Exception();
      }
    } catch (Exception e) {
      throw new BackofficeSecurityException();
    } finally {
View Full Code Here

    checkUser(request);   

    // check if the user is authorized to perform this action
    try {
      Mapping.begin();
      if (!new SecurityManagerImpl().canAdminSecurity(User.getInstance(request.getSession().getAttribute("userLogin")+"")) ) {
        throw new Exception();
      }
    } catch (Exception e) {
      throw new BackofficeSecurityException();
    } finally {
View Full Code Here

   

    // check if the user is authorized to perform this action
    try {
      Mapping.begin();
      if (!new SecurityManagerImpl().canAdminSecurity(User.getInstance(request.getSession().getAttribute("userLogin")+"")) ) {
        throw new Exception();
      }
    } catch (Exception e) {
      throw new BackofficeSecurityException();
    } finally {
View Full Code Here

    checkUser(request);

    // check if this action is allowed
    try {
      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 {
View Full Code Here

    String selectedId = request.getParameter("id");
   
    // check if this action is allowed
    try {
      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 {
View Full Code Here

        : request.getParameter("id").toString();

    // check if publication can be edited
    try {
      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 {
View Full Code Here

        checkUser(request);

  // check if this action is allowed
  try {
    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 {
View Full Code Here

    checkUser(request);

    // check if this action is allowed
    try {
      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 {
View Full Code Here

    checkUser(request);

    // check if this action is allowed
    try {
      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 {
View Full Code Here

TOP

Related Classes of org.nextime.ion.backoffice.security.SecurityManagerImpl

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.