Examples of newIdentityAdapter()


Examples of com.esri.gpt.framework.context.RequestContext.newIdentityAdapter()

   * @throws ImsServiceException if any other problem occurs
   */
  private void loadUserGroups(User user) throws SQLException, ImsServiceException {
    try {
      RequestContext requestContext = RequestContext.extract(null);
      IdentityAdapter identityAdapter = requestContext.newIdentityAdapter();
      identityAdapter.readUserGroups(user);
    } catch (Exception ex) {
      throw new ImsServiceException("Error evaluation asserting groups.");
    }
  }
View Full Code Here

Examples of com.esri.gpt.framework.context.RequestContext.newIdentityAdapter()

                RequestContext rc = context.getRequestContext();
                if ((rc != null) && (samlUsername != null)) {
                  User user = rc.getUser();
                  user.reset();
                  user.setCredentials(new UsernameCredential(samlUsername));
                  rc.newIdentityAdapter().authenticate(user);
                  context.getRequestOptions().getTransactionOptions().setPublicationMethod("seditor");

                  expr = "//tcExt:tcSecurity/tcExt:tcSecuredAction[tcExt:status='draft']";
                  Node ndTmp = (Node)xpath.evaluate(expr,ndSoapEnv,XPathConstants.NODE);
                  if (ndTmp != null) {
View Full Code Here

Examples of com.esri.gpt.framework.context.RequestContext.newIdentityAdapter()

    User user = rc.getUser();
    if (user.getAuthenticationStatus().getWasAuthenticated()) {
      _activeUserAttributes = new UserAttributeMap(user.getProfile());
     
      // attempt to reload the user's profile
      IdentityAdapter idAdapter = rc.newIdentityAdapter();
      User userUpdate = new User();
      userUpdate.setKey(user.getKey());
      userUpdate.setLocalID(user.getLocalID());
      userUpdate.setDistinguishedName(user.getDistinguishedName());
      userUpdate.setProfile(_activeUserAttributes);
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.