Package org.maqetta.server

Examples of org.maqetta.server.ServerManager


        String name = req.getParameter("userName");
        String password = req.getParameter("password");
        String authType = req.getParameter("authType");

        ServerManager serverManager = ServerManager.getServerManager();

        if (authType != null) {
          String authName = serverManager.getDavinciProperty("orion.auth.name");
          if (authName == null) {
            authName = "mixloginstatic";
          }
          this.responseString = authName;
        } else {
          try {
        IUserManager userManager = serverManager.getUserManager();
        user = userManager.login(name, password);
            if (user != null) {
                String redirect = (String) req.getSession().getAttribute(IDavinciServerConstants.REDIRECT_TO);
                req.getSession().removeAttribute(IDavinciServerConstants.REDIRECT_TO); // burn after reading
                this.responseString = (redirect != null) ? redirect : "OK";
View Full Code Here


  private IAuthenticationService authenticationService;
  private Properties authProperties;

    public OrionUserManager() {
      ServerManager serverManger = ServerManager.getServerManager();
      this.personManager = ServerManager.getServerManager().getPersonManager();
       

        String maxUsersStr = serverManger.getDavinciProperty(IDavinciServerConstants.MAX_USERS);
        if (maxUsersStr != null && maxUsersStr.length() > 0) {
            this.maxUsers = Integer.valueOf(maxUsersStr).intValue();
        }
    }
View Full Code Here

    protected int                    maxUsers = 0;
    protected int            usersCount;


    public UserManagerImpl() {
      ServerManager serverManger = ServerManager.getServerManager();

      initWorkspace();
     
        String maxUsersStr = serverManger.getDavinciProperty(IDavinciServerConstants.MAX_USERS);
        if (maxUsersStr != null && maxUsersStr.length() > 0) {
            this.maxUsers = Integer.valueOf(maxUsersStr).intValue();
        }

        this.personManager = ServerManager.getServerManager().getPersonManager();
View Full Code Here

TOP

Related Classes of org.maqetta.server.ServerManager

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.