Package com.filenet.api.security

Examples of com.filenet.api.security.User


    this.conn = conn;
  }

  @Override
  public String getName() throws RepositoryException {
    User user = Factory.User.fetchCurrent(
        ((FnConnection) conn).getConnection(), null);
    logger.config("User name from connection: " + user.get_Name());
    return user.get_Name();
  }
View Full Code Here


    try {
      Subject s = UserContext.createSubject(
          ((FnConnection) conn).getConnection(), username, password,
          "FileNetP8");
      uc.pushSubject(s);
      User u = Factory.User.fetchCurrent(((FnConnection) conn).getConnection(),
          null);
      logger.info("User: " + u.get_Name() + " is authenticated");

      FnCredentialMap.putUserCred(username, password);
      return new FnUser(u);
    } catch (Throwable e) {
      logger.log(Level.WARNING,
View Full Code Here

   */
  @Override
  public IUser lookupUser(String username) throws RepositoryException {
    try {
      logger.log(Level.FINE, "Lookup user: {0}", username);
      User user = Factory.User.fetchInstance(
          ((FnConnection) conn).getConnection(), username, null);
      return new FnUser(user);
    } catch (Exception e) {
      throw new RepositoryException(username + " username is not found", e);
    }
View Full Code Here

TOP

Related Classes of com.filenet.api.security.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.