Examples of SecurityManagerImpl


Examples of org.exist.security.internal.SecurityManagerImpl

        final String testAccountName = "testUser";
        final String testGroupName = "testGroup";

        Database mockDatabase = EasyMock.createMock(Database.class);

        SecurityManagerImpl mockSecurityManager = EasyMock.createMock(SecurityManagerImpl.class,
                new ConstructorArgs(
                    SecurityManagerImpl.class.getConstructor(Database.class),
                    new Object[] {
                        mockDatabase
                    }
View Full Code Here

Examples of org.exist.security.internal.SecurityManagerImpl

                // statusReporter may have to be terminated or the thread can/will hang.
                try {
                    final boolean exportOnly = (Boolean) conf.getProperty(PROPERTY_EXPORT_ONLY, false);

                    //create the security manager
                    securityManager = new SecurityManagerImpl(this);

                    //REFACTOR : construct then configure
                    cacheManager = new DefaultCacheManager(this);

                    //REFACTOR : construct then configure
View Full Code Here

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

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

    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

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

    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

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

   

    // 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

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

    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

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

    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

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

        : 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

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

        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
TOP
Copyright © 2018 www.massapi.com. 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.