Package com.esri.gpt.framework.security.identity.local

Examples of com.esri.gpt.framework.security.identity.local.LocalDao


          }
          user.getAuthenticationStatus().setWasAuthenticated(true);
         
          // ensure a local reference for the user
          try {
            LocalDao localDao = new LocalDao(context);
            localDao.ensureReferenceToRemoteUser(user);
          } catch (Exception e) {
            user.reset();
            err = "Openid authentication suceeded, creating local user reference failed.";
            LOGGER.log(Level.SEVERE,err,e);
          }
View Full Code Here


      throw new AuthenticationException("Invalid credentials, not a member of the supplied group.");
    }
  }
 
  // ensure a local reference for the user
  LocalDao localDao = new LocalDao(requestContext);
  localDao.ensureReferenceToRemoteUser(user);
}
View Full Code Here

* @throws ImsServiceException if accessing ArcIMS service fails
*/
private Publisher createPublisherOfRepository()
  throws SQLException, CredentialsDeniedException, NotAuthorizedException, IdentityException, ImsServiceException {

  LocalDao localDao = new LocalDao(getRequestContext());
  String uDN = localDao.readDN(getRepository().getOwnerId());
  Publisher publisher = new Publisher(getRequestContext(), uDN);

  return publisher;
}
View Full Code Here

  private Users buildSelectablePublishers(RequestContext context)
          throws SQLException {
    Users allUsers = Publisher.buildSelectablePublishers(context, false);
    Users validUsers = new Users();
    if (allUsers.size() > 0) {
      LocalDao localDao = new LocalDao(getRequestContext());
      for (User u : allUsers.values()) {
        try {
          localDao.ensureReferenceToRemoteUser(u);
          validUsers.add(u);
        } catch (IdentityException ex) {
          LogUtil.getLogger().severe(
                  "Error ensuring reference to the remote user: " + ex.getMessage());
        }
View Full Code Here

        _selectablePublishers.build(context, isAdministrator(context));
        // read owner distinguished name and select record owner
        if (getEditor() != null && getEditor().getRepository() != null) {
          // read owner distinguished name
          HrRecord record = getEditor().getRepository();
          LocalDao localDao = new LocalDao(context);
          String uDN = localDao.readDN(record.getOwnerId());
          if (uDN.length() == 0) {
            User u = context.getUser();
            if (u != null) {
              uDN = u.getDistinguishedName();
            }
View Full Code Here

        maxRepErrors);
      rp.setStartTime(startTime);
      helper.setReportBuilder(rp);

      // prepare the publisher
      LocalDao localDao = new LocalDao(context);
      String uDN = localDao.readDN(unit.getRepository().getOwnerId());
      Publisher publisher = new Publisher(context, uDN);
      unit.setPublisher(publisher);

      // get all existing URI's for the specific harvesting site
      if (unit.getCleanupFlag()) {
View Full Code Here

      if (record.getSendNotification()) {
        // create email addresses storage
        ArrayList<String> emailAddresses = new ArrayList<String>();

        // get distingushed name for the record owner
        LocalDao localDao = new LocalDao(context);
        String uDN = localDao.readDN(record.getOwnerId());

        // obtain LDAP adapter
        IdentityAdapter ldapAdapter = context.newIdentityAdapter();

        // declare users
View Full Code Here

public void preparePublisher(Publisher publisher,
                             boolean ensureDefaultFolder)
  throws IdentityException, SQLException {
 
  // ensure the the publisher is referenced within the local user table
  LocalDao localDao = new LocalDao(getRequestContext());
  if (publisher.getIsRemote()) {
    localDao.ensureReferenceToRemoteUser(publisher);
  }
 
  // ensure that the publisher has a folder
  if (ensureDefaultFolder) {
    publisher.setFolderUuid(UuidUtil.makeUuid(true));
View Full Code Here

TOP

Related Classes of com.esri.gpt.framework.security.identity.local.LocalDao

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.