Package com.agiletec.aps.system.services.user

Examples of com.agiletec.aps.system.services.user.AbstractUser


    return null;
  }
 
  @Override
  public String save() {
    AbstractUser user = null;
    try {
      if (this.getStrutsAction() == ApsAdminSystemConstants.ADD) {
        user = new User();
        user.setUsername(this.getUsername());
        user.setPassword(this.getPassword());
      } else if (this.getStrutsAction() == ApsAdminSystemConstants.EDIT) {
        user = (AbstractUser) this.getUserManager().getUser(this.getUsername());
        if (null != this.getPassword() && this.getPassword().trim().length()>0) {
          user.setPassword(this.getPassword());
        }
      }
      if (user instanceof User) {
        ((User) user).setDisabled(!this.isActive());
        if (this.isReset()) {
View Full Code Here


    List<UserDetails> allowedUsers = new ArrayList<UserDetails>();
    for (UserDetails user : systemUsers){
      user.addAutorities(this.getRoleManager().getAuthorizationsByUser(user));
      if (authManager.isAuthOnPermission(user, Permission.SUPERVISOR) || authManager.isAuthOnPermission(user, "editContents")) {
        try {
          AbstractUser userDetails = (AbstractUser) user;
          IUserProfile profile = profileManager.getProfile(userDetails.getUsername());
          userDetails.setProfile(profile);
        } catch (Throwable t) {
          ApsSystemUtils.logThrowable(t, this, "findContentOperators", "Error searching profile for user " + user.getUsername());
        }
        user.addAutorities(this.getGroupManager().getAuthorizationsByUser(user));
        allowedUsers.add(user);
View Full Code Here

TOP

Related Classes of com.agiletec.aps.system.services.user.AbstractUser

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.