Package jease.cms.domain

Examples of jease.cms.domain.User


public class Login extends LoginWindow {

  private String queryString = ZK.getQueryString();

  public Login() {
    User user = JeaseSession.get(User.class);
    if (user != null) {
      notifyAboutMaintenance(user);
      initSession(user);
    }
  }
View Full Code Here


  public String getTitle() {
    return String.format("Jease %s", Version.getName());
  }

  public void doLogin(String login, String password) {
    User user = getAuthenticator().identify(login, password);
    if (user != null) {
      notifyAboutMaintenance(user);
      initSession(user);
    }
  }
View Full Code Here

    saveEditorToObject();
    persist();
  }

  protected void saveLastModification() {
    User lastEditor = getNode().getEditor();
    User currentUser = getSessionUser();
    if (lastEditor == null || lastEditor.isAdministrator()
        || !currentUser.isAdministrator()) {
      getNode().setEditor(currentUser);
      getNode().setLastModified(new Date());
    }
  }
View Full Code Here

public class TableModel extends ObjectTableModel<User> {

  public User newObject() {
    if (Sessions.get(User.class).isAdministrator()) {
      return new User();
    } else {
      return null;
    }
  }
View Full Code Here

      Role role = Database.queryUnique(Role.class, new Predicate<Role>() {
        public boolean test(Role role) {
          return role.getName().equals(I18N.get("Administrator"));
        }
      });
      final User administrator = new User();
      administrator.setRole(role);
      administrator.setRoots(new Folder[] { (Folder) Nodes.getRoot() });

      final Window window = new Window(I18N.get("Setup_Administrator"));
      window.setClosable(false);
      window.setParent(getRoot());
View Full Code Here

TOP

Related Classes of jease.cms.domain.User

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.